dovecot welcome scripts for multiple domains
Aki Tuomi
aki.tuomi at dovecot.fi
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 domain1.com, well I've got five domains, can I set this
> script up so that it's smart about them? If user at domain3.com logs in
> it would send a message from postmaster at domain3.com?
>
> If anyone has any welcome scripts i'm curious to take a look.
>
> Thanks.
> Dave.
Hi!
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
Aki
More information about the dovecot
mailing list