exim blacklist: add more recent offenders
[mirror/dsa-puppet.git] / modules / exim / manifests / mailrelay.pp
1 # our mailrelay exim class
2 class exim::mailrelay {
3   class { 'exim::mx':
4     is_mailrelay  => true,
5   }
6
7   concat::fragment { 'puppet-crontab--email-virtualdomains':
8     target  => '/etc/cron.d/puppet-crontab',
9     content => @(EOF)
10       @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
11       | EOF
12   }
13   concat::fragment { 'virtual_domain_template':
14     target  => '/etc/exim4/virtualdomains',
15     content => template('exim/virtualdomains-mailrelay.erb'),
16   }
17
18   concat { '/etc/exim4/manualroute':
19     mode           => '0444',
20     ensure_newline => true,
21     warn           => '# This file is maintained with puppet',
22     require        => Package['exim4-daemon-heavy']
23   }
24   Concat::Fragment <<| tag == 'exim::manualroute::to::mailrelay' |>>
25 }