ansible-role-postfix/handlers/main.yml

17 lines
392 B
YAML

---
- name: Refresh aliases
shell: newaliases
- name: Restart postfix
service:
name: postfix
state: restarted
- name: Postmap whitelist
shell: /usr/sbin/postmap /etc/postfix/whitelist_senders.map
- name: Postmap blacklist
shell: /usr/sbin/postmap /etc/postfix/blacklist
- name: Postmap spam filter
shell: /usr/sbin/postmap /etc/postfix/maps/spam_filter_header_check.map