I found the solution to this problem. The function SCANVERSION tries
to find the clamdscan this way:

{
      open(CLAMS,"$clamdscan_binary --version 2>&1|")||die "failed to
call $clamdscan_binary --version - $!";
      while (<CLAMS>) {
        chomp;
        if (/ersion ([0-9\.\-a-z]+)/i) {
          $SCANINFO .="clamdscan: $1. ";
        }
      }

But now the clamdscan -V does not return Version: 0.xxx anymore,
instead it returns:

nicholas:~# clamdscan -V
ClamAV 0.80rc3/524/Sun Oct 10 13:36:08 2004
nicholas:~#

So I changed the function to:

{
      open(CLAMS,"$clamdscan_binary --version 2>&1|")||die "failed to
call $clamdscan_binary --version - $!";
      while (<CLAMS>) {
        chomp;
        if (/lamAV ([0-9\.\-a-z]+)/i) {
          $SCANINFO .="clamdscan: $1. ";
        }
      }

and the runned 

/var/qmail/bin/qmail-scanner-queue.pl -z

And it worked! :)

I hope this helps someone,

cheers


On Sat, 9 Oct 2004 19:34:40 -0300, Daniel Duclos
<[EMAIL PROTECTED]> wrote:
> Hello all,
> 
> I have a Linux Debian 3.0/testing box running on i686. I run qmail
> 1.03 w/ bill shupp patches, spam assassin 2.55 and clamav AV 0.80rc3,
> connected with qmail-scanner 1.23.
> 
> It is working fine. I used to have ClamAv 0.70 but I decided to
> upgrade to version 0.80rc3. The update went ok and viruses are being
> caught. But mail headers ceassed to show precense and version of
> ClamAV. It used to went like this:
> 
> Received: (qmail 26943 invoked by uid 1001); 9 Oct 2004 03:07:14 -0000
> Received: from 64.233.170.192 by nicholas (envelope-from
> <[EMAIL PROTECTED]>, uid 64011) with qmail-scanner-1.23
>  (clamdscan: 0.70. spamassassin: 2.55.
>  Clear:RC:0(64.233.170.192):SA:0(0.0/6.0):.
> 
> And now it is like this:
> 
> Received: (qmail 8198 invoked by uid 1001); 9 Oct 2004 22:26:09 -0000
> Received: from 64.233.170.196 by nicholas (envelope-from
> <[EMAIL PROTECTED]>, uid 64011) with qmail-scanner-1.23
>  (spamassassin: 2.55.
>  Clear:RC:0(64.233.170.196):SA:0(0.0/4.0):.
> 
> I tested the installation with EICAR and ClamAV spotted it as it
> should, so ClamAV is working and qmail-scanner is calling it.
> 
> However the version is gone from the logs, as well from the headers.
> Any ideas? It is a minor issue, since viroses is being stopped and
> spam is being flagged, but still I would like to have this as it used
> to be.
> 
> thank you very much for your time and any input woud be appreciated.
> 
> Here are some info you may need:
> 
> Linux 2.4.26-1-386 #2 Sat May 1 16:31:24 EST 2004 i686 GNU/Linux
> /etc/debian_version: 3.0
> ClamAV 0.80rc3/522/Fri Oct  8 17:27:06 2004
> Spam Assassin: 2.55
> qmail-scanner: 1.23


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to