On hosts that get mail via mailrelays, try to collect the ferm rule that will allow...
authorPeter Palfrader <peter@palfrader.org>
Sat, 21 Sep 2019 22:21:05 +0000 (00:21 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sat, 21 Sep 2019 22:21:05 +0000 (00:21 +0200)
modules/roles/manifests/mta.pp

index e85c444..b985cd0 100644 (file)
@@ -31,6 +31,10 @@ class roles::mta(
             default => "${::fqdn}:   ${::fqdn}::${mailport}",
           }
         }
+
+        Ferm::Rule::Simple <<| tag == 'smtp::server::from::mailrelay' |>> {
+          port => $mailport
+        }
       }
     }
   } elsif $type == 'postfix' {