I'm having difficulty getting sqwebmail to work in a qmail-ldap installation
on RH Linux 7.2, apache by RPM.
Details:
Goal: a Qmail/ldap server with no local email authentication. (ldap only)
with SpamAssassin, F-Prot anti-virus, Auto homedir creation. (in
/var/qmail/maildirs/{ldap::mailMessageStore}/{ldap::uid}/Maildir/. where
"{ldap::NNN}" is a value of NNN field in the LDAP database)
So far, everything is working fine, except sqwebmail. When I attempt to
access sqwebmail with a working username/pw, Apache reports an "Internal
Server error". (full text below).
Here's my configure for sqwebmail:
./configure \
--with-cachedir=/var/cache/sqwebmail \
--with-ispell \
--enable-autopurge=14 \
--enable-softtimeout=72000 \
--enable-bannerprog=/usr/local/bin/showbanner.cgi \
--enable-cgibindir=/home/httpd/cgi-bin \
--without-authpam \
--without-authpwd \
--without-authshadow \
--without-authmysql \
--without-authvchkpw \
--without-authcram \
--without-authcustom \
--with-authldap \
--disable-changepass \
--with-authldaprc=/usr/local/share/sqwebmail/authldaprc
I have confirmed that sqwebmail IS asking the LDAP server, and passing a
query that produces valid results, using "slapd -d 256" to get debug mode.
Here's a sample:
conn=1 op=1 SRCH base="ou=accounts,dc=mycompany,dc=com" scope=2
filter="(&(ou=accounts)([EMAIL PROTECTED]))"
ber_flush: 14 bytes to sd 9
conn=1 op=1 SEARCH RESULT tag=101 err=0 text=
conn=-1 fd=9 closed
When I do an ldapsearch manually with the same base /filter, I get valid
results.
The end result from sqwebmail is the following (in my browser):
################################################################
Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Please contact the server administrator, root@localhost and inform them of
the time the error occurred, and anything you might have done that may have
caused the error.
More information about this error may be available in the server error log.
Apache/1.3.22 Server at osiris.mycompany.com Port 80
################################################################
No errors show up when HTTPD is run in single-process mode. (eg:
/usr/sbin/httpd -X)
The error_log file simply shows:
[Fri Nov 15 13:21:25 2002] [error] [client 63.195.17.22] Premature end of
script headers: /home/httpd/cgi-bin/sqwebmail
What is the next thing I should be trying? How can I get more details on why
the sqwebmail cgi is failing?