is it possible - username aliases
i already have quite large dovecot installation with multiple domains but with users handled via unix passwd.
Domain name mapping in both directions is done by sendmail, and mail delivery by procmail to Maildir format - one account per user. this accounts are often used for more than mail.
So for example john smith have email john@foo.pl and unix username foo-john.
His imap client and smtp client is configured to use login foo-john and email address john@foo.pl
Everything works flawlessly.
But i will have few new users that insist of being able to login as someone@somewhere.pl
Can i have something similar to sendmail method in dovecot - an alias table like
someone@somewhere.pl some-unix-account
For this few users and have everything like it is now?
On 23 March 2019 20:40 Wojciech Puchar via dovecot dovecot@dovecot.org wrote:
i already have quite large dovecot installation with multiple domains but with users handled via unix passwd.
Domain name mapping in both directions is done by sendmail, and mail delivery by procmail to Maildir format - one account per user. this accounts are often used for more than mail.
So for example john smith have email john@foo.pl and unix username foo-john.
His imap client and smtp client is configured to use login foo-john and email address john@foo.pl
Everything works flawlessly.
But i will have few new users that insist of being able to login as someone@somewhere.pl
Can i have something similar to sendmail method in dovecot - an alias table like
someone@somewhere.pl some-unix-account
For this few users and have everything like it is now?
put this before the passwd passdb...
passdb { driver = passwd-file args = username_format=%Lu /path/to/some/passwd
}
then put this into the passwd file
alias@user:::::::user=real.username@domain
See https://wiki.dovecot.org/PasswordDatabase for more details
Aki
someone@somewhere.pl some-unix-account
For this few users and have everything like it is now?
put this before the passwd passdb...
passdb { driver = passwd-file args = username_format=%Lu /path/to/some/passwd
}
then put this into the passwd file
alias@user:::::::user=real.username@domain
thank you for help. exactly what i needed.
one more question.
Do i need to restart dovecot everytime i change this passwd-file?
participants (2)
-
Aki Tuomi
-
Wojciech Puchar