On Mon, Jul 09, 2007 at 09:30:50AM +0200, mess-mate wrote:
I've seen a similar question on tne archives; but can't find what to
do exactly to get sqwebmail running on debian/etch sytem.
error :
Consider increasing the number of pre-forked sqwebmaild processes
CGI environment exceeds allowed maximum size
So i've changed the sqwebmaild SQWEBMAIL_PREFORK=15
Without success.
any help would be very appreciated
It's nothing to do with the number pre-forked processes.
There is a buffer which holds the environment passed from the CGI stub to
the sqwebmail daemon pool. This buffer is of a fixed size - something like
8KB I think.
If your web server sends an environment which is larger than this, it cannot
be transferred and you get the error you see. This is a safety feature.
You have two solutions:
1. Recompile sqwebmail with a larger buffer size
2. Change your webserver configuration so you don't send it such a large
environment in the first place.
Starting your webserver with
env -i ....
where "...." is whatever command you normally use to start your webserver
may be sufficient to achive this. Use "printenv" to see what's in your
environment.
However, this may not be the answer if the actual problem is that the web
*browser* is sending huge amounts of crap in HTTP headers, and these are all
being put into your environment by the webserver as X_HTTP_XXXX values. In
that case, either go with solution (1) or use some sort of HTTP proxy to
filter out the superfluous headers.
BTW, this problem has been discussed before. A google search for
sqwebmail "CGI environment exceeds allowed maximum size"
turns up:
http://osdir.com/ml/mail.imap.courier.sqwebmail/2006-01/index.html
Brian.