aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/mail.pp6
1 files changed, 5 insertions, 1 deletions
diff --git a/manifests/mail.pp b/manifests/mail.pp
index bcc386e..2445af6 100644
--- a/manifests/mail.pp
+++ b/manifests/mail.pp
@@ -4,6 +4,10 @@ class nodo::mail {
$postfix_smtp_listen = "$ipaddress"
$postfix_mydestination = '$myhostname, $mydomain, localhost.$mydomain, localhost'
+ case $postfix_mynetworks {
+ '': { $postfix_mynetworks = "127.0.0.0/8" }
+ }
+
include nodo::vserver
include postfix
include database
@@ -36,7 +40,7 @@ class nodo::mail {
"mydomain": value => "$domain";
"myhostname": value => "$fqdn";
"mydestination": value => $postfix_mydestination;
- "mynetworks": value => "127.0.0.0/8";
+ "mynetworks": value => "$postfix_mynetworks";
"relay_domains": value => "$domain";
"virtual_alias_maps": value => "hash:/etc/postfix/virtual";
"transport_maps": value => "hash:/etc/postfix/transport";