summaryrefslogtreecommitdiffstats
path: root/roles/MSA/tasks
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2017-05-14 15:02:21 +0200
committerGuilhem Moulin <guilhem@fripost.org>2017-05-14 15:02:46 +0200
commitc55ae1e2a93b1debd8df3ef944c2ddc91055c423 (patch)
treee6c0a7adf9b6634003eae668277051fc68a1e25c /roles/MSA/tasks
parent40eaa53a7bcfbf2f120ebff70e06a4657efcb8a7 (diff)
MSA: reject null sender address.
Diffstat (limited to 'roles/MSA/tasks')
-rw-r--r--roles/MSA/tasks/main.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/MSA/tasks/main.yml b/roles/MSA/tasks/main.yml
index 3068e1b..6eff2cf 100644
--- a/roles/MSA/tasks/main.yml
+++ b/roles/MSA/tasks/main.yml
@@ -22,6 +22,20 @@
owner=root group=root
mode=0644
+- name: Copy the check_sender_access map
+ copy: src=etc/postfix/check_sender_access
+ dest=/etc/postfix-{{ postfix_instance[inst].name }}/check_sender_access
+ owner=root group=root
+ mode=0644
+
+- name: Compile the check_sender_access map
+ # no need to reload upon change, as cleanup(8) is short-running
+ postmap: cmd=postmap src=/etc/postfix-{{ postfix_instance[inst].name }}/check_sender_access db=cdb
+ owner=root group=root
+ mode=0644
+ notify:
+ - Reload Postfix
+
- name: Create directory /etc/postfix/ssl
file: path=/etc/postfix-{{ postfix_instance[inst].name }}/ssl
state=directory