diff options
Diffstat (limited to 'roles/policyd_spf')
-rw-r--r-- | roles/policyd_spf/defaults/main.yml | 0 | ||||
-rw-r--r-- | roles/policyd_spf/files/policyd-spf.conf | 8 | ||||
-rw-r--r-- | roles/policyd_spf/handlers/main.yml | 0 | ||||
-rw-r--r-- | roles/policyd_spf/tasks/main.yml | 13 |
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 | ||
2 | debugLevel = 1 | ||
3 | TestOnly = 1 | ||
4 | HELO_reject = Fail | ||
5 | Mail_From_reject = Fail | ||
6 | PermError_reject = True | ||
7 | TempError_Defer = True | ||
8 | Header_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' | ||