From 0421e66cccaa222db2aa846185cee2be121d694a Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 22 Sep 2019 00:21:05 +0200 Subject: [PATCH] On hosts that get mail via mailrelays, try to collect the ferm rule that will allow access --- modules/roles/manifests/mta.pp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/roles/manifests/mta.pp b/modules/roles/manifests/mta.pp index e85c444c6..b985cd03a 100644 --- a/modules/roles/manifests/mta.pp +++ b/modules/roles/manifests/mta.pp @@ -31,6 +31,10 @@ class roles::mta( default => "${::fqdn}: ${::fqdn}::${mailport}", } } + + Ferm::Rule::Simple <<| tag == 'smtp::server::from::mailrelay' |>> { + port => $mailport + } } } } elsif $type == 'postfix' { -- 2.20.1