Sieve vacation function sends auto-reply with generic From: Address
Good day to you all.
I have a question regarding the dovecot sieve vacation function that I am unable to answer myself by reading the documentation.
A while ago we moved our dovecot server to a newer system (and newer dovecot version 2.3.16 ). This worked mostly fine, except there is now an issue with the auto-reply emails send from sieve vacation scripts.
While the sending of the auto reply generally works fine, the emails always appear to come from the "sysgroup@ida.ing.tu-bs.de" address rather than the original recipient of the message.
This is bad since the recipient of the auto reply then has no idea who the person on vacation actually is (unless there is a name in the message body).
The sieve scripts are managed by roundcube webmail, an example entry for a vacation rule looks like this:
require ["vacation"]; # rule:[Vacation] if true { vacation :days 7 :subject "Nicht im Büro" :from "tbtest@ida.ing.tu-bs.de" "Ich bin nicht da!"; }
This looks ok to me. The problem is that the "tbtest" address is not used in the generated reply, instead sysgroup@ida.ing.tu-bs.de is used as a from address for all recipients.
Note that the sysgroup@ address appears nowhere in the dovecot config, but it does in /etc/postfix/sender-canonical like that:
root@ida.ing.tu-bs.de sysgroup@ida.ing.tu-bs.de @ida.ing.tu-bs.de sysgroup@ida.ing.tu-bs.de @net.ida sysgroup@ida.ing.tu.bs.de
The /etc/dovecot/conf.d/90-sieve.conf is mostly on default values, the remaining config settings are these:
plugin { sieve = file:~/Maildir/sieve;active=~/Maildir/.dovecot.sieve
sieve_extensions = +editheader
#Send vacation auto responder with correct Address sieve_vacation_send_from_recipient = yes sieve_vacation_use_original_recipient = no }
I have attached the output of "dovecot -n" below.
Many thanks for any ideas on what could be the issue!
Kind regards,
Thomas
-- Dipl. Inf. Thomas Boroske
Institute of Computer and Network Engineering TU Braunschweig Hans-Sommer-Str. 66, D-38106 Braunschweig, Germany www.ida.ing.tu-bs.de
25.09.23, 14:57 +0200, Thomas Boroske:
I have a question regarding the dovecot sieve vacation function that I am unable to answer myself by reading the documentation.
A while ago we moved our dovecot server to a newer system (and newer dovecot version 2.3.16 ). This worked mostly fine, except there is now an issue with the auto-reply emails send from sieve vacation scripts.
While the sending of the auto reply generally works fine, the emails always appear to come from the "sysgroup@ida.ing.tu-bs.de" address rather than the original recipient of the message.
This is bad since the recipient of the auto reply then has no idea who the person on vacation actually is (unless there is a name in the message body).
The sieve scripts are managed by roundcube webmail, an example entry for a vacation rule looks like this:
require ["vacation"]; # rule:[Vacation] if true { vacation :days 7 :subject "Nicht im Büro" :from "tbtest@ida.ing.tu-bs.de" "Ich bin nicht da!"; }
This looks ok to me. The problem is that the "tbtest" address is not used in the generated reply, instead sysgroup@ida.ing.tu-bs.de is used as a from address for all recipients.
Note that the sysgroup@ address appears nowhere in the dovecot config, but it does in /etc/postfix/sender-canonical like that:
root@ida.ing.tu-bs.de sysgroup@ida.ing.tu-bs.de @ida.ing.tu-bs.de sysgroup@ida.ing.tu-bs.de @net.ida sysgroup@ida.ing.tu.bs.de
If you have turned on postfix' canonical mapping with the above configuration, then postfix will rewrite (in header and envelope) <everything>@ida.ing.tu-bs.de to sysgroup@ida.ing.tu-bs.de. To me, this seems to explain your observation just fine.
-- Regards mks
Hello Markus,
Thank you for pointing me to the problem. It works after removing the wildcard rule.
For some reason I did not consider the postfix config to be the culprit at all, we also have the same rule file on our main smtp server. But that one of course has additional config for configuring the users valid sender addresses from ldap which is not present on this local postfix. All understandable now.
Many thanks,
Thomas
Am 2023-09-25 15:27, schrieb Markus Schönhaber:
If you have turned on postfix' canonical mapping with the above configuration, then postfix will rewrite (in header and envelope) <everything>@ida.ing.tu-bs.de to sysgroup@ida.ing.tu-bs.de. To me, this seems to explain your observation just fine.
-- Dipl. Inf. Thomas Boroske
Institute of Computer and Network Engineering TU Braunschweig Hans-Sommer-Str. 66, D-38106 Braunschweig, Germany www.ida.ing.tu-bs.de
participants (2)
-
Markus Schönhaber
-
Thomas Boroske