1 class exim::mx inherits exim {
5 file { '/etc/exim4/ccTLD.txt':
6 source => 'puppet:///modules/exim/common/ccTLD.txt',
8 file { '/etc/exim4/surbl_whitelist.txt':
9 source => 'puppet:///modules/exim/common/surbl_whitelist.txt',
11 file { '/etc/exim4/exim_surbl.pl':
12 source => 'puppet:///modules/exim/common/exim_surbl.pl',
13 notify => Service['exim4'],
16 # MXs used as smarthosts
17 @ferm::rule { 'dsa-exim-submission':
18 description => 'Allow SMTP',
19 rule => '&SERVICE_RANGE(tcp, submission, $SMTP_SOURCES)'
21 @ferm::rule { 'dsa-exim-v6-submission':
22 description => 'Allow SMTP',
24 rule => '&SERVICE_RANGE(tcp, submission, $SMTP_V6_SOURCES)',
26 $autocertdir = hiera('paths.auto_certs_dir')
27 dnsextras::tlsa_record{ "tlsa-submission":
29 certfile => "${autocertdir}/${::fqdn}.crt",
31 hostname => "$::fqdn",
33 package { 'nagios-plugins-standard':
37 if has_role('mailrelay') {
38 concat::fragment { 'dsa-puppet-stuff--email-virtualdomains':
39 target => '/etc/cron.d/dsa-puppet-stuff',
41 @hourly root if [ ! -d /etc/exim4/email-virtualdomains ]; then cd /etc/exim4 && git clone mail-git:email-virtualdomains ; fi && cd /etc/exim4/email-virtualdomains && git pull --quiet --ff-only
45 file { '/etc/cron.d/dsa-email-virtualdomains': ensure => absent, }