I am trying to build postfix with lldap.
When doing postmap -q abc.com ldap:/etc/postfix/ldap-virtual-domain.cf , its not returning any value.
/etc/postfix/ldap-virtual-domain.cf configuration as follow
# Address of your LDAP server with protocol specified
server_host = ldaps://idm.abc.com:6360
# Base DN for domain entries
search_base = dc=abc,dc=com # Adjust as necessary for your directory structure
# Distinguished Name (DN) of the user allowing for LDAP binds
bind_dn = uid=ro_admin,ou=people,dc=abc,dc=com
# Password for the bind user (ensure secure handling of sensitive information)
bind_pw = PASSWORD
#TLS
tls_ca_cert_file =/home/vmail/abc.com/lldap.crt
# Define the query filter settings for virtual domains
query_filter = (&(objectClass=inetOrgPerson)(mail=*@%s))
result_attribute = mail
# Result format
result_format = %s
What should be the correct query_filter for to extract the dc ?