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 # 20181010 many connections:
21 @ferm::rule { 'dsa-mail-abusers':
23 rule => "saddr (188.165.219.27 125.72.232.0/24 140.224.61.0/24 117.24.38.0/24) DROP",
26 # MXs used as smarthosts
27 @ferm::rule { 'dsa-exim-submission':
28 description => 'Allow SMTP',
29 rule => '&SERVICE_RANGE(tcp, submission, $SMTP_SOURCES)'
31 @ferm::rule { 'dsa-exim-v6-submission':
32 description => 'Allow SMTP',
34 rule => '&SERVICE_RANGE(tcp, submission, $SMTP_V6_SOURCES)',
36 $autocertdir = hiera('paths.auto_certs_dir')
37 dnsextras::tlsa_record{ "tlsa-submission":
39 certfile => "${autocertdir}/${::fqdn}.crt",
41 hostname => "$::fqdn",
43 package { 'nagios-plugins-standard':
47 if has_role('mailrelay') {
48 concat::fragment { 'dsa-puppet-stuff--email-virtualdomains':
49 target => '/etc/cron.d/dsa-puppet-stuff',
51 @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
55 file { '/etc/cron.d/dsa-email-virtualdomains': ensure => absent, }