Insert relay by sender from map
This commit is contained in:
parent
5d2274234b
commit
bdb6b87be7
1 changed files with 7 additions and 5 deletions
|
@ -1,9 +1,11 @@
|
||||||
# {{ ansible_managed }}
|
### {{ ansible_managed }}
|
||||||
|
### http://www.postfix.org/postconf.5.html#sender_dependent_relayhost_maps
|
||||||
# http://www.postfix.org/postconf.5.html#sender_dependent_relayhost_maps
|
|
||||||
|
|
||||||
{% if postfix_relay_by_sender is defined %}
|
{% if postfix_relay_by_sender is defined %}
|
||||||
{% for map in postfix_relay_by_sender %}
|
{% for sender in postfix_relay_by_sender %}
|
||||||
{{ map }}
|
{% if sender.comment is defined %}
|
||||||
|
# {{ sender.comment }}
|
||||||
|
{% endif %}
|
||||||
|
{{ "%-60s %s" | format(sender.name, domain.relay) }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue