> 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 j...@foo.pl and unix username 
> foo-john.
> 
> His imap client and smtp client is configured to use login foo-john and 
> email address j...@foo.pl
> 
> Everything works flawlessly.
> 
> 
> But i will have few new users that insist of being able to login as 
> some...@somewhere.pl
> 
> 
> Can i have something similar to sendmail method in dovecot - an alias 
> table like
> 
> some...@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

Reply via email to