Autoresponder in sieve file is not updated when adding aliases afterwards
When I add an autoresponder to an email account with aliases, this alias are added to the sieve file, as it should. e.g. domain: example.com, account test@example.com, alias test2@example.com -> test@example.com.
Then I add another alias, test3@example.com -> test@example.com. However the sieve file is not updated to reflect this, it stays the same (I did wait for the cronjob to run).
The result is that the autoresponder will not trigger for emails send to test3@example.com, sieve will report:
discarding vacation response for implicitly delivered message; no known (envelope) recipient address found in message headers
Now I change something in the autoresponder text and save. Only now the sieve file is updated and contains the new text AND the new alias.
Tested in ISPConfig 3.1.6
first sieve file
require ["fileinto", "regex", "date", "relational", "vacation"];
keep;
#################################################################
# Autoreply
#################################################################
# Move spam to spam folder
if header :contains "X-Spam-Flag" "YES" {
# Stop here so that we do not reply on spams
stop;
}
if allof(currentdate :value "ge" "iso8601" "2017-08-01T13:10:00", currentdate :value "le" "iso8601" "2020-08-01T13:10:00") {
vacation :days 1
:subject "Out of office reply"
:addresses ["test@example.com","test2@example.com"]
"Test";
}
second sieve file:
require ["fileinto", "regex", "date", "relational", "vacation"];
keep;
#################################################################
# Autoreply
#################################################################
# Move spam to spam folder
if header :contains "X-Spam-Flag" "YES" {
# Stop here so that we do not reply on spams
stop;
}
if allof(currentdate :value "ge" "iso8601" "2017-08-01T13:10:00", currentdate :value "le" "iso8601" "2020-08-01T13:10:00") {
vacation :days 1
:subject "Out of office reply"
:addresses ["test@example.com","test2@example.com","test3@example.com"]
"Test2";
}