aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postfix/templates/main.cf
diff options
context:
space:
mode:
Diffstat (limited to 'modules/postfix/templates/main.cf')
-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 -%>