From 539b1fa336982f8b54d707d6be57d1e2f631c953 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C3=A9cureuil?= Date: Wed, 19 Apr 2017 14:46:44 +0200 Subject: Postfix: Add if statement for relayhost --- modules/postfix/templates/main.cf | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.1