exim and spanassasin

Julian Field jkf at ecs.soton.ac.uk
Tue Mar 5 15:25:04 GMT 2002


Many thanks for that. You're the second person to spot the bug today. It is
fixed in 3.12-3 which I have just released.
(I previously knew it was wrong, but hadn't figured out why. Thanks for the
explanation!)

At 19:59 04/03/2002, you wrote:
>    We have being noticing an error in the exim's header spool file for
>a while after mailscanner had detected Spam correctly. The error went
>something like this:
>
>    2002-03-05 08:12:24 16hbMz-00069t-00 Format error in spool file
>16hbMz-00069t-00-H: size=1396
>
>We have tracked this down to the subject line length being incorrect.
>The length placed in by mailscanner is one char short.
>
>Looking at the mta-specific.pl function PrependHeader it adds up the
>length, but forgets to allow for the '\n'.
>
>I have added the following to our code and it is working fine:
>
>      $len = $oldlen - length($oldkey);
>
>+      #D.Monks added another 1 for the newline char. Exim report error
>otherwise.
>+      $headerlen = sprintf("%03d", $oldlen + length($newvalue) +
>length($sep) +1 );
>
>the version of mailscanner being used is 3.11-1
>
>Our users are now happly getting their spam.
>
>I hope this
>Dennis Monks
>
>I have nothing witty to say

--
Julian Field                Teaching Systems Manager
jkf at ecs.soton.ac.uk         Dept. of Electronics & Computer Science
Tel. 023 8059 2817          University of Southampton
                             Southampton SO17 1BJ



More information about the MailScanner mailing list