changeset 180:83885499c093 puppet-3.6

Strip some headers on outbound emails Necessary because GMail app on Android using an account on our server adds half of the MS Outlook headers, but not the others and this causes SpamAssassin to flag as spam
author IBBoard <dev@ibboard.co.uk>
date Sun, 05 Aug 2018 10:40:51 +0100
parents 89cd717361fd
children 8491f9548a74
files modules/postfix/manifests/init.pp modules/postfix/templates/main.cf.erb
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/postfix/manifests/init.pp	Thu May 24 20:38:26 2018 +0100
+++ b/modules/postfix/manifests/init.pp	Sun Aug 05 10:40:51 2018 +0100
@@ -68,10 +68,14 @@
   file { '/etc/postfix/header_checks':
     source => 'puppet:///private/postfix/header_checks',
   }
-  #Bad headers (use even more sparingly!)
+  #Bad body (use even more sparingly!)
   file { '/etc/postfix/body_checks':
     source => 'puppet:///private/postfix/body_checks',
   }
+  # Outbound header manipulation
+  file { '/etc/postfix/smtp_header_checks':
+    source => 'puppet:///private/postfix/smtp_header_checks',
+  }
   #Whitelisted HELO names
   file { '/etc/postfix/helo_whitelist':
     source => 'puppet:///private/postfix/helo_whitelist',
--- a/modules/postfix/templates/main.cf.erb	Thu May 24 20:38:26 2018 +0100
+++ b/modules/postfix/templates/main.cf.erb	Sun Aug 05 10:40:51 2018 +0100
@@ -67,6 +67,7 @@
 message_size_limit = 15000000
 header_checks = regexp:/etc/postfix/header_checks
 body_checks  = regexp:/etc/postfix/body_checks
+smtp_header_checks = regexp:/etc/postfix/smtp_header_checks
 
 # The following may not be used by all versions of Postfix
 postscreen_dnsbl_threshold = 2