Lloyd Zusman writes:
Lloyd Zusman <[EMAIL PROTECTED]> writes:
In my newly configured Courier system, I keep getting the following error every time I try to send messages via sqwebmail:
Server error!
The server encountered an internal error and was unable to complete your request.
Error message:
Premature end of script headers: webmail
If you think this is a server error, please contact the webmaster
Error 500
Clearly, something is wrong with my configuration, but I can't find anywhere where the details of this error get logged. Nothing shows up in syslog, and I don't know where else to look. Therefore, I can't begin to try to diagnose this.
P.S. -- I forgot to mention that there's a one-liner in my apache error log that corresponds to the above message ... i.e., the log entry only says that there was an internal error involving a premature end of script headers. What I'm hoping to find is a log file generated by the Courier software itself, which would tell me more about the cause of this error.
This is not something that sqwebmail would log. This indicates a failure to run sqwebmail itself.
It's a bit of a bear to debug these things. You have to go up until just before the point where things crash, then before you do the final action that's going to fail, you want to temporarily rename the sqwebmail cgi-bin stub to something else, like sqwebmail.org, and put a short script in its place:
#!/bin/sh
echo "Content-Type: text/plain" echo "" exec /var/www/cgi-bin/sqwebmail.orig
Then submit the request and see what actually happens.
pgpdMe31P68KX.pgp
Description: PGP signature
