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