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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s