[Mimedefang] md 2.7 works w/ file::scan
Douglas J Hunley
doug at hunley.homeip.net
Fri Apr 12 21:39:24 EDT 2002
Just thought I'd let everyone know that integrating file::scan is fairly
simple with 2.7
My mimedefang-filter looks like:
sub filter_begin {
...
my($code, $category, $action) = message_contains_virus_filescan();
if ($category eq "virus") {
action_quarantine_entire_message();
action_bounc("Message appears to contain a virus, rejected");
}
...
}
I tested it with a fake EICAR virus, and sure enough it got bounced back with
the above error!
Good job!
--
Douglas J Hunley (doug at hunley.homeip.net) - Linux User #174778
Admin: Linux StepByStep - http://www.linux-sxs.org
and http://jobs.linux-sxs.org
/* Thanks to Rob `CmdrTaco' Malda for not influencing this code in any
* way.
*/
2.4.3 linux/net/core/netfilter.c
More information about the MIMEDefang
mailing list