root@post:/etc/postfix/ldap# cat virtual_alias_maps.cf
#server_host = 127.0.0.1
#server_port = 389
#version = 3
#bind = yes
#start_tls = no
#bind_dn = cn=vmail,dc=mku,dc=post
#bind_pw = BmHsEcYPLijsJWC8G7eBGcJ77NAmiK
#search_base = o=domains,dc=mku,dc=post
#scope = sub
#query_filter = (&(|(mail=%s)(shadowAddress=%s))(accountStatus=active)(enabledService=mail)(enabledService=deliver)(|(objectClass=mailAlias)(&(objectClass=mailUser)(enabledService=forward))))
#result_attribute= mailForwardingAddress
#debuglevel = 0
server_host = 192.168.0.221
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=mku,dc=post
bind_pw = zaq12wsx
search_base = ou=people,dc=mku,dc=post
scope = sub
query_filter = (&(objectClass=gosaMailAccount)(gosaMailForwardingAddress=*)(|(mail=%s)(gosaMailAlternateAddress=%s)))
result_attribute= gosaMailForwardingAddress
debuglevel = 0
___________________________________________________________________________________
root@post:/etc/postfix/ldap# cat virtual_mailbox_maps.cf
#server_host = 127.0.0.1
#server_port = 389
#version = 3
#bind = yes
#start_tls = no
#bind_dn = cn=vmail,dc=mku,dc=post
#bind_pw = BmHsEcYPLijsJWC8G7eBGcJ77NAmiK
#search_base = o=domains,dc=mku,dc=post
#scope = sub
#query_filter = (&(objectClass=mailUser)(|(mail=%s)(&(enabledService=shadowaddress)(shadowAddress=%s)))(accountStatus=active)(enabledService=mail)(enabledService=deliver))
#result_attribute= mailMessageStore
#result_format = %s/Maildir/
#debuglevel = 0
server_host = 192.168.0.221
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=mku,dc=post
bind_pw = zaq12wsx
search_base = ou=people,dc=mku,dc=post
scope = one
query_filter = (&(objectClass=gosaMailAccount)(mail=%s))
result_attribute= uid
result_format = /var/vmail/%s/
debuglevel = 0
___________________________________________________________________
root@post:/etc/postfix/ldap# cat sender_login_maps.cf
#server_host = 127.0.0.1
#server_port = 389
#version = 3
#bind = yes
#start_tls = no
#bind_dn = cn=vmail,dc=mku,dc=post
#bind_pw = BmHsEcYPLijsJWC8G7eBGcJ77NAmiK
#search_base = o=domains,dc=mku,dc=post
#scope = sub
#query_filter = (&(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=smtp)(|(mail=%s)(&(enabledService=shadowaddress)(shadowAddress=%s))))
#result_attribute= mail
#debuglevel = 0
server_host = 192.168.0.221
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=mku,dc=post
bind_pw = zaq12wsx
search_base = ou=people,dc=mku,dc=post
scope = one
query_filter = (&(mail=%s)(objectClass=gosaMailAccount))
result_attribute= mail
debuglevel = 0
___________________________________________________________
root@post:/etc/postfix/ldap# cat virtual_group_maps.cf
#server_host = 127.0.0.1
#server_port = 389
#version = 3
#bind = yes
#start_tls = no
#bind_dn = cn=vmail,dc=mku,dc=post
#bind_pw = BmHsEcYPLijsJWC8G7eBGcJ77NAmiK
#search_base = o=domains,dc=mku,dc=post
#scope = sub
#query_filter = (&(accountStatus=active)(enabledService=mail)(enabledService=deliver)(|(&(|(memberOfGroup=%s)(shadowAddress=%s))(objectClass=mailUser))(&(memberOfGroup=%s)(!(shadowAddress=%s))(|(objectClass=mailExternalUser)(objectClass=mailList)(objectClass=mailAlias)))))
#result_attribute= mail
#debuglevel = 0
server_host = 192.168.0.221
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=mku,dc=post
bind_pw = zaq12wsx
search_base = ou=groups,dc=mku,dc=post
scope = sub
query_filter = (&(objectClass=gosaMailAccount)(objectClass=posixGroup)(mail=%s))
result_attribute= memberUid
result_format = %u@post.mku.dp.ua
_________________________________________________________
root@post:/etc/dovecot# cat dovecot-ldap.conf
#hosts = 127.0.0.1:389
#ldap_version = 3
#auth_bind = yes
#dn = cn=vmail,dc=mku,dc=post
#dnpass = BmHsEcYPLijsJWC8G7eBGcJ77NAmiK
#base = o=domains,dc=mku,dc=post
#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 = CRYPT
hosts = 192.168.0.221:389
ldap_version = 3
auth_bind = yes
dn = cn=vmail,dc=mku,dc=post
dnpass = zaq12wsx
base = ou=people,dc=mku,dc=post
scope = subtree
deref = never
user_filter = (&(objectClass=gosaMailAccount)(mail=%u))
pass_filter = (mail=%u)
pass_attrs = userPassword=password
default_pass_scheme = PLAIN
user_attrs = uid=home=/var/vmail/%$,=mail=maildir:~/Maildir/,gosaMailQuota=quota_rule=*:bytes=%$M