From 9126f5bf5bb4068901ba4f9723ccbb15019c7346 Mon Sep 17 00:00:00 2001 From: lab Date: Wed, 22 Dec 2021 00:58:01 +0800 Subject: [PATCH] feat: add header checks to v2 --- mail/v2/conf/postfix/header_checks | 5 +++++ mail/v2/conf/postfix/main.cf | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 mail/v2/conf/postfix/header_checks 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 # --------------------------------------