aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/postfix/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/postfix/tasks')
-rw-r--r--ansible/roles/postfix/tasks/main.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/ansible/roles/postfix/tasks/main.yml b/ansible/roles/postfix/tasks/main.yml
index 57293ad..5281fff 100644
--- a/ansible/roles/postfix/tasks/main.yml
+++ b/ansible/roles/postfix/tasks/main.yml
@@ -158,6 +158,22 @@
tags:
- role::postfix
+- name: Update PostSRSD rewriting config
+ lineinfile:
+ path: /etc/default/postsrsd
+ regexp: "^#?{{ item['key'] }}="
+ line: '{{ item["key"] }}="{{ item["value"] }}"'
+ mode: "0444"
+ owner: root
+ group: root
+ loop:
+ - key: SRS_EXCLUDE_DOMAINS
+ value: "{{ postfix_destination_domains | join(',') }}"
+ tags:
+ - role::postfix
+ notify:
+ - Restart postsrsd
+
- name: Pass inbound mail through spamassassin content filter
lineinfile:
path: /etc/postfix/master.cf