summaryrefslogtreecommitdiff
path: root/puppet/modules/site_postfix/manifests/mx/checks.pp
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-10-10 18:53:13 +0200
committervarac <varacanero@zeromail.org>2013-10-11 17:54:38 +0200
commit2a4ae58cc5e3f6e4a1e09ef6a9f15ade1e2c59fa (patch)
tree729a70668c842a5aec77986bb02f4de1949692f2 /puppet/modules/site_postfix/manifests/mx/checks.pp
parent04e270616db7d486eeacb298aed173731c9a2fe2 (diff)
move site_config::checks to site_config::mx::checks
Diffstat (limited to 'puppet/modules/site_postfix/manifests/mx/checks.pp')
-rw-r--r--puppet/modules/site_postfix/manifests/mx/checks.pp41
1 files changed, 41 insertions, 0 deletions
diff --git a/puppet/modules/site_postfix/manifests/mx/checks.pp b/puppet/modules/site_postfix/manifests/mx/checks.pp
new file mode 100644
index 00000000..31399d32
--- /dev/null
+++ b/puppet/modules/site_postfix/manifests/mx/checks.pp
@@ -0,0 +1,41 @@
+class site_postfix::checks {
+
+ file {
+ '/etc/postfix/checks':
+ ensure => directory,
+ mode => '0755',
+ owner => root,
+ group => postfix,
+ require => Package['postfix'];
+
+ '/etc/postfix/checks/helo_checks':
+ content => template('site_postfix/checks/helo_access.erb'),
+ mode => '0644',
+ owner => root,
+ group => root;
+ }
+
+ exec {
+ '/usr/sbin/postmap /etc/postfix/checks/helo_checks':
+ refreshonly => true,
+ subscribe => File['/etc/postfix/checks/helo_checks'];
+ }
+
+ # Anonymize the user's home IP from the email headers (Feature #3866)
+ package { 'postfix-pcre': ensure => installed }
+
+ file { '/etc/postfix/checks/received_anon':
+ source => 'puppet:///modules/site_postfix/checks/received_anon',
+ mode => '0644',
+ owner => root,
+ group => root,
+ notify => Service['postfix']
+ }
+
+ postfix::config {
+ 'header_checks':
+ value => 'pcre:/etc/postfix/checks/received_anon',
+ require => File['/etc/postfix/checks/received_anon'];
+ }
+
+}