From 746f7fb9ecfe784bcf167deae9d6dfef41bfd2bd Mon Sep 17 00:00:00 2001 From: Naglfar Date: Sat, 30 Nov 2019 03:02:10 +0000 Subject: [PATCH] Adding postfix python-policyd-spf to playbook --- .../etc/postfix-policyd-spf-python/policyd-spf.conf | 13 +++++++++++++ roles/shell/tasks/postfix.yml | 10 ++++++++++ 2 files changed, 23 insertions(+) create mode 100644 roles/shell/files/etc/postfix-policyd-spf-python/policyd-spf.conf diff --git a/roles/shell/files/etc/postfix-policyd-spf-python/policyd-spf.conf b/roles/shell/files/etc/postfix-policyd-spf-python/policyd-spf.conf new file mode 100644 index 0000000..32ee6a9 --- /dev/null +++ b/roles/shell/files/etc/postfix-policyd-spf-python/policyd-spf.conf @@ -0,0 +1,13 @@ +# For a fully commented sample config file see policyd-spf.conf.commented + +debugLevel = 1 +TestOnly = 1 + +HELO_reject = SPF_Not_Pass +Mail_From_reject = Softfail + +PermError_reject = False +TempError_Defer = False + +skip_addresses = 127.0.0.0/8,::ffff:127.0.0.0/104,::1 + diff --git a/roles/shell/tasks/postfix.yml b/roles/shell/tasks/postfix.yml index 37e113f..ba909f9 100644 --- a/roles/shell/tasks/postfix.yml +++ b/roles/shell/tasks/postfix.yml @@ -18,3 +18,13 @@ group: root mode: 0644 notify: restart Postfix + +# Deploy policyd-spf.conf +- name: Deploy postfix spf + copy: + src: ../files/etc/postfix-policyd-spf-python/policyd-spf.conf + dest: /etc/postfix-policyd-spf-python/policyd-spf.conf + owner: root + group: root + mode: 0644 +