if $type == 'exim4' {
if $mailrelay {
include roles::mailrelay
- } elsif $heavy {
- include exim::mx
} else {
- include exim
+ if $heavy {
+ include exim::mx
+ } else {
+ include exim
+ }
$mxdata = dig($deprecated::nodeinfo, 'ldap', 'mXRecord')
if $mxdata and $mxdata.any |$item| { $item =~ /INCOMING-MX/ } {
- $mailport = lookup('exim::mail_port')
+ $mailport = lookup( { 'name' => 'exim::mail_port', 'default_value' => undef } )
+
@@concat::fragment { "manualroute-to-${::fqdn}":
tag => 'exim::manualroute::to::mailrelay',