diff --git a/roles/mail_server/templates/ldap-virtual-mailbox-maps.cf.j2 b/roles/mail_server/templates/ldap-virtual-mailbox-maps.cf.j2 new file mode 100644 index 0000000000000000000000000000000000000000..ececb56d985aa6db8de0a8fe6c0211f2ac0f1ed1 --- /dev/null +++ b/roles/mail_server/templates/ldap-virtual-mailbox-maps.cf.j2 @@ -0,0 +1,15 @@ +# Connection settings. +server_host = {{ mail_ldap.url }} +start_tls = yes +tls_require_cert = yes +tls_ca_cert_file = {{ mail_ldap.tls_truststore }} +bind = yes +bind_dn = cn=postfix,ou=services,{{ mail_ldap.root_dn }} +bind_pw = {{ mail_ldap.postfix_password }} +version = 3 + +# Query settings +search_base = ou=people,{{ mail_ldap.root_dn }} +scope = one +query_filter = (&(mail=%s)(memberOf=cn=mail,ou=groups,{{mail_ldap.root_dn}})) +result_attribute = mail