[Mimedefang] Detecting antivirus programs automatically

Nate Carlson natecars at real-time.com
Tue Jul 30 18:17:01 EDT 2002


Howdy,

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.

What would be the best way to implement this? Write a perl function
that'll search for a binary named 'X' in all the PATHs in the environment
variables, and then use that function to see if a virus scanner is
installed instead of the current:

$Features{'Virus:AVP'}      = ("/bin/false" ne "/bin/false" ? "/bin/false" : 0);
$Features{'Virus:FPROT'}    = ("/bin/false" ne "/bin/false" ? "/bin/false" : 0);

or something similar?

-- 
Nate Carlson <natecars at real-time.com>   | Phone : (952)943-8700
http://www.real-time.com                | Fax   : (952)943-8500





More information about the MIMEDefang mailing list