|
|
@ -20,30 +20,33 @@ |
|
|
|
# TODO: log, add a centralized log server |
|
|
|
- rsyslog |
|
|
|
|
|
|
|
- name: upload ldap-aliases.cf |
|
|
|
- name: configure ldap-aliases for postfix |
|
|
|
template: |
|
|
|
src: ldap-aliases.cf.j2 |
|
|
|
dest: "/etc/postfix/ldap-aliases.cf" |
|
|
|
notify: restart postfix |
|
|
|
|
|
|
|
- lineinfile: dest=/etc/postfix/main.cf line="virtual_alias_maps = proxy:ldap:/etc/postfix/ldap-aliases.cf" |
|
|
|
- name: configure ldap-aliases for postfix |
|
|
|
lineinfile: dest=/etc/postfix/main.cf line="virtual_alias_maps = proxy:ldap:/etc/postfix/ldap-aliases.cf" |
|
|
|
notify: restart postfix |
|
|
|
|
|
|
|
- name: upload ldap-domains.cf |
|
|
|
- name: configure ldap-domains for postfix |
|
|
|
template: |
|
|
|
src: ldap-domains.cf.j2 |
|
|
|
dest: "/etc/postfix/ldap-domains.cf" |
|
|
|
notify: restart postfix |
|
|
|
|
|
|
|
- lineinfile: dest=/etc/postfix/main.cf line="virtual_mailbox_domains = proxy:ldap:/etc/postfix/ldap-domains.cf" |
|
|
|
- name: provide postfix mailbox domains from ldap-domains |
|
|
|
lineinfile: dest=/etc/postfix/main.cf line="virtual_mailbox_domains = proxy:ldap:/etc/postfix/ldap-domains.cf" |
|
|
|
notify: restart postfix |
|
|
|
|
|
|
|
- name: upload ldap-accounts.cf |
|
|
|
- name: provide postfix users from ldap-accounts |
|
|
|
template: |
|
|
|
src: ldap-accounts.cf.j2 |
|
|
|
dest: "/etc/postfix/ldap-accounts.cf" |
|
|
|
notify: restart postfix |
|
|
|
|
|
|
|
- name: configure ldap-accounts for postfix |
|
|
|
- lineinfile: dest=/etc/postfix/main.cf line="virtual_mailbox_maps = proxy:ldap:/etc/postfix/ldap-accounts.cf" |
|
|
|
notify: restart postfix |
|
|
|
|
|
|
|