I'm setting up LDAP to be used by Postfix, Dovecot, etc. for mail and other stuff. I'm not understanding why postfix is failing to find the virtual domain in question. I've got Dovecot setup and working against it, at least for authentication at this point.
[root@mta03 /opt/local/etc/postfix]# cat ldap_virtual_mailbox_domains.cf server_host = ldap://10.0.0.60/ search_base = dc=coyp version = 3 bind = yes bind_dn = cn=***,dc=coyp bind_pw = ***** query_filter = (&(ObjectClass=dNSDomain)(dc=%2)) result_format = %2 result_attribute = dc [root@mta03 /opt/local/etc/postfix]# postmap -v -q balius ldap:/opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf postmap: name_mask: all postmap: inet_addr_local: configured 2 IPv4 addresses postmap: inet_addr_local: configured 1 IPv6 addresses postmap: dict_ldap_open: Using LDAP source /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf postmap: cfg_get_str: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: server_host = ldap://10.0.0.60/ postmap: cfg_get_int: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: server_port = 389 postmap: cfg_get_int: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: version = 3 postmap: dict_ldap_open: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf server_host URL is ldap://10.0.0.60/ postmap: cfg_get_str: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: scope = sub postmap: cfg_get_str: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: search_base = dc=coyp postmap: cfg_get_int: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: timeout = 10 postmap: cfg_get_str: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: query_filter = (&(ObjectClass=dNSDomain)(dc=%2)) postmap: cfg_get_str: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: result_format = %2 postmap: cfg_get_str: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: domain = postmap: cfg_get_str: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: terminal_result_attribute = postmap: cfg_get_str: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: leaf_result_attribute = postmap: cfg_get_str: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: result_attribute = dc postmap: cfg_get_str: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: special_result_attribute = postmap: cfg_get_str: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: bind = yes postmap: cfg_get_str: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: bind_dn = cn=****,dc=coyp postmap: cfg_get_str: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: bind_pw = ***** postmap: cfg_get_bool: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: cache = off postmap: cfg_get_int: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: cache_expiry = -1 postmap: cfg_get_int: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: cache_size = -1 postmap: cfg_get_int: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: recursion_limit = 1000 postmap: cfg_get_int: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: expansion_limit = 0 postmap: cfg_get_int: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: size_limit = 0 postmap: cfg_get_int: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: dereference = 0 postmap: cfg_get_bool: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: chase_referrals = off postmap: cfg_get_bool: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: start_tls = off postmap: cfg_get_bool: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: tls_require_cert = off postmap: cfg_get_str: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: tls_ca_cert_file = postmap: cfg_get_str: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: tls_ca_cert_dir = postmap: cfg_get_str: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: tls_cert = postmap: cfg_get_str: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: tls_key = postmap: cfg_get_str: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: tls_random_file = postmap: cfg_get_str: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: tls_cipher_suite = postmap: cfg_get_int: /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf: debuglevel = 0 postmap: dict_open: ldap:/opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf postmap: dict_ldap_lookup: In dict_ldap_lookup postmap: dict_ldap_lookup: No existing connection for LDAP source /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf, reopening postmap: dict_ldap_connect: Connecting to server ldap://10.0.0.60/ postmap: dict_ldap_connect: Actual Protocol version used is 3. postmap: dict_ldap_connect: Binding to server ldap://10.0.0.60/ with dn cn=msusr,dc=coyp postmap: dict_ldap_connect: Successful bind to server ldap://10.0.0.60/ with dn cn=msusr,dc=coyp postmap: dict_ldap_connect: Cached connection handle for LDAP source /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf postmap: dict_ldap_close: Closed connection handle for LDAP source /opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf Using ldapsearch with what I expect Postfix to be doing, I get a valid result. I'm not sure what I've missed or typo'd, etc.. [root@db01 /opt/local/etc/openldap]# ldapsearch -LL -D 'cn=****,dc=coyp' -W -b dc=coyp -s sub '(&(objectclass=dNSDomain)(dc=balius))' version: 1 dn: dc=balius,dc=com,dc=coyp objectClass: dcObject objectClass: dNSDomain o: Balius Domain dc: balius Pointers/suggestions welcomed. Thank you, Chad