changeset 92:4412f5e0b2ba puppet-3.6

Add body checks to emails for the minority of obvious spam that aren't caught
author IBBoard <dev@ibboard.co.uk>
date Sat, 16 Jan 2016 11:01:09 +0000
parents 61a79ae833cb
children 74678cd7a200
files modules/postfix/manifests/init.pp modules/postfix/templates/main.cf.erb
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/postfix/manifests/init.pp	Sat Jan 16 11:00:38 2016 +0000
+++ b/modules/postfix/manifests/init.pp	Sat Jan 16 11:01:09 2016 +0000
@@ -67,6 +67,10 @@
   file { '/etc/postfix/header_checks':
     source => 'puppet:///private/postfix/header_checks',
   }
+  #Bad headers (use even more sparingly!)
+  file { '/etc/postfix/body_checks':
+    source => 'puppet:///private/postfix/body_checks',
+  }
   #Whitelisted HELO names
   file { '/etc/postfix/helo_whitelist':
     source => 'puppet:///private/postfix/helo_whitelist',
--- a/modules/postfix/templates/main.cf.erb	Sat Jan 16 11:00:38 2016 +0000
+++ b/modules/postfix/templates/main.cf.erb	Sat Jan 16 11:01:09 2016 +0000
@@ -65,6 +65,7 @@
 transport_maps = hash:/etc/postfix/transport
 message_size_limit = 15000000
 header_checks = regexp:/etc/postfix/header_checks
+body_checks  = regexp:/etc/postfix/body_checks
 
 # The following may not be used by all versions of Postfix
 postscreen_dnsbl_threshold = 2