summaryrefslogtreecommitdiffstats
path: root/roles/postfix/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'roles/postfix/handlers')
-rw-r--r--roles/postfix/handlers/main.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/postfix/handlers/main.yml b/roles/postfix/handlers/main.yml
new file mode 100644
index 0000000..ad944ce
--- /dev/null
+++ b/roles/postfix/handlers/main.yml
@@ -0,0 +1,15 @@
+---
+- name: rebuild aliases
+ command: newaliases
+
+- name: restart postfix
+ service: name=postfix state=restarted
+
+- name: update postfix aliases
+ command: postalias /etc/postfix/aliases.{{ item }}
+ with_items:
+ - local
+ - users
+
+- name: update postfix maps
+ command: postmap /etc/postfix/local_recipient