From 7cc9b392bd4c2c8fd922b6172a67756ac454db99 Mon Sep 17 00:00:00 2001 From: phil Date: Fri, 24 Mar 2023 16:12:58 +0100 Subject: [PATCH] Revert relay domain change --- templates/postfix/main.cf.j2 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/postfix/main.cf.j2 b/templates/postfix/main.cf.j2 index 0b6550d..0f68ff0 100644 --- a/templates/postfix/main.cf.j2 +++ b/templates/postfix/main.cf.j2 @@ -84,9 +84,12 @@ virtual_transport = {% endfor %} {% endif %} -{% if postfix_relay_domains is defined and postfix_relay_domains %} +{% if postfix_relay_domains is defined %} # Relay mails without recipient check -relay_domains = cdb:{{ postfix_conf_dir }}/relay_domains +relay_domains = +{% for map in postfix_relay_domains %} + {{ map.type}}:{{ map.path }} +{% endfor %} {% endif %} {% if postfix_sender_dependent_relayhost_maps is defined %} sender_dependent_relayhost_maps =