ansible-role-postfix/templates/postfix/conf.d/header_treatment.j2
2023-03-20 20:01:04 +01:00

21 lines
507 B
Django/Jinja

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