Active Directory/LDAP Virtual Users for CentOS 6.6

– CentOS 6.6 minimal

– Postfix

– Dovecot

– Virtual mail with Active Directory accounts on Windows 2012 R2 DC

1) Postfix

/etx/postfix/ldap-users.cf

——————————–

[root@centos-01 ~]# cat /etc/postfix/ldap-users.cf

server_host = dc01.my-domain.vn

server_port = 389

search_base = dc=my-domain, dc=vn

version = 3

query_filter = (&(objectclass=person)(mail=%s))

result_attribute = sAMAccountName

result_format = %s/Maildir/

bind = yes

#bind_dn = cn=mail_bind_user, dc=my-domain, dc=vn

bind_dn = mail_bind_user@my-domain.vn

bind_pw = mySecRetPassword

scope = sub

expansion_limit = 0

size_limit = 0

[root@centos-01 ~]# 

Advertisements