add header checks, remove privacy related headers

This commit is contained in:
psy 2021-01-08 13:18:28 +01:00
parent 92a143bab6
commit e43e2051cd
No known key found for this signature in database
GPG key ID: DFF5B17AC3A8ECF5
3 changed files with 18 additions and 2 deletions

5
files/header_checks Normal file
View file

@ -0,0 +1,5 @@
/^Received:.*with ESMTPSA/^ IGNORE
/^X-Originating-IP:/ IGNORE
/^X-Mailer:/ IGNORE
/^User-Agent:/ IGNORE
/^Mime-Version:/ IGNORE

View file

@ -57,6 +57,13 @@
notify:
- restart postfix
- name: Copy header_checks
copy:
src: header_checks
dest: /etc/postfix/header_checks
notify:
- restart postfix
- name: copy postfix maps
template:
src: maps.j2

View file

@ -124,8 +124,12 @@ mailbox_transport = dovecot
virtual_alias_domains = {{ postfix.virtual_alias_domains|join(' ') }}
virtual_alias_maps = {{ postfix.virtual_alias_maps }}
# opendkim
# header checks
mime_header_checks = regexp:/etc/postfix/header_checks
header_checks = regexp:/etc/postfix/header_checks
# opendkim
{% if postfix.enable_opendkim %}
milter_protocol = 6
@ -134,4 +138,4 @@ milter_default_action = accept
smtpd_milters = inet:localhost:8891
non_smtpd_milters = inet:localhost:8891
{% endif %}
{% endif %}