22 lines
1.0 KiB
Django/Jinja
22 lines
1.0 KiB
Django/Jinja
# Dovecot LDAP interface configuration
|
|
# {{ ansible_managed }}
|
|
|
|
hosts = {{ ldap_host }}:{{ ldap_port }}
|
|
ldap_version = 3
|
|
auth_bind = yes
|
|
dn = {{ ldap_bind_username }}
|
|
dnpass = {{ ldap_bind_password }}
|
|
base = {{ ldap_basedn }}
|
|
scope = subtree
|
|
deref = never
|
|
|
|
# Below two are required by command 'doveadm mailbox ...'
|
|
iterate_attrs = mail=user
|
|
iterate_filter = (&(objectClass=mailUser)(accountStatus=active)(enabledService=mail))
|
|
|
|
user_filter = (&(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=%Ls%Lc)(|(mail=%u)(&(enabledService=shadowaddress)(shadowAddress=%u))))
|
|
user_attrs = mail=user,homeDirectory=home,=mail=maildir:~/Maildir/,mailQuota=quota_rule=*:bytes=%$
|
|
pass_filter = (&(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=%Ls%Lc)(|(mail=%u)(&(enabledService=shadowaddress)(shadowAddress=%u))))
|
|
pass_attrs = mail=user,userPassword=password
|
|
default_pass_scheme = SSHA
|