On 4/5/06, Nick Leverton <[EMAIL PROTECTED]> wrote:
> Hi,
>
> We are using Clamav 0.88.1 under amavis on Linux to scan incoming mail.
> However we often receive mails containing a number of attachments, and I
> have found out that clamav appears to hold the entire email in memory
> whilst decoding and scanning the individual attachments.  Thus, for
> instance, if a customer sends us a 200Mb file containing four 35Mb word
> documents, clam's memory requirements will suddenly swell from 14 Mb up to
> 300 Mb whilst it is scanning.

WTF are you doing accepting email's at 200 MB?  There are far more
appropriate methods of file transfer than SMTP!

> Can you help us reduce the memory needed for large mails, because having to
> allow so much extra memory for these large mails is very wasteful - and if
> we don't then the machine may go down when a couple of Clam threads have
> used all the memory.

Yeah, use a more appropriate file transfer method :-)

Alternatively, configure amavis to not virus scan emails above a
certain size.  Obviously this has some risks.

--
                 Please keep list traffic on the list.
Rob MacGregor
      Whoever fights monsters should see to it that in the process he
        doesn't become a monster.                  Friedrich Nietzsche
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to