Insert relay by sender from map

This commit is contained in:
phil 2023-05-17 21:45:27 +02:00
parent 5d2274234b
commit bdb6b87be7

View file

@ -1,9 +1,11 @@
# {{ ansible_managed }}
# http://www.postfix.org/postconf.5.html#sender_dependent_relayhost_maps
### {{ ansible_managed }}
### http://www.postfix.org/postconf.5.html#sender_dependent_relayhost_maps
{% if postfix_relay_by_sender is defined %}
{% for map in postfix_relay_by_sender %}
{{ map }}
{% for sender in postfix_relay_by_sender %}
{% if sender.comment is defined %}
# {{ sender.comment }}
{% endif %}
{{ "%-60s %s" | format(sender.name, domain.relay) }}
{% endfor %}
{% endif %}