[Dovecot] How to set up a passwd file for virtual hosting

Timo Sirainen tss at iki.fi
Sun Oct 16 18:40:13 EEST 2005


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: not available
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.pgp


More information about the dovecot mailing list