Initial commit
This commit is contained in:
commit
11b84aa872
40 changed files with 995 additions and 0 deletions
21
templates/postfix/conf.d/header_treatment.j2
Normal file
21
templates/postfix/conf.d/header_treatment.j2
Normal file
|
@ -0,0 +1,21 @@
|
|||
### {{ 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 %}
|
Loading…
Add table
Add a link
Reference in a new issue