add header checks, remove privacy related headers
This commit is contained in:
parent
92a143bab6
commit
e43e2051cd
3 changed files with 18 additions and 2 deletions
5
files/header_checks
Normal file
5
files/header_checks
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
/^Received:.*with ESMTPSA/^ IGNORE
|
||||||
|
/^X-Originating-IP:/ IGNORE
|
||||||
|
/^X-Mailer:/ IGNORE
|
||||||
|
/^User-Agent:/ IGNORE
|
||||||
|
/^Mime-Version:/ IGNORE
|
||||||
|
|
@ -57,6 +57,13 @@
|
||||||
notify:
|
notify:
|
||||||
- restart postfix
|
- restart postfix
|
||||||
|
|
||||||
|
- name: Copy header_checks
|
||||||
|
copy:
|
||||||
|
src: header_checks
|
||||||
|
dest: /etc/postfix/header_checks
|
||||||
|
notify:
|
||||||
|
- restart postfix
|
||||||
|
|
||||||
- name: copy postfix maps
|
- name: copy postfix maps
|
||||||
template:
|
template:
|
||||||
src: maps.j2
|
src: maps.j2
|
||||||
|
|
|
||||||
|
|
@ -124,8 +124,12 @@ mailbox_transport = dovecot
|
||||||
virtual_alias_domains = {{ postfix.virtual_alias_domains|join(' ') }}
|
virtual_alias_domains = {{ postfix.virtual_alias_domains|join(' ') }}
|
||||||
virtual_alias_maps = {{ postfix.virtual_alias_maps }}
|
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 %}
|
{% if postfix.enable_opendkim %}
|
||||||
|
|
||||||
milter_protocol = 6
|
milter_protocol = 6
|
||||||
|
|
@ -134,4 +138,4 @@ milter_default_action = accept
|
||||||
smtpd_milters = inet:localhost:8891
|
smtpd_milters = inet:localhost:8891
|
||||||
non_smtpd_milters = inet:localhost:8891
|
non_smtpd_milters = inet:localhost:8891
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue