diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2018-12-11 21:13:19 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2018-12-12 13:46:44 +0100 |
commit | a0d439f832721ab1b4bdcf9ab844ee20d4dc1682 (patch) | |
tree | 64b56a401e9a92622fb7bf734453882ca4f9d6a4 /roles/MSA/tasks | |
parent | 7beb915bb8dddac847ca3aca85c187e314a6c0fa (diff) |
submission: Prospective SPF checking.
Cf. http://www.openspf.org/Best_Practices/Outbound .
Diffstat (limited to 'roles/MSA/tasks')
-rw-r--r-- | roles/MSA/tasks/main.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/MSA/tasks/main.yml b/roles/MSA/tasks/main.yml index 65d1dae..c78139a 100644 --- a/roles/MSA/tasks/main.yml +++ b/roles/MSA/tasks/main.yml @@ -4,6 +4,7 @@ packages: - postfix - postfix-pcre + - postfix-policyd-spf-python - name: Copy Postfix sender login socketmap copy: src=usr/local/bin/postfix-sender-login.pl @@ -59,6 +60,15 @@ notify: - Reload Postfix +- name: Configure policyd-spf + template: src=etc/postfix-policyd-spf-python/policyd-spf.conf.j2 + dest=/etc/postfix-policyd-spf-python/policyd-spf.conf + owner=root group=root + mode=0644 + # Reload Postifx to terminate spawn(8) daemon children + notify: + - Reload Postfix + - name: Create directory /etc/postfix/ssl file: path=/etc/postfix-{{ postfix_instance[inst].name }}/ssl state=directory |