From 51b6cf14ac70b6dd6d864787a6b6e2955dec35b0 Mon Sep 17 00:00:00 2001 From: Tyghe Vallard Date: Mon, 7 Dec 2015 11:53:11 -0500 Subject: [PATCH 1/4] allow setting inet_interfaces --- manifests/relay.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/relay.pp b/manifests/relay.pp index 27a3c0e..7b449f9 100644 --- a/manifests/relay.pp +++ b/manifests/relay.pp @@ -20,6 +20,7 @@ $smtp_tls_note_starttls_offer = undef, $smtp_tls_security_level = undef, $smtp_use_tls = undef, + $inet_interfaces = 'loopbback-only', ) { include postfix @@ -53,5 +54,5 @@ postfix::config::maincfhelper { 'masquerade_domains': value => $masquerade_domains, } - postfix::config::maincfhelper { 'inet_interfaces': value => 'loopback-only', } + postfix::config::maincfhelper { 'inet_interfaces': value => $inet_interfaces, } } From 72bc9237dab9467c23822945657325a3fbdda674 Mon Sep 17 00:00:00 2001 From: Tyghe Vallard Date: Mon, 7 Dec 2015 12:01:43 -0500 Subject: [PATCH 2/4] fixed typo --- manifests/relay.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/relay.pp b/manifests/relay.pp index 7b449f9..987c4f7 100644 --- a/manifests/relay.pp +++ b/manifests/relay.pp @@ -20,7 +20,7 @@ $smtp_tls_note_starttls_offer = undef, $smtp_tls_security_level = undef, $smtp_use_tls = undef, - $inet_interfaces = 'loopbback-only', + $inet_interfaces = 'loopback-only', ) { include postfix From 87abe5f992fb6f343c76159127ab2534cda70839 Mon Sep 17 00:00:00 2001 From: Tyghe Vallard Date: Thu, 10 Dec 2015 13:38:12 -0500 Subject: [PATCH 3/4] can now specify inet_protocols --- manifests/relay.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/manifests/relay.pp b/manifests/relay.pp index 987c4f7..f0351c3 100644 --- a/manifests/relay.pp +++ b/manifests/relay.pp @@ -21,6 +21,7 @@ $smtp_tls_security_level = undef, $smtp_use_tls = undef, $inet_interfaces = 'loopback-only', + $inet_protocols = 'all', ) { include postfix From 61f2c50f5194ae86c676acc56738895573300cdd Mon Sep 17 00:00:00 2001 From: Tyghe Vallard Date: Thu, 10 Dec 2015 13:41:09 -0500 Subject: [PATCH 4/4] have to actually put config in there --- manifests/relay.pp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manifests/relay.pp b/manifests/relay.pp index f0351c3..9d1c23c 100644 --- a/manifests/relay.pp +++ b/manifests/relay.pp @@ -56,4 +56,6 @@ postfix::config::maincfhelper { 'masquerade_domains': value => $masquerade_domains, } postfix::config::maincfhelper { 'inet_interfaces': value => $inet_interfaces, } + + postfix::config::maincfhelper { 'inet_protocols': value => $inet_protocols, } }