From d4b801b19d791d14ec86099d36770e572ea7d2e5 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 22 Sep 2019 00:15:33 +0200 Subject: [PATCH] Even heavy_exim hosts can get their system mail from relays --- modules/roles/manifests/mta.pp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/roles/manifests/mta.pp b/modules/roles/manifests/mta.pp index 486f3e954..e85c444c6 100644 --- a/modules/roles/manifests/mta.pp +++ b/modules/roles/manifests/mta.pp @@ -11,14 +11,17 @@ class roles::mta( 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', -- 2.20.1