Richard Freeman
2005-Oct-12 11:41 UTC
[Dovecot] How to set up a passwd file for virtual hosting
Hi, Exim4 is running fine and I am trying to set up Dovecot 0.99 to handle virtual users (http://wiki.dovecot.org/moin.cgi/VirtualhostingWithExim) so I don't have to set up user accounts for each e-mail address I want to server out via pop3. I need to create a user and passd file, a bit like /etc/passwd, but in a different location for my dovecot virtual users. I can create a blank file such as /etc/dovecot/users (beware my increasing vi skills...) but how do I add users and passwords to this? Can I just type them in and separate them with colons? If so, how would I add a password to the file? I am happy using the passwd command which alters my user passwords in /etc/passwd. Can I use it or something similar to create the passwords for the users in my new file /etc/dovecot/users ? Is there any way I can use an MD5 hash or CRYPT format for the passwords? Yours, Richard
Timo Sirainen
2005-Oct-16 15:40 UTC
[Dovecot] How to set up a passwd file for virtual hosting
On Wed, 2005-10-12 at 12:41 +0100, Richard Freeman wrote:> I need to create a user and passd file, a bit like /etc/passwd, but in a > different location for my dovecot virtual users. I can create a blank > file such as /etc/dovecot/users (beware my increasing vi skills...) but > how do I add users and passwords to this? Can I just type them in and > separate them with colons?Yes. See "passwd-file" in http://wiki.dovecot.org/moin.cgi/Authentication> If so, how would I add a password to the file? I am happy using the > passwd command which alters my user passwords in /etc/passwd. Can I use > it or something similar to create the passwords for the users in my new > file /etc/dovecot/users ? Is there any way I can use an MD5 hash or > CRYPT format for the passwords?Well, there are multiple ways. With Dovecot 1.0-alphas the simplest way would be to use "dovecotpw" utility that generates the passwords, but any other way would work as well. At the end of doc/auth.txt are listed a few ways. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20051016/56014a00/attachment.bin>