diff --git a/roles/mail/tasks/main.yml b/roles/mail/tasks/main.yml index 0d8fa4a..e54c659 100644 --- a/roles/mail/tasks/main.yml +++ b/roles/mail/tasks/main.yml @@ -11,6 +11,7 @@ - dovecot-managesieved - dovecot-sieve - postfix + - postfix-ldap - postfix-policyd-spf-python - postgrey - pyzor diff --git a/roles/mail/templates/postfix/ldap-aliases.cf.j2 b/roles/mail/templates/postfix/ldap-aliases.cf.j2 index 9c9120c..696ef38 100644 --- a/roles/mail/templates/postfix/ldap-aliases.cf.j2 +++ b/roles/mail/templates/postfix/ldap-aliases.cf.j2 @@ -1,5 +1,4 @@ -server_host = {{ ldap_host }} -start_tls = yes +server_host = {{ ldap_uri }} #tls_ca_cert_file = TODO #tls_require_cert = yes bind = yes diff --git a/roles/mail/templates/postfix/ldap-virtual-maps.cf.j2 b/roles/mail/templates/postfix/ldap-virtual-maps.cf.j2 index d6f46a1..b648fc1 100644 --- a/roles/mail/templates/postfix/ldap-virtual-maps.cf.j2 +++ b/roles/mail/templates/postfix/ldap-virtual-maps.cf.j2 @@ -1,5 +1,4 @@ -server_host = {{ ldap_host }} -start_tls = yes +server_host = {{ ldap_uri }} #tls_ca_cert_file = TODO #tls_require_cert = yes bind = yes