[SA-exim] SAmaxbody and sa-exim Panics

Mike Dillinger miked at softtalker.com
Mon Aug 1 14:54:23 PDT 2005


Hello,

I have two weird things going on with sa-exim and I hope I can get some
help.

First of all, I noticed that sa-exim wasn't allowing Spamassassin to run
testing on incoming mail.  After looking at the log files, I noticed
that sa-exim thought that the message size exceeded SAmaxbody setting.
My SAmaxbody setting is 262144 (256KB).  I sent a sample message from
another email account of mine and watched the logs.  The message I sent
was between 2K and 3K, yet sa-exim wouldn't scan it, claiming it was
more than 256KB.  It seems that sa-exim is possibly multiplying the
actual mail size by one hundred (or at least in my testing that was the
case).  How does sa-exim determine the size?  And how do I fix this?

Secondly, I increased my SAmaxbody to 524288 (512KB) to see if scanning
worked.  It doesn't seem to work.  I get a panic.  Here are the
significant lines from my exim mainlog:

2005-08-01 14:24:08 1DzhlY-0003Nb-28 SA: Debug: SAEximRunCond expand returned: '1'
2005-08-01 14:24:08 1DzhlY-0003Nb-28 SA: Debug: check succeeded, running spamc
2005-08-01 14:24:08 1DzhlY-0003Nb-28 SA: PANIC: Unexpected error on read body (but message was accepted), file sa-exim.c, line 984: Bad file descriptor
2005-08-01 14:24:08 1DzhlY-0003Nb-28 SA: Debug: Writing message to /var/spool/sa-exim/SAerrorsave/new/1122931448_1DzhlY-0003Nb-28
2005-08-01 14:24:08 1DzhlY-0003Nb-28 SA: PANIC: Error in error handler while trying to save mail to /var/spool/sa-exim/SAerrorsave/1122931448_1DzhlY-0003Nb-28, file sa-exim.c, line 1470: Bad file descriptor

I'm thinking the unexpected read body error has something to do with
sa-exim thinking that the message is a lot larger than it really is.

A couple of other things I noticed:

1.  spamc takes a while to scan (and I don't know why), and sa-exim
thinks it has finished before spamc actually has.

2.  spamc runs fine when I scan the messages manually, i.e.:
spamc /var/spool/sa-exim/SAerrorsave/new/1122931448_1DzhlY-0003Nb-28

Thanks for any help!
-MikeD




More information about the SA-Exim mailing list