aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postfix/templates
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-11-19 20:19:02 +0000
committerMichael Scherer <misc@mageia.org>2010-11-19 20:19:02 +0000
commitc67de61a2fa2adf5b76c173090778a2631be0d3a (patch)
treec352b41e7a0cfaeabe694cee6a02cc096ce5f619 /modules/postfix/templates
parent40d4203c0e8361f03380283c0d1a0e0bfe72bd53 (diff)
downloadpuppet-c67de61a2fa2adf5b76c173090778a2631be0d3a.tar
puppet-c67de61a2fa2adf5b76c173090778a2631be0d3a.tar.gz
puppet-c67de61a2fa2adf5b76c173090778a2631be0d3a.tar.bz2
puppet-c67de61a2fa2adf5b76c173090778a2631be0d3a.tar.xz
puppet-c67de61a2fa2adf5b76c173090778a2631be0d3a.zip
- fix config for secondary smtp
Diffstat (limited to 'modules/postfix/templates')
-rw-r--r--modules/postfix/templates/main.cf8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/postfix/templates/main.cf b/modules/postfix/templates/main.cf
index e4a29ea7..4b82bd9c 100644
--- a/modules/postfix/templates/main.cf
+++ b/modules/postfix/templates/main.cf
@@ -35,9 +35,11 @@ myhostname = <%= fqdn %>
mydomain = <%= domain %>
mydestination = <%= fqdn %>
myorigin = $mydomain
-<%- if all_tags.include?('postfix::smtp_server') -%>
-relay_domains = $mydestination,
- ml.<%= domain %>,
+<%- if all_tags.include?('postfix::secondary_smtp') -%>
+relay_domains = <%= domain %>, ml.<%= domain %>
+<%- end -%>
+
+mydestination = <%= fqdn %>
<%- if all_tags.include?('postfix::primary_smtp') -%>
<%= domain %>
<%- end -%>