@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
| EOF
}
+
+
+ concat { '/etc/exim4/manualroute-new':
+ mode => '0444',
+ ensure_newline => true,
+ warn => '# This file is maintained with puppet',
+ require => Package['exim4-daemon-heavy']
+ }
+
+ Concat::Fragment <<| tag == 'exim::manualroute::to::mailrelay' |>>
}
include exim::mx
} else {
include exim
+
+ $mxdata = dig($deprecated::nodeinfo, 'ldap', 'mxRecord')
+ if $mxdata and $mxdata =~ /INCOMING-MX/ {
+ $mailport = lookup('exim::mail_port')
+
+ @@concat::fragment { "manualroute-to-${::fqdn}":
+ tag => 'exim::manualroute::to::mailrelay',
+ target => '/etc/exim4/manualroute-new',
+ content => $mailport == undef ? {
+ true => "${::fqdn}: ${::fqdn}",
+ default => "${::fqdn}: ${::fqdn}::${mailport}",
+ }
+ }
+ }
}
} elsif $type == 'postfix' {
if $mailrelay {