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.