On Tue, Oct 04, 2005 at 04:20:14PM +1000, Mark Constable wrote:
I seem to be getting a lot of these when logging in and also trying
to create a mailfilter.
Internal Error
The webmail system is temporarily unavailable. An error occured
in function CGI: CGI environment exceeds allowed maximum size.
My mail log shows a...
Oct 4 16:11:52 mail sqwebmaild: socket closed while reading environment.
I also cannot create a mailfilter with this error, even if I
manually create the .mailfilter file first...
ERROR: Unable to save rule - contact system administrator
# ls -l ../cherry -d
drwx------ 4 daemon daemon 4096 Oct 4 16:01 ../cherry/
# ls -l .mailfilter
-rw------- 1 daemon daemon 0 Oct 4 16:01 .mailfilter
courier/sqwebmail run as the daemon user so I can't see anything
wrong with these perms.
Any suggestions for either of these problems or how to debug
these issues further ?
(1) Try increasing sqwebmail's maximum environment size:
sqwebmail/sqwebmail.h:#define SOCKENVIRONLEN 4096
(2) If that fixes the problem, then you probably want to dump the
environment that you are receiving in order to find out why it was so large.
Perhaps it's polluted with crap and your webserver is passing the
environment through.
However this doesn't directly explain why the saving of a filter file fails.
Look in sqwebmail/mailfilter.c and search for INTERNAL to find the key for
this particular error message (it's a reference into a string in
html/en-us/filter.html). You can then start adding some printf debugging to
try and work out exactly where it's failing.
Regards,
Brian.