[Dovecot] custom maildir location mapping

Timo Sirainen tss at iki.fi
Tue Jan 25 00:23:28 EET 2011


On 24.1.2011, at 23.30, Vlad Mazek wrote:

> Is there any way to create a userdb and passworddb so that users can login
> with either username or email address and have dovecot locate their maildir
> without an issue?
..
> userdb static { args = uid=virtual gid=virtual home=/var/mail/%d/%u }
> passdb passwd-file { args = /etc/dovecot/passwd }
> 
> user at domain.com:{HMAC-MD5}1b05f379...

username:pass:...:user=user at domain.com

Where the last field is the "extra field" http://wiki.dovecot.org/AuthDatabase/PasswdFile

This changes the username to user at domain.com.



More information about the dovecot mailing list