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 at foo.pl and unix username foo-john. His imap client and smtp client is configured to use login foo-john and email address john at foo.pl Everything works flawlessly. But i will have few new users that insist of being able to login as someone at somewhere.pl Can i have something similar to sendmail method in dovecot - an alias table like someone at 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 at 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 at foo.pl and unix username > foo-john. > > His imap client and smtp client is configured to use login foo-john and > email address john at foo.pl > > Everything works flawlessly. > > > But i will have few new users that insist of being able to login as > someone at somewhere.pl > > > Can i have something similar to sendmail method in dovecot - an alias > table like > > someone at 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 at user:::::::user=real.username at domain See https://wiki.dovecot.org/PasswordDatabase for more details Aki
>> >> someone at 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 at user:::::::user=real.username at domain >thank you for help. exactly what i needed. one more question. Do i need to restart dovecot everytime i change this passwd-file?