ansible-role-postfix/handlers/main.yml

33 lines
728 B
YAML
Raw Normal View History

---
2020-06-08 16:57:40 +02:00
- name: Update SASL hash
shell: postmap hash:/etc/postfix/sasl_passwd
- name: Reload postfix
service: name=postfix state=reloaded
when: postfix_enabled | bool
- name: Restart postfix
service: name=postfix state=restarted
when: postfix_enabled | bool
- name: Update the network hash table
shell: postmap hash:/etc/postfix/network_table
- name: start saslauth daemon
service: name=saslauthd state=started enabled=yes
when: postfix_enabled | bool
- name: restart saslauth daemon
service: name=saslauthd state=restarted
when: postfix_enabled | bool
- name: restart opendkim
service:
name: opendkim
state: restarted
2022-06-06 13:00:51 +02:00
- name: restart postsrsd
service:
name: postsrsd
state: restarted