aboutsummaryrefslogtreecommitdiff
path: root/roles/policyd_spf
diff options
context:
space:
mode:
authorSam Chudnick <sam@chudnick.com>2023-07-02 19:04:30 -0400
committerSam Chudnick <sam@chudnick.com>2023-07-02 19:04:30 -0400
commit724d877995dfcc10c462a18dcb4ea6c8b60c2d03 (patch)
tree270537b8fca585717c1ffa7708e492593f7b2ed5 /roles/policyd_spf
initial commit
Diffstat (limited to 'roles/policyd_spf')
-rw-r--r--roles/policyd_spf/defaults/main.yml0
-rw-r--r--roles/policyd_spf/files/policyd-spf.conf8
-rw-r--r--roles/policyd_spf/handlers/main.yml0
-rw-r--r--roles/policyd_spf/tasks/main.yml13
4 files changed, 21 insertions, 0 deletions
diff --git a/roles/policyd_spf/defaults/main.yml b/roles/policyd_spf/defaults/main.yml
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/roles/policyd_spf/defaults/main.yml
diff --git a/roles/policyd_spf/files/policyd-spf.conf b/roles/policyd_spf/files/policyd-spf.conf
new file mode 100644
index 0000000..7fba9ba
--- /dev/null
+++ b/roles/policyd_spf/files/policyd-spf.conf
@@ -0,0 +1,8 @@
1# postfix-policyd-spf configuration
2debugLevel = 1
3TestOnly = 1
4HELO_reject = Fail
5Mail_From_reject = Fail
6PermError_reject = True
7TempError_Defer = True
8Header_Type = AR
diff --git a/roles/policyd_spf/handlers/main.yml b/roles/policyd_spf/handlers/main.yml
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/roles/policyd_spf/handlers/main.yml
diff --git a/roles/policyd_spf/tasks/main.yml b/roles/policyd_spf/tasks/main.yml
new file mode 100644
index 0000000..48aa12d
--- /dev/null
+++ b/roles/policyd_spf/tasks/main.yml
@@ -0,0 +1,13 @@
1- name: install packages
2 package:
3 name:
4 - postfix-policyd-spf-python
5 state: latest
6
7- name: deploy configuration
8 copy:
9 src: policyd-spf.conf
10 dest: /etc/postfix-policyd-spf-python/policyd-spf.conf
11 owner: root
12 group: root
13 mode: '0644'