ansible/roles/mail/handlers/main.yml

23 lines
474 B
YAML

---
- name: Restart amavis
service: name=amavis state=restarted
- name: Restart dovecot
service: name=dovecot state=restarted
- name: Restart postfix
service: name=postfix state=restarted
- name: Restart postgrey
service: name=postgrey state=restarted
- name: Run postmap
command: postmap /etc/{{ item }}
with_items:
- postfix/helo_access
- postfix/ldap-aliases.cf
- postfix/ldap-virtual-maps.cf
- postfix/recipient_access
- postfix/virtual-alias