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

21 lines
513 B
Django/Jinja

{{ ansible_managed | comment }}
# Remove sensible headers
/^Mail-System-Version:/ IGNORE
/^Mailer:/ IGNORE
/^Originating-Client:/ IGNORE
/^User-Agent:/ IGNORE
/^X-Enigmail-Version:/ IGNORE
/^X-Mailer:/ IGNORE
/^X-MimeOLE:/ IGNORE
/^X-Newsreader:/ IGNORE
/^X-Originating-IP:/ IGNORE
/^X-Sender:/ IGNORE
/^\s*(Received: from)[^\n]*(.*)/ REPLACE $1 [127.0.0.1] (localhost [127.0.0.1])
{% if postfix_header_treatment is defined %}
{% for header in postfix_header_treatment %}
{{ header }}
{% endfor %}
{% endif %}