Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sébastien Luttringer
infrastructure
Commits
5eb777b9
Commit
5eb777b9
authored
Jul 30, 2020
by
Kristian Klausen
🎉
Committed by
Sven-Hendrik Haase
Jul 30, 2020
Browse files
postfix: Strip sensitive headers (user-agent + sender ip)
parent
d0712657
Changes
3
Hide whitespace changes
Inline
Side-by-side
roles/postfix/files/msa_header_checks
0 → 100644
View file @
5eb777b9
/^Received:/ IGNORE
/^User-Agent:/ IGNORE
roles/postfix/handlers/main.yml
View file @
5eb777b9
...
...
@@ -21,6 +21,7 @@
-
relay_transport_map
-
domains
-
mailman_compat
-
msa_header_checks
-
name
:
update aliases db
command
:
postalias /etc/postfix/aliases
...
...
roles/postfix/templates/master.cf.j2
View file @
5eb777b9
...
...
@@ -22,7 +22,10 @@ localhost:smtp inet n - n - - smtpd
{% endif %}
{% if postfix_server %}
msa_cleanup unix n - n - 0 cleanup
-o header_checks=pcre:/etc/postfix/msa_header_checks
submission inet n - n - - smtpd
-o cleanup_service_name=msa_cleanup
-o syslog_name=postfix/submission
-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment