On 09/30/2010 09:54 PM, Zhou, Yan wrote:
Hi there,
I am using Postfix 2.3.3 to integrate with RedHat Open LDAP server. I
verified that my LDAP set up is correct, because I used the same
configuration on another Postfix server, it worked.
The following is how I ask LDAP to validate domain name.
main.cf:
mydestination = $myhostname, localhost.$mydomain, localhost,
ldap:acceptdomains
acceptdomains_server_host = ldap://<hostname>:389/
acceptdomains_server_port = 389
acceptdomains_search_base =
ou=domain,dc=hubdirect,dc=int,dc=medplus,dc=com
acceptdomains_query_filter = (domainname=%s)
acceptdomains_result_attribute = domainname
When I do postmap for testing a domain: test.medplus.com, here is what I
get.
postmap -qv test.medplus.com ldap:acceptdomains
postmap: fatal: open database test.medplus.com.db: No such file or
directory
You're asking "test.medplus.com" for key "v".
man postmap for correct syntax.
postmap -q test.medplus.com ldap:acceptdomains
<---return nothing in command line--->
When I looked in LDAP log, I see the query issued correctly but nothing
is retrieved.
Where is that log ? What does the LDAP *server* log ?
Map files must be fully named; "acceptdomains" is not a full pathname.
--
J.