diff --git a/mail/v2/conf/postfix/header_checks b/mail/v2/conf/postfix/header_checks new file mode 100644 index 0000000..544fbcd --- /dev/null +++ b/mail/v2/conf/postfix/header_checks @@ -0,0 +1,5 @@ +/^Received:.*/ IGNORE +/^X-Originating-IP:/ IGNORE +/^X-Mailer:/ IGNORE +/^Mime-Version:/ IGNORE +/^User-Agent:/ IGNORE \ No newline at end of file diff --git a/mail/v2/conf/postfix/main.cf b/mail/v2/conf/postfix/main.cf index a003156..2dd6455 100644 --- a/mail/v2/conf/postfix/main.cf +++ b/mail/v2/conf/postfix/main.cf @@ -155,6 +155,9 @@ mynetworks_style = host # getting rid of x-original-to enable_original_recipient = no +header_checks = regexp:/etc/postfix/header_checks +mime_header_checks = $header_checks + # --------------------------------- # DKIM # --------------------------------------