I tried something similar already.
passdb { driver = shadow }
userdb { driver = passwd-file args = username_format=%n /path/to/passwd }
With only the one sarah user defined in /path/to/passwd. But then all other users cannot log in anymore. Thunderbird says "Sending of password did not succeed". Does anyone know if specifying a userdb stops passdb/shadow from being used? Do I need to copy all users from the passdb/shadow system to /path/to/passwd? Was hoping to just specify single users I wanted to override in /path/to/passwd.
On 9/13/2013 2:40 AM, Steffen Kaiser wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 12 Sep 2013, Scott Galambos wrote:
Testing any given user gives: $: dovecot user sarah field value uid 1478 gid 116 home /home/sarah mail mbox:~/mail:INBOX=/var/mail/sarah system_groups_user sarah
What would I have to do to make only sarah's mail_location ~/Maildir now? My userdb is: $: doveconf -n userdb userdb { driver = passwd }
I tried following the wiki's but its confusing. Thanks for any help or tips.
you need to pass "Extra Fields" to Dovecot, see last example in: http://wiki2.dovecot.org/UserDatabase/ExtraFields
"passwd-file" is similiar to "passwd", but I don't know, if you break something (outside Dovecot), if you add the last field to /etc/passwd.
Because Dovecot supports multiple userdb's, you could add a passwd-file userdb _before_ passwd userdb, copy the line of sarah from /etc/passwd into that new file and add the extra fields there. See http://wiki2.dovecot.org/AuthDatabase/PasswdFile
userdb { driver = passwd-file args = username_format=%n /etc/dovecot/imap.passwd } userdb { driver = passwd }
- -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUjKzbV3r2wJMiz2NAQLvFAgAt7qRAZjJOoIUI2hDOKmjGHFnWZECTwDB W6bFT9PMw7rwcBSIWAzUkYO1lJeOuuOQrlSyw21g1AA+WQJ3Vb9Ti+T8HNJJb4A3 COZ14e0HXBEn2WFftmYVeLS6Okp70tuJ8g8dUYSnd+e+OFTy9iPYbk08+IOk9j+v lSPLcrGiKewuzoSBqHzQmY5iL2rb1AZaUHFH2geNUF2AvvRvnvnjvKQ1oJBHHLXz rbCZdIVhG1Q+9WfMsxvAX9VZsJ+lcDmpHPCEciU30frfCJQdaxjsam+iBGyHSIo5 ZxkGsDGQ/Ta6CBdSX5Ii01IXQ0C6ZRpZheYPBPITdHjD+ZuO5McZrA== =qG6G -----END PGP SIGNATURE-----