aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Lécureuil <neoclust@mageia.org>2017-04-19 14:46:44 +0200
committerNicolas Lécureuil <neoclust@mageia.org>2017-04-19 14:46:44 +0200
commit539b1fa336982f8b54d707d6be57d1e2f631c953 (patch)
tree5e96268aff141d715ccf255e6935a08401a58fe1
parent14c583609e79061a6ac58344386f542198839a5e (diff)
downloadpuppet-539b1fa336982f8b54d707d6be57d1e2f631c953.tar
puppet-539b1fa336982f8b54d707d6be57d1e2f631c953.tar.gz
puppet-539b1fa336982f8b54d707d6be57d1e2f631c953.tar.bz2
puppet-539b1fa336982f8b54d707d6be57d1e2f631c953.tar.xz
puppet-539b1fa336982f8b54d707d6be57d1e2f631c953.zip
Postfix: Add if statement for relayhost
-rw-r--r--modules/postfix/templates/main.cf2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/postfix/templates/main.cf b/modules/postfix/templates/main.cf
index 58621067..cc35fe52 100644
--- a/modules/postfix/templates/main.cf
+++ b/modules/postfix/templates/main.cf
@@ -17,7 +17,9 @@ newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
queue_directory = /var/spool/postfix
mail_owner = postfix
+<% if all_tags.include?('postfix::simple_relay') %>
relayhost = <%= domain %>
+<%- end -%>
# User configurable parameters