From b86f94b90c18b367b95491324d98e320a6ad82df Mon Sep 17 00:00:00 2001 From: phil Date: Thu, 15 Jun 2023 07:38:16 +0200 Subject: [PATCH] Insert relayhost option only if defined --- templates/postfix/main.cf.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/postfix/main.cf.j2 b/templates/postfix/main.cf.j2 index ceba18b..351734e 100644 --- a/templates/postfix/main.cf.j2 +++ b/templates/postfix/main.cf.j2 @@ -119,7 +119,9 @@ transport_maps = {% endfor %} {% endif %} +{% if postfix_relayhost is defined %} relayhost = {{ postfix_relayhost}} +{% endif %} {% if postfix_canonical_maps is defined %} canonical_maps =