postfix: remove delievery

This commit is contained in:
genofire 2021-10-21 16:13:08 +02:00
parent 5989940361
commit 70144f3fbb
3 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,7 @@
state: latest state: latest
name: name:
- postfix - postfix
- postfix-pcre
- name: postfix - generate DH - name: postfix - generate DH
notify: reload postfix notify: reload postfix
@ -24,6 +25,7 @@
with_items: with_items:
- main.cf - main.cf
- master.cf - master.cf
- smtp_header_checks
- sql/smtpd-sender-login-maps.cf - sql/smtpd-sender-login-maps.cf
- sql/tls-policy.cf - sql/tls-policy.cf
- sql/virtual-sender-maps.cf - sql/virtual-sender-maps.cf

View File

@ -168,6 +168,8 @@ smtpd_sender_login_maps =
{% endif %} {% endif %}
local_recipient_maps = $smtpd_sender_login_maps local_recipient_maps = $smtpd_sender_login_maps
smtp_header_checks = pcre:/etc/postfix/smtp_header_checks
{% if mailserver_mailman_enabled %} {% if mailserver_mailman_enabled %}
relay_domains = relay_domains =
hash:/var/lib/mailman/data/relay-domains hash:/var/lib/mailman/data/relay-domains

View File

@ -0,0 +1,3 @@
# {{ ansible_managed }}
/^Received: .*/ IGNORE
/^X-Originating-IP:/ IGNORE