On 06.04.2018 10:09, David Mehler wrote:
> 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
> postmas...@domain1.com, well I've got five domains, can I set this
> script up so that it's smart about them? If u...@domain3.com logs in
> it would send a message from postmas...@domain3.com?
> If anyone has any welcome scripts i'm curious to take a look.
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