|
|
@@ -1,21 +1,25 @@ |
|
|
--- |
|
|
--- |
|
|
- name: define Postfix virtual mailbox domain mapping |
|
|
- name: define Postfix virtual mailbox domain mapping |
|
|
template: src=mysql-virtual-mailbox-domains.cf.j2 dest=/etc/postfix/mysql-virtual-mailbox-domains.cf |
|
|
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 |
|
|
- name: tell Postfix to use the virtual mailbox domain mapping |
|
|
shell: postconf virtual_mailbox_domains=mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf |
|
|
shell: postconf virtual_mailbox_domains=mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf |
|
|
|
|
|
|
|
|
- name: define Postfix virtual mailbox mapping |
|
|
- name: define Postfix virtual mailbox mapping |
|
|
template: src=mysql-virtual-mailbox-maps.cf.j2 dest=/etc/postfix/mysql-virtual-mailbox-maps.cf |
|
|
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 |
|
|
- name: tell Postfix to use the virtual mailbox mapping |
|
|
shell: postconf virtual_mailbox_maps=mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf |
|
|
shell: postconf virtual_mailbox_maps=mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf |
|
|
|
|
|
|
|
|
- name: define Postfix virtual alias mapping |
|
|
- name: define Postfix virtual alias mapping |
|
|
template: src=mysql-virtual-alias-maps.cf.j2 dest=/etc/postfix/mysql-virtual-alias-maps.cf |
|
|
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 |
|
|
- name: tell Postfix to use the virtual alias mapping |
|
|
shell: postconf virtual_alias_maps=mysql:/etc/postfix/mysql-virtual-alias-maps.cf |
|
|
shell: postconf virtual_alias_maps=mysql:/etc/postfix/mysql-virtual-alias-maps.cf |
|
|
|
|
|
|
|
|
- name: define Postfix email-to-email mapping (required for catchall domains) |
|
|
- name: define Postfix email-to-email mapping (required for catchall domains) |
|
|
template: src=mysql-email2email.cf.j2 dest=/etc/postfix/mysql-email2email.cf |
|
|
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 |
|
|
- 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 |
|
|
shell: postconf virtual_alias_maps=mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf |
|
|
|
|
|
|
|
|
|