[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vps-mail] Limit files size on procmail and clamav



Scott,

Thanks for the tips.  I will check that info out.

Jonathan


On Fri, 19 Nov 2004, Scott Wiersdorf wrote:

On Fri, Nov 19, 2004 at 08:17:30PM -0700, Jonathan Duncan wrote:
- how to limit e-mail file sizes coming in?

look at the StreamMaxLength feature for clamav.conf, you could also
try shunting it early in procmail:

 ## don't scan message bodies larger than 10 megs
 :0
 * B > 10000000
 { DONTSCAN=1 }

 :0
 * ! $ $DONTSCAN
 CLAMAV=|/usr/local/bin/clamscan ...

(this is untested). These changes will unfortunately have to go in the
"changes here will be lost" section of your procmailrc file, so when
you upgrade, be sure to check them again.

- how to limit clamav file size scans?

See ArchiveMaxFileSize in clamav.conf(5).

Scott
--
Scott Wiersdorf
<scott@xxxxxxxxxxxx>
======================================================================
This is <vps-mail@xxxxxxxxxxxx>       <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).

======================================================================
This is <vps-mail@xxxxxxxxxxxx>       <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).


Main Index | Thread Index
Match: Format: Sort by:
Search: