File tree Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
3
- - name : Copy configuration template
3
+ - name : Copy configuration templates
4
4
notify : Restart postfix
5
5
ansible.builtin.template :
6
6
src : " {{ file }}"
14
14
- headers-check.cf
15
15
loop_control :
16
16
loop_var : file
17
+ tags : config
Original file line number Diff line number Diff line change 16
16
17
17
- name : Generic config
18
18
ansible.builtin.include_tasks : install/config.yml
19
+ tags : config
19
20
20
21
- name : Firewall configuration
21
22
ansible.builtin.include_tasks : install/firewall.yml
Original file line number Diff line number Diff line change 9
9
{% endif %}
10
10
# Remove client's IP address
11
11
/^X-Originating-IP:/ IGNORE
12
- # Remove links that contains LAN details
13
- /^Received: from [a-z]+\.{{ network.domain | regex_escape() }}.*/ IGNORE
14
- /^Received: from.*\[192\.168\.[0-9]+\.[0-9]+\].*/ IGNORE
15
- /^Received: from.*\[172\.16\.[0-9]+\.[0-9]+\].*/ IGNORE
16
- /^Received: from.*\[10\.[0-9]+.[0-9]+\.[0-9]+\].*/ IGNORE
12
+ /^Received: .*/ IGNORE
Original file line number Diff line number Diff line change @@ -132,8 +132,8 @@ non_smtpd_milters =
132
132
# antispam:
133
133
# antivirus:
134
134
135
- # Special filters on the headers
136
- header_checks = pcre:/etc/postfix/headers-check.cf
135
+ # Special filters on the headers when sending emails outside
136
+ smtp_header_checks = pcre:/etc/postfix/headers-check.cf
137
137
138
138
# The macros that are sent to Milter applications after the SMTP MAIL FROM command.
139
139
milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen} {auth_type}
You can’t perform that action at this time.
0 commit comments