Hi,
I'm trying to strip Received: headers from mail at various parts of our
processing, for security reasons.
I'm starting with mail that comes in from authenticated clients. I tried
doing the following:
master.cf:
submission inet n - - - - smtpd
-o smtpd_enforce_tls=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
-o milter_macro_daemon_name=ORIGINATING
-o header_checks=pcre:/etc/postfix/header_checks
/etc/postfix/header_checks:
/^Received:/ IGNORE
I ran this through Postmap with a query from a message I sent myself, and
the IGNORE key is correctly returned. But if I actually send myself a
message, it comes through with the Received: line intact.
I did some searching and found
http://marc.info/?l=postfix-users&m=122106227124195&w=2
I'm curious to know why this would work and the above wouldn't. Am I just
trying to do it too early in the process?
A related question, is it possible to prevent Postfix from generating
lines like this?
Geoff.