On Mon, Mar 22, 2004 at 02:09:09PM -0000, Coombes, Arthur wrote: > I have been having problems with attachments above 2MB with sqwebmail. I was > hoping someone could shed some light on what might me wrong. First off, > using pop3 via a normal mail client (in this case Mozilla Thunderbird) I can > send large attachments (tested with a 5MB attachment). However when I use > sqwebmail to upload the same file I get "Attachment size exceeds limit set > by system administrator"
Grepping for this message finds it in cgi/cgi.c: if (cl > CGIMAXFORMDATAARG) { printf("Content-Type: text/html\n\n"); printf("<html><body><h1>Attachment size exceeds limit set by system administrator</h1></body></html>\n"); fake_exit(1); } You'll see this defaults to 2000000 earlier in this file: #ifndef CGIMAXFORMDATAARG #define CGIMAXFORMDATAARG 2000000 #endif Looking at configure.in, you can override this value with --with-maxformargsize=..... so I suggest you add that to your configure line. Brian.