make extra header checks configurable

This commit is contained in:
psy 2021-01-12 16:12:49 +01:00
parent 6d9f604b93
commit 41af92aea4
No known key found for this signature in database
GPG key ID: DFF5B17AC3A8ECF5
5 changed files with 18 additions and 11 deletions

View file

@ -0,0 +1,11 @@
/^Received:.*with ESMTPSA/ IGNORE
/^X-Originating-IP:/ IGNORE
/^X-Mailer:/ IGNORE
/^User-Agent:/ IGNORE
{% if postfix.add_header_checks|length %}
# {{ ansible_managed }}
{% for item in postfix.add_header_checks %}
/{{ item.regexp }}/ {{ item.action }}
{% endfor %}
{% endif %}