Have the mailrelays store a firewall rule to allow incoming smtp on the other hosts
authorPeter Palfrader <peter@palfrader.org>
Sat, 21 Sep 2019 15:34:24 +0000 (17:34 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sat, 21 Sep 2019 16:21:16 +0000 (18:21 +0200)
modules/roles/manifests/mailrelay.pp

index f7c1a04..b84b13f 100644 (file)
@@ -20,4 +20,13 @@ class roles::mailrelay {
     username => $::fqdn,
     password => $rabbit_password
   }
+
+  # smtp firewalling setup
+  ###
+  @@ferm::rule::simple { "dsa-smtp-from-mailrelay-${::fqdn}":
+    tag         => 'smtp::server::from::mailrelay',
+    description => 'Allow smtp access from a mailrelay',
+    port        => '25',
+    saddr       => $base::public_addresses,
+  }
 }