* Michael Scheidell <list-s...@secnap.com>:
> On 4/22/10 5:03 PM, Noel Jones wrote:
> > With clamav (and likely other virus scanners), it's necessary
> > for the scanner to see the whole message for some signatures
> > to match.  Normally one would just set $bypass_decode_parts =
> > 1 for this.
> >    
> actually, there is a way to do this.
> 
> I use  this, don't remember what else I did, but all the 'sanesecurity' 
> tests pass. and banned attachment blocking, bouncekiller, all work.
> 
> 
> $bypass_decode_parts = 0;
> and change av scanners to this: (gets the whole email)
> @av_scanners = (
> ['ClamAV-clamd',
>    \&ask_daemon, ["CONTSCAN {}/../email.txt\n", "/var/run/clamav/clamd"],
>    qr/\bOK$/, qr/\bFOUND$/,
>    qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
> );

So, "{}" expands to the temporary directory, not a specific file?


Stefan

------------------------------------------------------------------------------
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 
 AMaViS-HowTos:http://www.amavis.org/howto/ 

Reply via email to