blse2-public/package-postfix_access/templates/postfix-ldap/virtual_mailbox_domains.cf.j2

14 lines
529 B
Django/Jinja

# {{ ansible_managed }}
server_host = {{ ldap_host }}
server_port = {{ ldap_port }}
bind = yes
start_tls = no
version = 3
bind_dn = {{ ldap_bind_username }}
bind_pw = {{ ldap_bind_password }}
search_base = {{ ldap_basedn }}
scope = one
query_filter = (&(objectClass=mailDomain)(|(domainName=%s)(&(enabledService=domainalias)(domainAliasName=%s)))(!(domainBackupMX=yes))(accountStatus=active)(enabledService=mail))
result_attribute= domainName
debuglevel = 0