I've been wrestling with qmail-ldap for awhile today and not
getting anywhere. I thought I'd post my issue to the list and
see if maybe someone here can point me in the right direction.
qmail starts fine, but messages don't get delivered. I ran a
qmail-ldap test and it failed, though the openldap logs
indicate it was successfull:
##############################################################
% qmail-ldaplookup -d 5 -m [EMAIL PROTECTED]
init_ldap: passwords are compared via rebind
localdelivery: on
clustering: on
ldapobjectclass: qmailuser
defaultDotMode: ldapwithprog
------
qldap_lookup: searching with
(&(objectclass=qmailuser)(|([EMAIL PROTECTED])([EMAIL PROTECTED])))
qldap_lookup: NOT successful: ldap_search failed
qldap_lookup: searching with
(&(objectclass=qmailuser)(|([EMAIL PROTECTED])([EMAIL PROTECTED])))
qldap_lookup: NOT successful: ldap_search failed user not found giving up
##############################################################
So I did a manual search of the same type using ldapsearch:
##############################################################
ldapsearch -x -b 'dc=niaul,dc=net' -s sub
'(&(objectclass=qmailuser)(|([EMAIL PROTECTED])([EMAIL PROTECTED])))'
version: 2
#
# filter:
(&(objectclass=qmailuser)(|([EMAIL PROTECTED])([EMAIL PROTECTED])))
# requesting: ALL
#
# test, poponly, accounts, domain, net
dn: cn=test, ou=poponly,ou=accounts,dc=domain,dc=net
userPassword:: <censored>
cn: Test User
sn: User
ou: poponly
ou: accounts
objectClass: top
objectClass: person
objectClass: inetOrgPerson
objectClass: qmailUser
mailHost: mail.testdomain.com
mailMessageStore: test
uid: test
accountStatus: active
mailQuota: 10000000, 10000C
mailForwardingAddress: [EMAIL PROTECTED]
mail: [EMAIL PROTECTED]
mailAlternateAddress: [EMAIL PROTECTED]
mailAlternateAddress: [EMAIL PROTECTED]
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
##############################################################
The logs reveal that they /are/ in fact searching the same server, so
it's not that easy. ;-) Anyone have any suggestions?