See http://wiki.dovecot.org/AuthDatabase/PasswdFile
We've just got:
<username>:x:<uid>:<gid>::<homedir>
and the standard:
passdb pam { }
userdb passwd-file { args = /somewhere/etc/userdb }
It might be worth looking at http://wiki.dovecot.org/VirtualUsers as well.
Best Wishes, Chris
billl@inetmsg.com wrote:
Chris, I am new to Dovecot and this list, and struggled this weekend to get Dovegot to authenticate the username against a "passwd-file" and using pam to authenticate the passwords. I was wondering if you could tell me what the format of the "passwd-file" should look like. I want to the username to be user@domain, and tried stripping the domain part for username/password authentication against pam, but that hasn't worked for me, so I thought I would use a "passwd-file" like your doing. Also, what does your dovecot.conf section look like for using a "passwd-file" and pam?
Thanks for any help you can provide!
Bill
-- --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+- Christopher Wakelin, c.d.wakelin@reading.ac.uk IT Services Centre, The University of Reading, Tel: +44 (0)118 378 8439 Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094