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

17 lines
480 B
Django/Jinja

{{ ansible_managed | comment }}
# Use this file for mail addresses that should be treated specially.
# Discard mails
# You need to create an alias to this address
/^noreply(\+.*)?@discard\.local$/ discard:
{% if postfix_transport_global_exceptions is defined %}
{% for address in postfix_transport_global_exceptions %}
{% if address.comment is defined %}
# {{ address.comment }}
{% endif %}
{{ "%-50s %s" | format(address.address, address.state) }}
{% endfor %}
{% endif %}