projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reload apache instead of restarting it
[mirror/dsa-puppet.git]
/
modules
/
exim
/
manifests
/
mx.pp
diff --git
a/modules/exim/manifests/mx.pp
b/modules/exim/manifests/mx.pp
index
70a3702
..
54f1933
100644
(file)
--- a/
modules/exim/manifests/mx.pp
+++ b/
modules/exim/manifests/mx.pp
@@
-13,6
+13,7
@@
class exim::mx inherits exim {
notify => Service['exim4'],
}
notify => Service['exim4'],
}
+ # MXs used as smarthosts
@ferm::rule { 'dsa-exim-submission':
description => 'Allow SMTP',
rule => '&SERVICE_RANGE(tcp, submission, $SMTP_SOURCES)'
@ferm::rule { 'dsa-exim-submission':
description => 'Allow SMTP',
rule => '&SERVICE_RANGE(tcp, submission, $SMTP_SOURCES)'
@@
-22,5
+23,23
@@
class exim::mx inherits exim {
domain => 'ip6',
rule => '&SERVICE_RANGE(tcp, submission, $SMTP_V6_SOURCES)',
}
domain => 'ip6',
rule => '&SERVICE_RANGE(tcp, submission, $SMTP_V6_SOURCES)',
}
+ dnsextras::tlsa_record{ "tlsa-submission":
+ zone => 'debian.org',
+ certfile => "/etc/puppet/modules/exim/files/certs/${::fqdn}.crt",
+ port => 587,
+ hostname => "$::fqdn",
+ }
+ package { 'nagios-plugins-standard':
+ ensure => installed,
+ }
+ if has_role('mailrelay') {
+ file { '/etc/cron.d/dsa-email-virtualdomains':
+ source => 'puppet:///modules/exim/dsa-email-virtualdomains.cron',
+ }
+ } else {
+ file { '/etc/cron.d/dsa-email-virtualdomains':
+ ensure => absent,
+ }
+ }
}
}