From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MyIE2; .NET CLR 1.0.3705; .NET CLR 1.1.4322) Description of problem: When attempting to use LDAP table lookups with Postfix it does not recognise the query_filter option and hence only uses the default query. Version-Release number of selected component (if applicable): postfix-2.0.16-13.RHEL3 How reproducible: Always Steps to Reproduce: 1. Setup an LDAP lookup with a custom query filter 2. Use postmap to test the filter Actual Results: postmap: dict_ldap_lookup: Searching with filter (mailacceptinggeneralid=user) postmap: warning: dict_ldap_lookup: Search error 32: No such object Expected Results: It should be using the custom query filter. Additional info: Sample LDAP config: server_host = 127.0.0.1 #server_port = 389 search_base = ou=mailUsers,dc=ozhosting,dc=com timeout = 5 query_filter = (uid=%s) result_filter = %s any_value result_attribute = uid bind_dn = cn=Manager,dc=ozhosting,dc=com bind_pw = password expansion_limit = 1 Sample test: postmap -v -q user ldap:/etc/postfix/ldap-recipients.cf
My apologies. I was trying to use a feature of postfix 2.1 and did not realise that it was not present in 2.0 May I suggest you consider updating postfix to 2.1 in the next update of RHEL3, if not sooner.
Internal RFE bug #129478 entered; will be considered for future releases.
RHEL 4 will include postfix 2.1+.