summaryrefslogtreecommitdiff
path: root/puppet
diff options
context:
space:
mode:
authorMicah Anderson <micah@leap.se>2013-12-19 16:03:45 -0500
committerMicah Anderson <micah@leap.se>2013-12-19 16:03:45 -0500
commit5f7f2cd3a61aafb1afc81b74b3ef03afe3a64221 (patch)
treec8612c419eb7bab14cc0bb78b52bf459562a5614 /puppet
parent66ad58f2bc3b285bd17d5e61a21afece11d2c293 (diff)
Set mynetworks to include any mx server in the provider to allow them to0.5.0rc1
Helo as the domain (#4495) Change-Id: I6c8ac28faceb8b0c6129a606ede04837efd3d261
Diffstat (limited to 'puppet')
-rw-r--r--puppet/modules/site_postfix/manifests/mx.pp3
1 files changed, 3 insertions, 0 deletions
diff --git a/puppet/modules/site_postfix/manifests/mx.pp b/puppet/modules/site_postfix/manifests/mx.pp
index 441252f2..de89c26e 100644
--- a/puppet/modules/site_postfix/manifests/mx.pp
+++ b/puppet/modules/site_postfix/manifests/mx.pp
@@ -4,6 +4,7 @@ class site_postfix::mx {
$domain = $domain_hash['full_suffix']
$host_domain = $domain_hash['full']
$cert_name = hiera('name')
+ $mynetworks = join(hiera('mx_nodes'), ' ')
$root_mail_recipient = hiera ('contacts')
$postfix_smtp_listen = 'all'
@@ -14,6 +15,8 @@ class site_postfix::mx {
include site_config::x509::client_ca::key
postfix::config {
+ 'mynetworks':
+ value => "127.0.0.0/8 [::1]/128 [fe80::]/64 ${mynetworks}";
'mydestination':
value => "\$myorigin, localhost, localhost.\$mydomain, ${domain}";
'myhostname':