ansible-role-postfix/templates/saslauthd.conf.j2

12 lines
347 B
Django/Jinja

{% if postfix.ldap.enable %}
ldap_servers: {{ postfix.ldap.server.host }}/
ldap_version: 3
ldap_bind_dn: {{ postfix.ldap.bind_dn }}
ldap_bind_pw: {{ postfix.ldap.bind_pw }}
ldap_search_base: {{ postfix.ldap.search_base }}
ldap_scope: sub
ldap_filter: mail=%u
ldap_auth_method: bind
{% else %}
# LDAP is not configured for this server.
{% endif %}