1 class exim::mx inherits exim {
6 file { '/etc/exim4/ccTLD.txt':
7 source => 'puppet:///modules/exim/common/ccTLD.txt',
9 file { '/etc/exim4/surbl_whitelist.txt':
10 source => 'puppet:///modules/exim/common/surbl_whitelist.txt',
12 file { '/etc/exim4/exim_surbl.pl':
13 source => 'puppet:///modules/exim/common/exim_surbl.pl',
14 notify => Service['exim4'],
17 # MXs used as smarthosts
18 ferm::rule { 'dsa-exim-submission':
19 description => 'Allow SMTP',
20 rule => '&SERVICE_RANGE(tcp, submission, $SMTP_SOURCES)'
22 ferm::rule { 'dsa-exim-v6-submission':
23 description => 'Allow SMTP',
25 rule => '&SERVICE_RANGE(tcp, submission, $SMTP_V6_SOURCES)',
27 $autocertdir = hiera('paths.auto_certs_dir')
28 dnsextras::tlsa_record{ "tlsa-submission":
30 certfile => "${autocertdir}/${::fqdn}.crt",
32 hostname => "$::fqdn",
34 package { 'monitoring-plugins-standard':
38 if has_role('mailrelay') {
39 concat::fragment { 'puppet-crontab--email-virtualdomains':
40 target => '/etc/cron.d/puppet-crontab',
42 @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
46 file { '/etc/cron.d/dsa-email-virtualdomains': ensure => absent, }