Since Postfix (2.11) is my MTA and it supports removing headers, I'd
like to have it strip this one. I found that I can include this line in
the same file I use for the other header checks applied to ALL mail:

/^Auto-Submitted:/    IGNORE

but then it will affect all mail and I'd rather not do that.

What I'm currently trying to get working is a service entry in master.cf
that has its own header checks conf file. This service would only be
used for specific sender addresses in order to limit the header removal
to just those email notifications generated by Google Calendar.

Looking at those emails, I see that [email protected] is
the source address. I added the entry to my check_sender_access table
with an action of 'FILTER strip-automated-headers:'

You could probably get it working with a restriction class.

check_sender_access hash:/path/to/sender_access


smtpd_restriction_classes: strip_automated_headers

strip_automated_headers =
  header_checks = pcre:/path/to/strip_automated_headers.pcre



sender_access:
[email protected]   strip_automated_headers


strip_automated_headers.pcre
/^Auto-Submitted:/    IGNORE

Haven't come around to test it tough...


http://www.postfix.org/RESTRICTION_CLASS_README.html



Thanks in advance for your help!

--
 Christian Kivalo

Reply via email to