ansible-role-disposable-mail/handlers/main.yml

26 lines
549 B
YAML
Raw Normal View History

2023-07-22 22:53:56 +00:00
---
- name: reload dovecot
service: name=dovecot state=reloaded
- name: restart dovecot
service: name=dovecot state=restarted
- name: restart opendkim
service: name=opendkim state=restarted
- name: restart postfix
service: name=postfix state=restarted
- name: reload postfix
service: name=postfix@- state=reload
- name: new virtual mailboxes
ansible.builtin.command:
chdir: /etc/postfix
cmd: postmap vmailbox
- name: new virtual mail aliases
ansible.builtin.command:
chdir: /etc/postfix
cmd: postmap virtual