From ca315bf9c292d4757b67a86117e3182c1b0dd680 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 12 Dec 2014 14:28:47 +0100 Subject: Import postfix/mailman from rad --- roles/postfix/handlers/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 roles/postfix/handlers/main.yml (limited to 'roles/postfix/handlers') 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 -- cgit