Monday, August 23, 2010

Query Recipient Windows Active Directory directly

As Document intro to you how to query recipients use Perl and after discusses with Zhang Huangbin and I promise with him.So today I will intro to you How to query recipient(real-time) Windows Active Directory directly.


Step 1:Create /etc/postfix/ with info:

server_host = ##with As Active Directory
search_base = dc=test, dc=vn
version = 3
query_filter = (&(objectclass=person)(mail=%s))
result_attribute = samaccountname
bind = yes
bind_dn = test\admin # Account use query Recipient.
bind_pw = 123 #pass use query Recipient

Step 2: change config in /etc/postfix/

relay_recipient_maps = hash:/etc/postfix/relay_recipients
relay_recipient_maps = ldap:/etc/postfix/

Step 3:restart Postfix

/etc/init.d/postfix restart

Thanks Zhang Huangbin for suggest and Contribute

Please let me know if you have question

No comments:

Post a Comment