ansible/roles/mail/templates/postfix/ldap-aliases.cf.j2

13 lines
295 B
Django/Jinja

server_host = {{ ldap_host }}
start_tls = yes
#tls_ca_cert_file = TODO
#tls_require_cert = yes
bind = yes
bind_dn = {{ ldap_binddn }}
bind_pw = {{ ldap_bindpw }}
version = 3
search_base = {{ ldap_base }}
query_filter = (&(objectClass=mailUser)(mailAlternateAddress=%s))
result_attribute = mail