Filter private sender information out of sent emails

This commit is contained in:
Kevin MacMartin 2024-09-26 22:44:39 -04:00
parent 2d37d26e28
commit 3637ab1d97
2 changed files with 16 additions and 0 deletions

12
postfix/header_checks Normal file
View file

@ -0,0 +1,12 @@
# HEADER_CHECKS(5) HEADER_CHECKS(5)
/^Received:.*with ESMTPSA/ IGNORE
/^X-Originating-IP:/ IGNORE
/^X-Mailer:/ IGNORE
/^Mime-Version:/ IGNORE
/^User-Agent:/ IGNORE
/^Received:.*with ESMTPSA/ IGNORE
/^X-Originating-IP:/ IGNORE
/^X-Mailer:/ IGNORE
/^Mime-Version:/ IGNORE
/^User-Agent:/ IGNORE

View file

@ -46,6 +46,10 @@ smtpd_sasl_local_domain = $myhostname
smtpd_relay_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
smtpd_sender_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unknown_sender_domain
header_checks = regexp:/etc/postfix/header_checks
mime_header_checks = $header_checks
nested_header_checks = $header_checks
non_smtpd_milters=inet:127.0.0.1:8891
smtpd_milters=inet:127.0.0.1:8891