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 =