my apologies to post here again as the thread is quite old but I am having аn absolutely identical issue. I cannot seem to remove any headers at all no matter what I do.
I tried setting this in master.cf: submission inet n - - - - smtpd -o smtpd_tls_security_level=encrypt -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject -o milter_macro_daemon_name=ORIGINATING -o cleanup_service_name=subcleanup and this: subcleanup unix n - - - 0 cleanup -o smtp_header_checks=regexp:/etc/postfix/header_checks then changed smtp_header_checks to header_checks just to test it: subcleanup unix n - - - 0 cleanup -o header_checks=regexp:/etc/postfix/headerch with my both header_checks and headerch files that contain this: /^Received: .*/ IGNORE /^X-Originating-IP:/ IGNORE /^Received:.*from:/ IGNORE /^Received:.*\s*from/ IGNORE /^Received:.*\sfrom/ IGNORE /^Received:\s.*from/ IGNORE /^Received:\sfrom/ IGNORE /^Received: from .*/ IGNORE and I have this in my main.cf : smtp_header_checks = regexp:/etc/postfix/header_checks header_checks = regexp:/etc/postfix/headerch but all the headers are still there in both incoming and outgoing emails. I was wondering was this somehow solved by Geoff? Would appreciate any advises at all. Many thanks in advance! I am running Postfix 2.9.6. I also tried to remove this: -o cleanup_service_name=subcleanup and this: subcleanup unix n - - - 0 cleanup -o smtp_header_checks=regexp:/etc/postfix/header_checks and this: subcleanup unix n - - - 0 cleanup -o header_checks=regexp:/etc/postfix/headerch keeping just smtp_header_checks = regexp:/etc/postfix/header_checks header_checks = regexp:/etc/postfix/headеrch in my main.cf but it's still the same, no headers are removed in both incoming and outgoing emails. -- View this message in context: http://postfix.1071664.n5.nabble.com/Stripping-Received-headers-tp56953p86979.html Sent from the Postfix Users mailing list archive at Nabble.com.