summaryrefslogtreecommitdiffstats
path: root/roles/postfix/handlers/main.yml
blob: ad944cec1bc1a91d1640ba4db6adeee27885ca5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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