From: Peter Palfrader Date: Sun, 22 Sep 2019 09:06:05 +0000 (+0200) Subject: Fail if we are not an MX and do not have set MX to the mail relays X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=2e4ccd581403807c15ec6a9eb10c1b596f867e7a;hp=577c7c29513a9b8cfe22dccc2a45bf98ef7322a0;p=mirror%2Fdsa-puppet.git Fail if we are not an MX and do not have set MX to the mail relays --- diff --git a/modules/roles/manifests/mta.pp b/modules/roles/manifests/mta.pp index 2a783b480..b91afbddd 100644 --- a/modules/roles/manifests/mta.pp +++ b/modules/roles/manifests/mta.pp @@ -45,5 +45,9 @@ class roles::mta( default => $mailport, } } + } else { + if ! defined(Class['exim::mx']) and ! defined(Class['postfix']) { + fail('We are not an exim::mx (or a postfix) yet do not have set our MXs to INCOMING-MX.') + } } }