On Fri, Sep 05, 2014 at 06:38:23PM +0200, Matus UHLAR - fantomas wrote: > >W dniu 2014-09-05 17:55, Justin Edmands pisze: > >>We are seeing a few emails that are about a 1MB and appear to have > > On 05.09.14 18:09, Adi wrote: > >You should consider limiting SA processing to mail size > >up to 150-250 KB. > > > >very few spam messages is bigger. > > I'm happily filtering all mail with SA and it did catch much of spam. > unfortunately there IS spam >256K... > > yes, it _needs_ much memory and CPU power...
Nah, Amavisd-new has supported truncating large messages for 5 years already. - large messages beyond $sa_mail_body_size_limit are now partially passed to SpamAssassin and other spam scanners for checking: a copy passed to a spam scanner is truncated near or slightly past the indicated limit. Large messages are no longer given an almost free passage through spam checks. Also there's my patch to make SA handle big blobs gracefully: https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6582 Skipping large messages is a bit of 90's mentality since technically it's pointless.
