Howdy folks,
I'm trying to get sqwebmail 1.0.2 configured on a Solaris 8 (sparc) machine.
My problem is that I get an "Internal Server Error" from Apache when I click
on a folder (ie. INBOX, Drafts, Sent, etc.) from the Folders page. The
apache logs give the un-helpful message "Premature end of script headers:
/export/www/coby.org/cgi-bin/sqwebmail" in the error_log.
All of the other functionality appears to be working correctly:
login/authentication, I can create and delete folders, update preferences,
add/delete address book entries etc. The folder viewing problem exists both
for pam users and vpopmail users.
The maildir format is relativly new to me, but I *think* I have it setup
correctly, since Courier IMAP is working with them very well. Also, I don't
think it's a permissions issue, since sqwebmail seems to be able to
read/write other files within the maildir. I've included the output of an
authtest, and a maildir directory listing at the end of this message, just
in case someone can spot something wrong.
I'm not exactly sure the best way to track down the problem. It seems that
there are (at least) two ways to try and debug problems with binary cgi's
like sqwebmail. I could try building a wrapper script around the sqwebmail
binary so that I can catch a truss of the process as the webserver execute
it. Or, I could try debuging the binary by running/trussing it from command
line - although I'm not sure how to best test post-authentication methods
(ie. working within the session managment). Has anyone had any luck with
either method and/or created any tools to make it easier?
Thanks in advance for any advice you can offer.
-Coby
1 gomez:/usr/local/src/sqwebmail/sqwebmail-1.0.2 # authlib/authtest coby
XXXXXX
Authenticated: module authpam
Home directory: /export/home/coby
UID/GID: 100/1
AUTHADDR=coby
AUTHFULLNAME=Coby Young
2 gomez:/usr/local/src/sqwebmail/sqwebmail-1.0.2 # ls -l
/export/home/coby/Maildir/
total 22
-rw-r--r-- 1 coby other 113 Oct 27 22:11 courierimapuiddb
drwx------ 2 coby other 512 Oct 27 22:11 cur
drwx------ 2 coby other 512 Oct 27 22:11 new
-rw------- 1 coby other 34 Oct 29 10:22 sqwebmail-addressbook
-rw------- 1 coby other 78 Oct 29 10:23 sqwebmail-config
-rw------- 1 coby other 4 Oct 28 23:33 sqwebmail-curcnt
-rw------- 1 coby other 76 Oct 29 14:33 sqwebmail-ip
-rw------- 1 coby other 15 Oct 8 12:47 sqwebmail-pass
-rw------- 1 coby other 11 Oct 29 10:21 sqwebmail-sig
-rw------- 1 coby other 1 Oct 29 14:36 sqwebmail-timestamp
drwx------ 2 coby other 1024 Oct 29 14:50 tmp
ps.