Matt Martin wrote:
Hi,
Ive used Qmailrocks.org on this one. (Have used before with Clam without issues, however, using Kaspersky this time)
I understand that ask Kaspersky changed the way things worked in the latter versions of the scanner, that is no longer works (or works with difficulty)?
If I take the line out of qmail-scanner (so that it just uses spamassasin) all works fine, however, when added I get this when using the test script;
[EMAIL PROTECTED] contrib]# ./test_installation.sh -doit QMAILQUEUE was not set, defaulting to /var/qmail/bin/qmail-scanner-queue.pl for this test...
Sending standard test message - no viruses... done!
Sending eicar test virus - should be caught by perlscanner module... qmail-inject: fatal: qq temporary problem (#4.3.0) Bad error. qmail-inject died
In the queue-log I get;
Fri, 19 Nov 2004 14:49:25 GMT:24607: ------ Process 24607 finished. Total of 0.154821 secs Fri, 19 Nov 2004 14:49:25 GMT:24619: +++ starting debugging for process 24619 by uid=0 Fri, 19 Nov 2004 14:49:25 GMT:24619: w_c: elapsed time from start 0.037392 secs Fri, 19 Nov 2004 14:49:25 GMT:24619: return-path='', recips='[EMAIL PROTECTED]' Fri, 19 Nov 2004 14:49:25 GMT:24619: from='Qmail-Scanner Test <[EMAIL PROTECTED]>', subj='Qmail-Scanner viral test (2/4): checking perlscanner...', via local process 24619 Fri, 19 Nov 2004 14:49:26 GMT:24619: error_condition: X-Antivirus-JCT600-1.24-st-qms: corrupt or unknown Kaspersky scanner error or memory/resource/perms problems - exit status 7680/30 Fri, 19 Nov 2004 14:49:26 GMT:24619: ------ Process 24619 finished. Total of 0.717182 secs
Ive looked everywhere for an answer but cannot find anything, any suggestions would be great :)
Matt
------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general
you have to change sub-avp.
Here is my one using aveclient . pls test it before using !!!!!!!!!!!!
regards mandy
sub avp_scanner {
#Kaspersky AVPLinux scanner
&debug("kasp: starting scan of directory \"$ENV{'TMPDIR'}\"...");
my ($start_avp_time)=[gettimeofday];
my ($avp_verbose,$DD,$avp_status,$eavp_status,$stop_avp_time,$avp_time);
$avp_verbose="-O" if ($DEBUG);
&debug("Setting enviroment \$TEMP to $ENV{'TMPDIR'}");
$ENV{'TEMP'} = $ENV{'TMPDIR'};
&debug("run aveclient $ENV{'TMPDIR'} 2>&1");
$DD=`/opt/kav/bin/aveclient -p /var/run/aveserver -s $ENV{'TMPDIR'}/* 2>&1`;
# Removing CRLF windows chars
$DD =~ s/\r//g;
$avp_status=$?;
$eavp_status=($avp_status >> 8);
&debug("--output of avp was:\n$DD--");
if ( $eavp_status > 0 ) {
if ($eavp_status =~ /^(2|3|4|6)$/) {
#This covers the potential viruses
$quarantine_description="suspicious";
if ($DD =~ /\n(.*) (LINFECTED):? (.*)\n/i) {
$quarantine_description="$2 $3";
} elsif ($DD =~ /\n(.*) (suspic\w+):? (.*)\n/i) {
#This covers the specific
$destring='Suspicious file:';
$quarantine_description="$1 $2 $3";
}
&debug("There be a $destring! ($quarantine_description)");
($quarantine_event=$quarantine_description)=~s/\s/_/g;
$quarantine_event="AVP:".substr($quarantine_event,0,$QE_LEN);
} else {
&error_condition("corrupt or unknown Kaspersky scanner error or memory/resource/perms problems - exit status $avp_status/$eavp_status");
}
} elsif ($eavp_status == 0 && $avp_status > 0) {
&error_condition("corrupt or unknown Kaspersky scanner error or memory/resource/perms problems - exit status $avp_status/$eavp_status");
}
$stop_avp_time=[gettimeofday];
$avp_time = tv_interval ($start_avp_time, $stop_avp_time);
&debug("Deleting enviroment \$TEMP");
delete $ENV{'TEMP'};
&debug("kasp: finished scan of dir \"$ENV{'TMPDIR'}\" in $avp_time secs");
}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general