ansible-role-postfix/templates/postfix/conf.d/transport_global_exceptions.j2

18 lines
474 B
Django/Jinja

### {{ ansible_managed }}
# 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 %}