Greetings,
We have a problem with the Qmail-Ldap Control patch, the release levels used are:
Solaris 9 OS, gcc 3.2 -O3.
Qmail 1.03
qmail-ldap-1.03-20021101.patch
qmail-ldap-control_20021126
OpenLdap 2.1.8
First of all: Qmail-Ldap without the control patch works, as soon as we apply the
control patch following happens:
1) The qmail-ldap-control_20021126 will not apply cleanly over the
qmail-ldap-1.03-20021101.patch, Makefile has 2 hunks rejected, please see the bottom
of this mail for contains of Makefile.rej. Those are minor problems and we where able
to manually patch the file.
2) After populating our ldap control tree with following info:
dn: cn=mail.codeangels.com, ou=mail, o=Codeangels, c=CH
objectclass: top
objectclass: organizationalUnit
objectclass: qmailControl
ou: mail.codeangels.com
cn: mail.codeangels.com
locals: codeangels.com
locals: codeangels.ch
ldapBaseDN: ou=mail, o=Codeangels, c=CH
ldapLogin: cn=Manager, o=Codeangels, c=CH
ldapPassword: <censored>
ldapUid: 1022
ldapGid: 1016
and doing:
echo "mail.codeangels.com" > me
echo "ou=mail, o=Codeangels, c=CH" > ldapcontroldn
echo "localhost" > ldapserver
in the ~control/, making sure those files are world readable, we proceed
3) While testing qmail-smtpd we find out that it does connect to ldap directory when
started by looking at the logs, it also can differentiate between the locals and
remote domains, that is it will queue mail as remote if domain is not one of the
locals, and if it is, queue it for local delivery. But it will not show its hostname
within the smtp session, it will just say "220 ESMTP" when connection is opened.
4) qmail-lspawn seems to be broken, when it is started, it will connect to the ldap
and do several queries similar to those of qmail-smtpd, openldap syslog debug shows
following for those:
Nov 27 22:37:22 vapor slapd[6734]: [ID 902418 local7.debug] conn=29 op=5 SRCH
base="ou=mail,o=Codeangels,c=CH" scope=2
filter="(&(cn=mail.codeangels.com)(objectClass=qmailControl))"
But as soon as we try to send a message to local account it will spit following error:
Nov 27 22:37:22 vapor qmail: [ID 748625 mail.info] 1038433042.256680 delivery 1:
deferral:
Unable_to_contact_LDAP_server_(bad_server_address_or_server_down?)._(LDAP-ERR_#205)
I was also unable to get any more output by seting the LOGLEVEL env variable to 255.
Anyone has an idea about the reason for those problems ?
Regards
Kirill
Makefile.rej:
--------------------------------------------------------------------------------------------------
***************
*** 1412,1426 ****
> qmail-limits.7
qmail-local: \
- load qmail-local.o qmail.o quote.o now.o gfrom.o myctime.o qldap-mdm.o \
slurpclose.o case.a getln.a getopt.a sig.a open.a seek.a lock.a fd.a \
wait.a env.a stralloc.a alloc.a strerr.a substdio.a error.a str.a \
fs.a datetime.a auto_qmail.o auto_patrn.o control.o socket.lib \
- maildir++.o qldap-errno.o
./load qmail-local qmail.o quote.o maildir++.o now.o gfrom.o myctime.o
\
- qldap-mdm.o slurpclose.o case.a getln.a getopt.a sig.a open.a seek.a \
lock.a fd.a wait.a env.a stralloc.a alloc.a strerr.a substdio.a \
- qldap-errno.o error.a str.a fs.a datetime.a auto_qmail.o \
auto_patrn.o `cat socket.lib`
qmail-local.0: \
--- 1473,1487 ----
> qmail-limits.7
qmail-local: \
+ Makefile load qmail-local.o qmail.o quote.o now.o gfrom.o myctime.o \
slurpclose.o case.a getln.a getopt.a sig.a open.a seek.a lock.a fd.a \
wait.a env.a stralloc.a alloc.a strerr.a substdio.a error.a str.a \
fs.a datetime.a auto_qmail.o auto_patrn.o control.o socket.lib \
+ maildir++.o qldap.a
./load qmail-local qmail.o quote.o maildir++.o now.o gfrom.o myctime.o
\
+ slurpclose.o case.a getln.a getopt.a sig.a open.a seek.a \
lock.a fd.a wait.a env.a stralloc.a alloc.a strerr.a substdio.a \
+ qldap.a error.a str.a fs.a datetime.a auto_qmail.o \
auto_patrn.o `cat socket.lib`
qmail-local.0: \
***************
*** 1775,1790 ****
./compile qmail-rspawn.c
EOF Makefile.rej:
--------------------------------------------------------------------------------------------------