aboutsummaryrefslogtreecommitdiffstats
path: root/roles/mail/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/mail/tasks/main.yml')
-rw-r--r--roles/mail/tasks/main.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/roles/mail/tasks/main.yml b/roles/mail/tasks/main.yml
index 186417f..59f1b0c 100644
--- a/roles/mail/tasks/main.yml
+++ b/roles/mail/tasks/main.yml
@@ -22,18 +22,23 @@
- name: opendkim - generate tables
template:
src: "{{ item }}"
- dest: /usr/local/etc/mail/dkim/{{ item | basename | regex_replace('\\.zone\\.j2', '') }}
+ dest: /usr/local/etc/mail/dkim/{{ item | basename | regex_replace('\.j2', '') }}
with_items:
- dkim/KeyTable.j2
- dkim/SigningTable.j2
+ notify: reload-opendkim
tags: opendkim
- name: opendkim - generate config file
template:
src: opendkim.conf.j2
dest: /usr/local/etc/mail/opendkim.conf
+ notify: reload-opendkim
tags: opendkim
+- name: opendkim - enable and start
+ command: rcenable milter-opendkim
+
- name: postfix - set as mailer/MTA
file:
path: /etc/mail/mailer.conf