[Dovecot] Advice on sieve vacation for aliases
Greetings,
I have a working mail server with sieve 1:1.2.9-1ubuntu6.5 working just fine. My commercial dept. has asked me to set a vacation message for comercial@domain.tld, but this is an alias to jhon@domain.tld and meggie@domain.tld. I have created a sieve_global_path = /etc/dovecot/global.sieve and it works, but not the intended way: it sends two vacation messages, each From: each employee, and not From: comercial@domain.tld alias.
Is there how to make dovecot send only one vacation message From: comercial@domain.tld or will I have to survive with one message from jhon and another from meggie? Also, is there how to have a dovecot.lda-dupes for the alias instead the users?
/etc/dovecot/global.sieve:
require ["vacation"]; # rule:[Ferias coletivas] if anyof (header :contains "To" "comercial@domain.tld") { vacation :days 7 :subject "FĂ©rias coletivas de 20/12/2012 a 07/01/2013" text: bla bla bla. ; stop; }
Thanks in advance and nice holidays.
-- Marcio Merlone
Marcio Merlone wrote:
jhon@domain.tld and meggie@domain.tld. I have created a sieve_global_path = /etc/dovecot/global.sieve and it works, but not the intended way: it sends two vacation messages, each From: each employee, and not From: comercial@domain.tld alias.
Arguments to vacation are documented in RFC 5230: http://tools.ietf.org/html/rfc5230#page-10
Try to add :from comercial@domain.tld parameter to the vacation command. This should at least change the "From:" header of the vacation messages.
Regards, Daniel
participants (2)
-
Daniel Parthey
-
Marcio Merlone