{% if postfix.ldap.enable %} ldap_servers: {{ postfix.ldap.server.host }}/ ldap_version: 3 ldap_tls_cacert_file: {{ postfix.ldap.tls_cacert_file }} ldap_tls_cert: {{ postfix.ldap.tls_cert }} ldap_tls_key: {{ postfix.ldap.tls_key }} 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: uid=%u ldap_auth_method: bind {% else %} # LDAP is not configured for this server. {% endif %}