ansible-roles/postfix-relay/handlers/main.yml

18 lines
446 B
YAML

- name: Update SASL hash
shell: postmap hash:/etc/postfix/sasl_passwd
- name: Reload postfix
service: name=postfix state=reloaded
- name: Restart postfix
service: name=postfix state=restarted
- name: Update the network hash table
shell: postmap hash:/etc/postfix/network_table
- name: start saslauth daemon
service: name=saslauthd state=started enabled=yes
- name: restart saslauth daemon
service: name=saslauthd state=restarted