[Dovecot] Loginname - mapping

Timo Sirainen tss at iki.fi
Sun Nov 30 22:15:37 EET 2008

On Sat, 2008-11-29 at 21:49 +0100, Roald Amundsen wrote:
> Is there any facility to let dovecot do username mapping?
> If I eg have a file: usermapping that looks like this:
> user at domain1.com	domain1_user
> user at domain2.com	user_domain2
> user at domain3.com	domain3.user

Yes, but can you change your passdb? You can use any passdb that allows
specifying user=user at domain extra field
(http://wiki.dovecot.org/PasswordDatabase/ExtraFields). For example with
passwd-file (http://wiki.dovecot.org/AuthDatabase/PasswdFile):

domain1_user:{plain}pass:1000:1000::/home/domain1.com/user::user=user at domain1.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20081130/a8a5ecde/attachment.bin 

More information about the dovecot mailing list