[Mimedefang] Detecting antivirus programs automatically

David F. Skoll dfs at roaringpenguin.com
Tue Jul 30 18:41:01 EDT 2002


On Tue, 30 Jul 2002, Nate Carlson wrote:

> Just wanted to make a note that it'd be nice if Mimedefang detected virus
> scanners that are installed in default locations (ie, the PATH variable)
> automatically at runtime. That way, if you build Mimedefang (as a RPM,
> probably) on a box without any virus scanners installed, and install it on
> a box with those scanners, it'll just work without any changes to
> mimedefang.pl.. also make it easier if you install a virus scanner after
> mimedefang's already installed.

Some scanners don't put themselves on the standard PATH.  However, you
can do it in your filter by explicitly setting the feature.  For
example, in the top of the filter (outside any subroutine), you could
do:

$Features{'Virus:AVP'} = '/path/to/kavdaemon';

True, you have to modify your filter, but at least RPM's and upgrades
will work out of the box.

Regards,

David.




More information about the MIMEDefang mailing list