Re: [exim] Exim4 skips SpamAssassin if attachments are too b…

Top Page
Delete this message
Reply to this message
Author: Patrick von der Hagen
Date:  
To: Paul Lenz, exim-users
Subject: Re: [exim] Exim4 skips SpamAssassin if attachments are too big
Hi Paul,

SpamAssassin has some VERY expensive regular expressions, which result
in extreme memory usage. If the limit is completely disabled, you
shouldn't be surprised if a couple of spamd-children consume all your
memory, which can render your server pretty much useless.

Therefore, such a limit is common practice and searching for the sweet
spot of "spammers usually send smaller emails" and "spamassassin can
still cope" can be hard.

On my servers, I use SpamAssassin for smaller messages and rspamd for
the big ones. rspamd is way more efficient regarding resource usage.
Still need to properly evaluate SpamAssassin vs. rspamd for my setup,
since I'd love to replace SpamAssassin...

Yours,
Patrick.


Am 29.08.2017 um 23:03 schrieb Paul Lenz:
> Hello everybody,
>
> I am using Exim4 (version: 4.80-7+deb7u5) on a Debian system with
> SpamAssassin. Everything works very fine except the case if an e-mail
> has big attachments. Unfortunately it is quite common that lottery
> spammers attach a pdf file which has 700 kB or even 1200 kB.
>
> Those e-mails have a header entry like this:
>
> Received: from mail by [[MY_SERVER]] with spam-scanned (Exim 4.80 #2
> (Debian))
>     id 1dknc6-0006nP-BB
>     for <[[MY_ADDRESS]]>; Thu, 24 Aug 2017 10:35:42 +0200

>
> but they are not scanned and there are no entries made by SpamAssassin.
>
> I tried to find solutions in a Debian forum, but nobody could help me.
>
> - Why are those e-mails skipped?
>
> - How comes "spam-scanned" into the header if the e-mail was not scanned?
>
> - Is there a size limit which I can change?
>
> - If there is no solution - how can I include a small self-written
> Perl script as additional filter?
>
> Thanks in advance
> Paul Lenz
>
>


--
Karlsruher Institut für Technologie (KIT)
Steinbuch Centre for Computing (SCC)

Patrick von der Hagen

Zirkel 2, Gebäude 20.21, Raum 004.2
76131 Karlsruhe
Telefon: +49 721 608-46433
E-Mail: hagen@???
Web: http://www.scc.kit.edu

KIT – Die Forschungsuniversität in der Helmholtz-Gemeinschaft