2024-03-27 17:39:16 +01:00
|
|
|
{{ ansible_managed | comment }}
|
2023-03-20 20:01:04 +01:00
|
|
|
|
|
|
|
# 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 %}
|