diff options
author | 2024-09-03 16:06:18 +0100 | |
---|---|---|
committer | 2024-09-03 19:47:04 +0100 | |
commit | 89cc9bc2889c0bf759851ef833649002a5e27c20 (patch) | |
tree | 3f0da3ab31735e184ee62adddb4ec1f86a3f472b | |
parent | Create new sender canonical map template for SRS (diff) |
Add new postfix sub-services for conditional SRS rewriting
-rw-r--r-- | ansible/roles/postfix/tasks/main.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ansible/roles/postfix/tasks/main.yml b/ansible/roles/postfix/tasks/main.yml index b708dbd..de775ce 100644 --- a/ansible/roles/postfix/tasks/main.yml +++ b/ansible/roles/postfix/tasks/main.yml @@ -90,6 +90,16 @@ notify: - Restart postfix +- name: Template sender canonical map lookup + template: + src: sender-canonical-maps.j2 + dest: /etc/postfix/sender-canonical-maps + mode: "0644" + group: root + owner: root + tags: + - role::postfix + - name: Create Postfix service directory file: path: "/etc/postfix/service-scripts" @@ -187,6 +197,19 @@ -o smtpd_sasl_type=dovecot -o smtpd_sasl_path=private/auth + cleanup-srs unix n - - - 0 cleanup + -o syslog_name=postfix/srs + -o sender_canonical_maps=pcre:/etc/postfix/sender-canonical-maps,tcp:127.0.0.1:10001 + -o sender_canonical_classes=envelope_sender + + 127.0.0.1:10027 inet n - - - - smtpd + -o syslog_name=postfix/srs + -o smtpd_milters= + -o cleanup_service_name=cleanup-srs + -o smtpd_tls_security_level=none + -o content_filter=smtp: + -o smtpd_recipient_restrictions=permit_mynetworks,reject + # spamassassin filtering spamassassin unix - n n - - pipe user=debian-spamd argv=/usr/bin/spamc -f -e |