1

Topic: postmap: warning: dict_ldap_lookup: /etc/postfix/ad_virtual_mailbox_ma

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.2
- Deployed with the downloadable installer
- Linux/BSD distribution name and version: CentOS 7
- Store mail accounts in which backend (LDAP):LDAP
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
postmap -q iredmail@smail.domain.local ldap:/etc/postfix/ad_virtual_mailbox_maps.cf
postmap: dict_ldap_debug: ldap_create
postmap: dict_ldap_debug: ldap_url_parse_ext(ldap://AD.domain.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 AD.domain.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.16.30.1:389
postmap: dict_ldap_debug: ldap_pvt_connect: fd: 4 tm: 10 async: 0
postmap: dict_ldap_debug: ldap_ndelay_on: 4
postmap: dict_ldap_debug: attempting to connect:
postmap: dict_ldap_debug: connect errno: 115
postmap: dict_ldap_debug: ldap_int_poll: fd: 4 tm: 10
postmap: dict_ldap_debug: ldap_is_sock_ready: 4
postmap: dict_ldap_debug: ldap_ndelay_off: 4
postmap: dict_ldap_debug: ldap_pvt_connect: 0
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_flush2: 30 bytes to sd 4
postmap: dict_ldap_debug: ldap_result ld 0x55f22dc929a0 msgid 1
postmap: dict_ldap_debug: wait4msg ld 0x55f22dc929a0 msgid 1 (timeout 10000000 usec)
postmap: dict_ldap_debug: wait4msg continue ld 0x55f22dc929a0 msgid 1 all 1
postmap: dict_ldap_debug: ** ld 0x55f22dc929a0 Connections:
postmap: dict_ldap_debug: * host: AD.domain.local  port: 389  (default)
postmap: dict_ldap_debug:   refcnt: 2  status: Connected
postmap: dict_ldap_debug:   last used: Fri Jan 22 10:13:57 2021
postmap: dict_ldap_debug:
postmap: dict_ldap_debug: ** ld 0x55f22dc929a0 Outstanding Requests:
postmap: dict_ldap_debug:  * msgid 1,  origid 1, status InProgress
postmap: dict_ldap_debug:    outstanding referrals 0, parent count 0
postmap: dict_ldap_debug:   ld 0x55f22dc929a0 request count 1 (abandoned 0)
postmap: dict_ldap_debug: ** ld 0x55f22dc929a0 Response Queue:
postmap: dict_ldap_debug:    Empty
postmap: dict_ldap_debug:   ld 0x55f22dc929a0 response count 0
postmap: dict_ldap_debug: ldap_chkResponseList ld 0x55f22dc929a0 msgid 1 all 1
postmap: dict_ldap_debug: ldap_chkResponseList returns ld 0x55f22dc929a0 NULL
postmap: dict_ldap_debug: ldap_int_select
postmap: dict_ldap_debug: read1msg: ld 0x55f22dc929a0 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 0x55f22dc929a0 msgid 1 message type bind
postmap: dict_ldap_debug: ber_scanf fmt ({eAA) ber:
postmap: dict_ldap_debug: read1msg: ld 0x55f22dc929a0 0 new referrals
postmap: dict_ldap_debug: read1msg:  mark request completed, ld 0x55f22dc929a0 msgid 1
postmap: dict_ldap_debug: request done: ld 0x55f22dc929a0 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_result
postmap: dict_ldap_debug: ber_scanf fmt ({iAA) ber:
postmap: dict_ldap_debug: ber_scanf fmt (}) ber:
postmap: dict_ldap_debug: ldap_msgfree
postmap: dict_ldap_debug: ldap_search_ext
postmap: dict_ldap_debug: put_filter: "(&(objectclass=person)(userPrincipalName=iredmail@smail.domain.local))"
postmap: dict_ldap_debug: put_filter: AND
postmap: dict_ldap_debug: put_filter_list "(objectclass=person)(userPrincipalName=iredmail@smail.domain.local)"
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=iredmail@smail.domain.local)"
postmap: dict_ldap_debug: put_filter: simple
postmap: dict_ldap_debug: put_simple_filter: "userPrincipalName=iredmail@smail.domain.local"
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_flush2: 152 bytes to sd 4
postmap: dict_ldap_debug: ldap_result ld 0x55f22dc929a0 msgid 2
postmap: dict_ldap_debug: wait4msg ld 0x55f22dc929a0 msgid 2 (timeout 10000000 usec)
postmap: dict_ldap_debug: wait4msg continue ld 0x55f22dc929a0 msgid 2 all 1
postmap: dict_ldap_debug: ** ld 0x55f22dc929a0 Connections:
postmap: dict_ldap_debug: * host: AD.domain.local  port: 389  (default)
postmap: dict_ldap_debug:   refcnt: 2  status: Connected
postmap: dict_ldap_debug:   last used: Fri Jan 22 10:13:57 2021
postmap: dict_ldap_debug:
postmap: dict_ldap_debug: ** ld 0x55f22dc929a0 Outstanding Requests:
postmap: dict_ldap_debug:  * msgid 2,  origid 2, status InProgress
postmap: dict_ldap_debug:    outstanding referrals 0, parent count 0
postmap: dict_ldap_debug:   ld 0x55f22dc929a0 request count 1 (abandoned 0)
postmap: dict_ldap_debug: ** ld 0x55f22dc929a0 Response Queue:
postmap: dict_ldap_debug:    Empty
postmap: dict_ldap_debug:   ld 0x55f22dc929a0 response count 0
postmap: dict_ldap_debug: ldap_chkResponseList ld 0x55f22dc929a0 msgid 2 all 1
postmap: dict_ldap_debug: ldap_chkResponseList returns ld 0x55f22dc929a0 NULL
postmap: dict_ldap_debug: ldap_int_select
postmap: dict_ldap_debug: read1msg: ld 0x55f22dc929a0 msgid 2 all 1
postmap: dict_ldap_debug: ber_get_next
postmap: dict_ldap_debug: ber_get_next: tag 0x30 len 140 contents:
postmap: dict_ldap_debug: read1msg: ld 0x55f22dc929a0 msgid 2 message type search-result
postmap: dict_ldap_debug: ber_scanf fmt ({eAA) ber:
postmap: dict_ldap_debug: read1msg: ld 0x55f22dc929a0 0 new referrals
postmap: dict_ldap_debug: read1msg:  mark request completed, ld 0x55f22dc929a0 msgid 2
postmap: dict_ldap_debug: request done: ld 0x55f22dc929a0 msgid 2
postmap: dict_ldap_debug: res_errno: 32, res_error: <0000208D: NameErr: DSID-03100288, problem 2001 (NO_OBJECT), data 0, best match of:??'DC=domain,DC=local'?>, res_matched: <DC=domain,DC=local>
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 (}) ber:
postmap: dict_ldap_debug: ldap_err2string
postmap: warning: dict_ldap_lookup: /etc/postfix/ad_virtual_mailbox_maps.cf: Search base 'ou=personal,dc=domain,dc=local' not found: 32: No such object
postmap: dict_ldap_debug: ldap_msgfree
postmap: fatal: table ldap:/etc/postfix/ad_virtual_mailbox_maps.cf: query error: Success

----

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

2

Re: postmap: warning: dict_ldap_lookup: /etc/postfix/ad_virtual_mailbox_ma

Dont connect to AD with postmap

3

Re: postmap: warning: dict_ldap_lookup: /etc/postfix/ad_virtual_mailbox_ma

nik_09 wrote:

postmap: warning: dict_ldap_lookup: /etc/postfix/ad_virtual_mailbox_maps.cf: Search base 'ou=personal,dc=domain,dc=local' not found: 32: No such object

The basedn configured in your Postfix ldap lookup file is wrong.