ansible-role-postfix/templates/postfix/conf.d/relay_by_sender.j2
phil 8c79f8b687 Use Ansible defaults to insert comments
Enable vscodium code highlighting for some files
2024-03-27 17:39:16 +01:00

11 lines
344 B
Django/Jinja

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