[Pkg-exim4-users] Limit the size of files scanned with Clamav.

Andreas Metzler ametzler@downhill.at.eu.org
Tue, 21 Jun 2005 19:45:34 +0200


On 2005-06-21 Jose de Jesus Gutierrez Ramirez <jgtez@previtep.com.mx> wrote:
> I'm using Exim+Clamav to scan files, How Can I limit the size of the files
> scanned with Clamav?

Add
condition = ${if <{$message_size}{200k}{1}{0}}
before every single invocation of
malware = ...


e.g. instead of

   deny message = This message contains malware ($malware_name)
        malware = *

use this:

   deny message = This message contains malware ($malware_name)
        condition = ${if <{$message_size}{200k}{1}{0}}
        malware = *

               cu andreas
-- 
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"
                                           http://downhill.aus.cc/