1 # our mailrelay exim class
2 class exim::mailrelay {
7 concat::fragment { 'puppet-crontab--email-virtualdomains':
8 target => '/etc/cron.d/puppet-crontab',
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
13 concat::fragment { 'virtual_domain_template':
14 target => '/etc/exim4/virtualdomains',
15 content => template('exim/virtualdomains-mailrelay.erb'),
18 concat { '/etc/exim4/manualroute':
20 ensure_newline => true,
21 warn => '# This file is maintained with puppet',
22 require => Package['exim4-daemon-heavy']
24 Concat::Fragment <<| tag == 'exim::manualroute::to::mailrelay' |>>