summaryrefslogtreecommitdiffstats
path: root/roles/postfix/handlers
diff options
context:
space:
mode:
authorMichael Scherer <misc@zarb.org>2014-12-12 14:28:47 +0100
committerMichael Scherer <misc@zarb.org>2014-12-12 14:28:47 +0100
commitca315bf9c292d4757b67a86117e3182c1b0dd680 (patch)
tree57923818c4e974b2d7f8e16be14ef3d8612b855f /roles/postfix/handlers
parentd9e874ece0c162fcba01553fbea0a8b2fd86d249 (diff)
Import postfix/mailman from rad
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