dovecot welcome scripts for multiple domains
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@domain1.com, well I've got five domains, can I set this script up so that it's smart about them? If user@domain3.com logs in it would send a message from postmaster@domain3.com?
If anyone has any welcome scripts i'm curious to take a look.
Thanks. Dave.
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@domain1.com, well I've got five domains, can I set this script up so that it's smart about them? If user@domain3.com logs in it would send a message from postmaster@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
participants (2)
-
Aki Tuomi
-
David Mehler