Quellcode durchsuchen

Added postfix restart handler

merge-requests/1/merge
Christoph Haas vor 10 Jahren
Ursprung
Commit
7944b69f7d
2 geänderte Dateien mit 8 neuen und 0 gelöschten Zeilen
  1. +4
    -0
      roles/ispmail-postfix/handlers/main.yml
  2. +4
    -0
      roles/ispmail-postfix/tasks/main.yml

+ 4
- 0
roles/ispmail-postfix/handlers/main.yml Datei anzeigen

@@ -0,0 +1,4 @@
---
- name: restart postfix
service: name=postfix state=restarted


+ 4
- 0
roles/ispmail-postfix/tasks/main.yml Datei anzeigen

@@ -1,21 +1,25 @@
---
- name: define Postfix virtual mailbox domain mapping
template: src=mysql-virtual-mailbox-domains.cf.j2 dest=/etc/postfix/mysql-virtual-mailbox-domains.cf
notify: restart postfix
- name: tell Postfix to use the virtual mailbox domain mapping
shell: postconf virtual_mailbox_domains=mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf

- name: define Postfix virtual mailbox mapping
template: src=mysql-virtual-mailbox-maps.cf.j2 dest=/etc/postfix/mysql-virtual-mailbox-maps.cf
notify: restart postfix
- name: tell Postfix to use the virtual mailbox mapping
shell: postconf virtual_mailbox_maps=mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf

- name: define Postfix virtual alias mapping
template: src=mysql-virtual-alias-maps.cf.j2 dest=/etc/postfix/mysql-virtual-alias-maps.cf
notify: restart postfix
- name: tell Postfix to use the virtual alias mapping
shell: postconf virtual_alias_maps=mysql:/etc/postfix/mysql-virtual-alias-maps.cf

- name: define Postfix email-to-email mapping (required for catchall domains)
template: src=mysql-email2email.cf.j2 dest=/etc/postfix/mysql-email2email.cf
notify: restart postfix
- name: tell Postfix to use the email-to-email mapping
shell: postconf virtual_alias_maps=mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf



Laden…
Abbrechen
Speichern