dovecot welcome scripts for multiple domains

Aki Tuomi aki.tuomi at
Fri Apr 6 10:23:25 EEST 2018

On 06.04.2018 10:09, David Mehler wrote:
> Hello,
> I've got dovecot 2.3 going, and it uses welcome scripts successfully.
> My question is does anyone have a script that is multi-domain capable?
> Currently mine sends it's welcome message from say
> postmaster at, well I've got five domains, can I set this
> script up so that it's smart about them? If user at logs in
> it would send a message from postmaster at
> If anyone has any welcome scripts i'm curious to take a look.
> Thanks.
> Dave.


welcome_script = welcome %u

the %u is expanded to username. if you are using usernames with domain, you can get the domain part either by parsing the username, or using

welcome_script = welcome %u postmaster@%d


More information about the dovecot mailing list