1

Topic: Integration/Active.Directory

I am configuring postfix to authenticate with active directory and when I run the command (postmap -q myuser@mydomain ldap:/etc/postfix/ad_sender_login_maps.cf) I get the following error:
postmap: warning: dict_ldap_connect: Unable to bind to server ldap://localhost:389 with dn vmail: 34 (Invalid DN syntax)
postmap: fatal: table ldap:/etc/postfix/ad_sender_login_maps.cf: query error: Success
I wonder why it try to connect to localhost:389 if my ad_sender_login_maps.cf is configured as follows:
serverhost    = mydomain
server_port    = 389
version    = 3
bind         = yes
start_tls     = no
bind_dn     = vmail
bind_pw     = password of vmamil
search_base     = cn=users,dc=mydomain
scope        =sub
query_filter=(&(userPrincipalName=%s)(objectClass=person)(!userAccountControl:1.2.840.113556.1.4.803:=2)))
result_attribute =userPrincipalName
debuglevel    = 0

Thanks a lot and sorry for my english, I'm not Anglophone

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Integration/Active.Directory

reysalad wrote:

serverhost    = mydomain

Do you use 'serverhost' or 'server_host'?

3

Re: Integration/Active.Directory

Thank you very much ZhangHuangbin, that it was.
Best regards