[Mimedefang] Configure uvscan to scan inside a zip file.
Jason Englander
jason at englanders.cc
Wed Jul 2 13:52:00 EDT 2003
On Wed, 2 Jul 2003, Lucas Albers wrote:
> Thanks for the info on configuring mimedefang to see NAI. Works.
> I remember someone posting directions on configuring mimedefang to scan
> using both clamav and NAI. We get a lot of virus's where I work, and so I
> was thinking of doubling my detection chance by scanning with two virus
> scanners.
Definitely a good idea. A new message_contains_virus() like this:
sub message_contains_virus () {
my($code, $cat, $act);
if ($Features{'Virus:CLAMD'}) {
($code, $cat, $act) = message_contains_virus_clamd();
return (wantarray ? ($code, $cat, $act) : $code) if $act ne "ok";
}
if ($Features{"Virus:NAI"}) {
($code, $cat, $act) = message_contains_virus_nai();
return (wantarray ? ($code, $cat, $act) : $code) if $act ne "ok";
}
return (wantarray ? (0, 'ok', 'ok') : 0);
}
and a entity_contains_virus() like this (if you use
entity_contains_virus()) should take care of it:
sub entity_contains_virus ($) {
my($e) = @_;
if ($Features{'Virus:CLAMD'}) {
($code, $cat, $act) = entity_contains_virus_clamd($e);
return (wantarray ? ($code, $cat, $act) : $code) if $act ne "ok";
}
if ($Features{"Virus:NAI"}) {
($code, $cat, $act) = entity_contains_virus_nai($e);
return (wantarray ? ($code, $cat, $act) : $code) if $act ne "ok";
}
return (wantarray ? (0, 'ok', 'ok') : 0);
}
Jason
--
Jason Englander <jason at englanders.cc>
394F 7E02 C105 7268 777A 3F5A 0AC0 C618 0675 80CA
More information about the MIMEDefang
mailing list