Maurizio Bertoldi wrote:
> Hi everybody,
> I'm trying to install qmail-scanner with the latest version of AVP on a redhat
> 7.2 machine.
> After watching the configure script hanging indefinitely, waiting for the test
> scan to finish, I figured out that I had to put a "-Y" in the line that
> launches kavscanner, to have kavscanner itself perform the test scan in a
> non-interactive way. Otherwise, it waits for user input forever.
> Just to let everybody know my quick fix, hopefully it can be helpful for
> someone else.
>
This is my fix in qmail-scanner-queue:
See you de "-Y" and "$DD=`/usr/bin/env -i USER=qmailq HOME=/var/qmail"
This whork fine.
Suerte ;)
###############################
#
## END of standard subroutines
## Virus-scanner specific subroutines automatically added below by setup.sh
##
###############################
sub avp_scanner {
#Kaspersky AVPLinux scanner
&debug("antvir: starting scan of directory \"$scandir/$file_id\"...");
my ($avp_verbose)="-O" if ($DEBUG);
my ($start_avp_time)=[gettimeofday];
my ($DD,$avp_status,$stop_avp_time,$avp_time);
&debug("run $avp_binary -Y $avp_verbose $scandir/$file_id
$extra_file 2>&1");
$DD=`/usr/bin/env -i USER=qmailq HOME=/var/qmail $avp_binary -Y
$avp_verbose $scandir/$file_id $extra_file 2>&1`;
$avp_status=($? >> 8);
&debug("--output of avp was:\n$DD--");
if ( $avp_status > 0 ) {
if ($DD =~ /\n\s(.*) infected: (.*)\n/) {
$quarantine_description=$2;
&debug("There be a virus! ($quarantine_description)");
$quarantine_event++;
} else {
if ($DD =~ /\n\s.*:\\(.*) suspicion: (.*)\n/) {
$quarantine_description="$1 $2";
&debug("There be a suspect! ($quarantine_description)");
$quarantine_event++;
$destring="Suspicious file:";
} else {
&tempfail("corrupt or unknown Kaspersky scanner/resource
problems - exit status $avp_status");
}
}
}
$stop_avp_time=[gettimeofday];
$avp_time = tv_interval ($start_avp_time, $stop_avp_time);
&debug("avp: finished scan of dir \"$scandir/$file_id\" in $avp_time
secs");
}
#########################
## END of scanner definitions
##
#########################
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general