Hi ,
I tried and did the same.but i am not able to query ADS.not able to trace what mistake i have done.Pl find the debug messege below
[root@mail5 postfix]# postmap -q prabhakarp@tarangtech.com ldap:/etc/postfix/ad_virtual_mailbox_maps.cf
postmap: dict_ldap_debug: ldap_create
postmap: dict_ldap_debug: ldap_url_parse_ext(ldap://ttdc1.tarangtech.local:389)
postmap: dict_ldap_debug: ldap_sasl_bind
postmap: dict_ldap_debug: ldap_send_initial_request
postmap: dict_ldap_debug: ldap_new_connection 1 1 0
postmap: dict_ldap_debug: ldap_int_open_connection
postmap: dict_ldap_debug: ldap_connect_to_host: TCP ttdc1.tarangtech.local:389
postmap: dict_ldap_debug: ldap_new_socket: 4
postmap: dict_ldap_debug: ldap_prepare_socket: 4
postmap: dict_ldap_debug: ldap_connect_to_host: Trying 172.30.65.10:389
postmap: dict_ldap_debug: ldap_connect_timeout: fd: 4 tm: 10 async: 0
postmap: dict_ldap_debug: ldap_ndelay_on: 4
postmap: dict_ldap_debug: ldap_is_sock_ready: 4
postmap: dict_ldap_debug: ldap_ndelay_off: 4
postmap: dict_ldap_debug: ldap_open_defconn: successful
postmap: dict_ldap_debug: ldap_send_server_request
postmap: dict_ldap_debug: ber_scanf fmt ({it) ber:
postmap: dict_ldap_debug: ber_scanf fmt ({i) ber:
postmap: dict_ldap_debug: ber_flush: 27 bytes to sd 4
postmap: dict_ldap_debug: ldap_result ld 0x83c9650 msgid 1
postmap: dict_ldap_debug: wait4msg ld 0x83c9650 msgid 1 (timeout 10000000 usec)
postmap: dict_ldap_debug: wait4msg continue ld 0x83c9650 msgid 1 all 1
** ld 0x83c9650 Connections:
* host: ttdc1.tarangtech.local port: 389 (default)
refcnt: 2 status: Connected
last used: Sun Jun 26 18:28:54 2011
** ld 0x83c9650 Outstanding Requests:
* msgid 1, origid 1, status InProgress
outstanding referrals 0, parent count 0
** ld 0x83c9650 Response Queue:
Empty
postmap: dict_ldap_debug: ldap_chkResponseList ld 0x83c9650 msgid 1 all 1
postmap: dict_ldap_debug: ldap_chkResponseList returns ld 0x83c9650 NULL
postmap: dict_ldap_debug: ldap_int_select
postmap: dict_ldap_debug: read1msg: ld 0x83c9650 msgid 1 all 1
postmap: dict_ldap_debug: ber_get_next
postmap: dict_ldap_debug: ber_get_next: tag 0x30 len 16 contents:
postmap: dict_ldap_debug: read1msg: ld 0x83c9650 msgid 1 message type bind
postmap: dict_ldap_debug: ber_scanf fmt ({eaa) ber:
postmap: dict_ldap_debug: read1msg: ld 0x83c9650 0 new referrals
postmap: dict_ldap_debug: read1msg: mark request completed, ld 0x83c9650 msgid 1
postmap: dict_ldap_debug: request done: ld 0x83c9650 msgid 1
postmap: dict_ldap_debug: res_errno: 0, res_error: <>, res_matched: <>
postmap: dict_ldap_debug: ldap_free_request (origid 1, msgid 1)
postmap: dict_ldap_debug: ldap_parse_sasl_bind_result
postmap: dict_ldap_debug: ber_scanf fmt ({eaa) ber:
postmap: dict_ldap_debug: ldap_msgfree
postmap: dict_ldap_debug: ldap_search_ext
postmap: dict_ldap_debug: put_filter: "(&(objectclass=person)(userPrincipalName=prabhakarp@tarangtech.com))"
postmap: dict_ldap_debug: put_filter: AND
postmap: dict_ldap_debug: put_filter_list "(objectclass=person)(userPrincipalName=prabhakarp@tarangtech.com)"
postmap: dict_ldap_debug: put_filter: "(objectclass=person)"
postmap: dict_ldap_debug: put_filter: simple
postmap: dict_ldap_debug: put_simple_filter: "objectclass=person"
postmap: dict_ldap_debug: put_filter: "(userPrincipalName=prabhakarp@tarangtech.com)"
postmap: dict_ldap_debug: put_filter: simple
postmap: dict_ldap_debug: put_simple_filter: "userPrincipalName=prabhakarp@tarangtech.com"
postmap: dict_ldap_debug: ldap_send_initial_request
postmap: dict_ldap_debug: ldap_send_server_request
postmap: dict_ldap_debug: ber_scanf fmt ({it) ber:
postmap: dict_ldap_debug: ber_scanf fmt ({) ber:
postmap: dict_ldap_debug: ber_flush: 149 bytes to sd 4
postmap: dict_ldap_debug: ldap_result ld 0x83c9650 msgid 2
postmap: dict_ldap_debug: wait4msg ld 0x83c9650 msgid 2 (timeout 10000000 usec)
postmap: dict_ldap_debug: wait4msg continue ld 0x83c9650 msgid 2 all 1
** ld 0x83c9650 Connections:
* host: ttdc1.tarangtech.local port: 389 (default)
refcnt: 2 status: Connected
last used: Sun Jun 26 18:28:54 2011
** ld 0x83c9650 Outstanding Requests:
* msgid 2, origid 2, status InProgress
outstanding referrals 0, parent count 0
** ld 0x83c9650 Response Queue:
Empty
postmap: dict_ldap_debug: ldap_chkResponseList ld 0x83c9650 msgid 2 all 1
postmap: dict_ldap_debug: ldap_chkResponseList returns ld 0x83c9650 NULL
postmap: dict_ldap_debug: ldap_int_select
postmap: dict_ldap_debug: read1msg: ld 0x83c9650 msgid 2 all 1
postmap: dict_ldap_debug: ber_get_next
postmap: dict_ldap_debug: ber_get_next: tag 0x30 len 158 contents:
postmap: dict_ldap_debug: read1msg: ld 0x83c9650 msgid 2 message type search-result
postmap: dict_ldap_debug: ber_scanf fmt ({eaa) ber:
postmap: dict_ldap_debug: read1msg: ld 0x83c9650 0 new referrals
postmap: dict_ldap_debug: read1msg: mark request completed, ld 0x83c9650 msgid 2
postmap: dict_ldap_debug: request done: ld 0x83c9650 msgid 2
postmap: dict_ldap_debug: res_errno: 0, res_error: <>, res_matched: <>
postmap: dict_ldap_debug: ldap_free_request (origid 2, msgid 2)
postmap: dict_ldap_debug: ldap_parse_result
postmap: dict_ldap_debug: ber_scanf fmt ({iaa) ber:
postmap: dict_ldap_debug: ber_scanf fmt (v) ber:
postmap: dict_ldap_debug: ber_scanf fmt (}) ber:
postmap: dict_ldap_debug: ldap_err2string
postmap: warning: dict_ldap_lookup: Search error 10: Referral
postmap: dict_ldap_debug: ldap_free_connection 1 1
postmap: dict_ldap_debug: ldap_send_unbind
postmap: dict_ldap_debug: ber_flush: 7 bytes to sd 4
postmap: dict_ldap_debug: ldap_free_connection: actually freed
postmap: dict_ldap_debug: ldap_msgfree
[root@mail5 postfix]# postmap -q prabhakarp@tarangtech.com ldap:/etc/postfix/ad_virtual_mailbox_maps.cf
postmap: dict_ldap_debug: ldap_create
postmap: dict_ldap_debug: ldap_url_parse_ext(ldap://ttdc1.tarangtech.local:389)
postmap: dict_ldap_debug: ldap_sasl_bind
postmap: dict_ldap_debug: ldap_send_initial_request
postmap: dict_ldap_debug: ldap_new_connection 1 1 0
postmap: dict_ldap_debug: ldap_int_open_connection
postmap: dict_ldap_debug: ldap_connect_to_host: TCP ttdc1.tarangtech.local:389
postmap: dict_ldap_debug: ldap_new_socket: 4
postmap: dict_ldap_debug: ldap_prepare_socket: 4
postmap: dict_ldap_debug: ldap_connect_to_host: Trying 172.30.65.10:389
postmap: dict_ldap_debug: ldap_connect_timeout: fd: 4 tm: 10 async: 0
postmap: dict_ldap_debug: ldap_ndelay_on: 4
postmap: dict_ldap_debug: ldap_is_sock_ready: 4
postmap: dict_ldap_debug: ldap_ndelay_off: 4
postmap: dict_ldap_debug: ldap_open_defconn: successful
postmap: dict_ldap_debug: ldap_send_server_request
postmap: dict_ldap_debug: ber_scanf fmt ({it) ber:
postmap: dict_ldap_debug: ber_scanf fmt ({i) ber:
postmap: dict_ldap_debug: ber_flush: 27 bytes to sd 4
postmap: dict_ldap_debug: ldap_result ld 0x9809650 msgid 1
postmap: dict_ldap_debug: wait4msg ld 0x9809650 msgid 1 (timeout 10000000 usec)
postmap: dict_ldap_debug: wait4msg continue ld 0x9809650 msgid 1 all 1
** ld 0x9809650 Connections:
* host: ttdc1.tarangtech.local port: 389 (default)
refcnt: 2 status: Connected
last used: Sun Jun 26 18:57:12 2011
** ld 0x9809650 Outstanding Requests:
* msgid 1, origid 1, status InProgress
outstanding referrals 0, parent count 0
** ld 0x9809650 Response Queue:
Empty
postmap: dict_ldap_debug: ldap_chkResponseList ld 0x9809650 msgid 1 all 1
postmap: dict_ldap_debug: ldap_chkResponseList returns ld 0x9809650 NULL
postmap: dict_ldap_debug: ldap_int_select
postmap: dict_ldap_debug: read1msg: ld 0x9809650 msgid 1 all 1
postmap: dict_ldap_debug: ber_get_next
postmap: dict_ldap_debug: ber_get_next: tag 0x30 len 16 contents:
postmap: dict_ldap_debug: read1msg: ld 0x9809650 msgid 1 message type bind
postmap: dict_ldap_debug: ber_scanf fmt ({eaa) ber:
postmap: dict_ldap_debug: read1msg: ld 0x9809650 0 new referrals
postmap: dict_ldap_debug: read1msg: mark request completed, ld 0x9809650 msgid 1
postmap: dict_ldap_debug: request done: ld 0x9809650 msgid 1
postmap: dict_ldap_debug: res_errno: 0, res_error: <>, res_matched: <>
postmap: dict_ldap_debug: ldap_free_request (origid 1, msgid 1)
postmap: dict_ldap_debug: ldap_parse_sasl_bind_result
postmap: dict_ldap_debug: ber_scanf fmt ({eaa) ber:
postmap: dict_ldap_debug: ldap_msgfree
postmap: dict_ldap_debug: ldap_search_ext
postmap: dict_ldap_debug: put_filter: "(&(objectclass=person)(userPrincipalName=prabhakarp@tarangtech.com))"
postmap: dict_ldap_debug: put_filter: AND
postmap: dict_ldap_debug: put_filter_list "(objectclass=person)(userPrincipalName=prabhakarp@tarangtech.com)"
postmap: dict_ldap_debug: put_filter: "(objectclass=person)"
postmap: dict_ldap_debug: put_filter: simple
postmap: dict_ldap_debug: put_simple_filter: "objectclass=person"
postmap: dict_ldap_debug: put_filter: "(userPrincipalName=prabhakarp@tarangtech.com)"
postmap: dict_ldap_debug: put_filter: simple
postmap: dict_ldap_debug: put_simple_filter: "userPrincipalName=prabhakarp@tarangtech.com"
postmap: dict_ldap_debug: ldap_send_initial_request
postmap: dict_ldap_debug: ldap_send_server_request
postmap: dict_ldap_debug: ber_scanf fmt ({it) ber:
postmap: dict_ldap_debug: ber_scanf fmt ({) ber:
postmap: dict_ldap_debug: ber_flush: 149 bytes to sd 4
postmap: dict_ldap_debug: ldap_result ld 0x9809650 msgid 2
postmap: dict_ldap_debug: wait4msg ld 0x9809650 msgid 2 (timeout 10000000 usec)
postmap: dict_ldap_debug: wait4msg continue ld 0x9809650 msgid 2 all 1
** ld 0x9809650 Connections:
* host: ttdc1.tarangtech.local port: 389 (default)
refcnt: 2 status: Connected
last used: Sun Jun 26 18:57:12 2011
** ld 0x9809650 Outstanding Requests:
* msgid 2, origid 2, status InProgress
outstanding referrals 0, parent count 0
** ld 0x9809650 Response Queue:
Empty
postmap: dict_ldap_debug: ldap_chkResponseList ld 0x9809650 msgid 2 all 1
postmap: dict_ldap_debug: ldap_chkResponseList returns ld 0x9809650 NULL
postmap: dict_ldap_debug: ldap_int_select
postmap: dict_ldap_debug: read1msg: ld 0x9809650 msgid 2 all 1
postmap: dict_ldap_debug: ber_get_next
postmap: dict_ldap_debug: ber_get_next: tag 0x30 len 158 contents:
postmap: dict_ldap_debug: read1msg: ld 0x9809650 msgid 2 message type search-result
postmap: dict_ldap_debug: ber_scanf fmt ({eaa) ber:
postmap: dict_ldap_debug: read1msg: ld 0x9809650 0 new referrals
postmap: dict_ldap_debug: read1msg: mark request completed, ld 0x9809650 msgid 2
postmap: dict_ldap_debug: request done: ld 0x9809650 msgid 2
postmap: dict_ldap_debug: res_errno: 0, res_error: <>, res_matched: <>
postmap: dict_ldap_debug: ldap_free_request (origid 2, msgid 2)
postmap: dict_ldap_debug: ldap_parse_result
postmap: dict_ldap_debug: ber_scanf fmt ({iaa) ber:
postmap: dict_ldap_debug: ber_scanf fmt (v) ber:
postmap: dict_ldap_debug: ber_scanf fmt (}) ber:
postmap: dict_ldap_debug: ldap_err2string
postmap: warning: dict_ldap_lookup: Search error 10: Referral
postmap: dict_ldap_debug: ldap_free_connection 1 1
postmap: dict_ldap_debug: ldap_send_unbind
postmap: dict_ldap_debug: ber_flush: 7 bytes to sd 4
postmap: dict_ldap_debug: ldap_free_connection: actually freed
postmap: dict_ldap_debug: ldap_msgfree
[root@mail5 postfix]#
Thanks in advance.
santoshkrg wrote:Hi,
I have AD Windows 2003 domain as tarang.local and mail domain as tarang.com.
Where to make changes in this config http://www.iredmail.org/wiki/index.php? … y.iRedMail
so that using AD I can able to create mail account as user@tarang.com instead of user@tarang.local
Thanks in Advance