remove default firewall accept to port submission on the MXes
[mirror/dsa-puppet.git] / modules / exim / manifests / mx.pp
1 # our heavy exim class
2 # @param is_mailrelay this system is a mailrelay, both in and out, for debian hosts
3 class exim::mx(
4   Boolean $is_mailrelay = false,
5 ){
6   class { 'exim':
7     use_smarthost => false,
8     is_mailrelay  => $is_mailrelay,
9   }
10
11   include clamav
12   include postgrey
13   include fail2ban::exim
14
15   file { '/etc/exim4/ccTLD.txt':
16     source => 'puppet:///modules/exim/common/ccTLD.txt',
17   }
18   file { '/etc/exim4/surbl_whitelist.txt':
19     source => 'puppet:///modules/exim/common/surbl_whitelist.txt',
20   }
21   file { '/etc/exim4/exim_surbl.pl':
22     source => 'puppet:///modules/exim/common/exim_surbl.pl',
23     notify => Service['exim4'],
24   }
25
26   $autocertdir = hiera('paths.auto_certs_dir')
27   dnsextras::tlsa_record{ 'tlsa-submission':
28     zone     => 'debian.org',
29     certfile => "${autocertdir}/${::fqdn}.crt",
30     port     => 587,
31     hostname => $::fqdn,
32   }
33   package { 'monitoring-plugins-standard':
34     ensure => installed,
35   }
36 }