[Dovecot] Change mail_location for one user?
Steffen Kaiser
skdovecot at smail.inf.fh-brs.de
Fri Sep 13 09:40:45 EEST 2013
-----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-----
More information about the dovecot
mailing list