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 }}
|
||||
|
||||
# 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 %}
|
||||
|
|
Loading…
Reference in a new issue