30 Nov
2008
30 Nov
'08
10:15 p.m.
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@domain1.com domain1_user user@domain2.com user_domain2 user@domain3.com domain3.user
Yes, but can you change your passdb? You can use any passdb that allows specifying user=user@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@domain1.com