Can't get clamd working???

Rick Cooper rcooper at dwford.com
Wed Jun 6 05:10:13 IST 2007


 

> -----Original Message-----
> From: mailscanner-bounces at lists.mailscanner.info 
> [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf 
> Of Gerry Doris
> Sent: Tuesday, June 05, 2007 11:19 PM
> To: MailScanner discussion
> Subject: Re: Can't get clamd working???
[...]
> I stated in my original email that I had the following line...
> 
> Virus Scanners = clamd trend f-prot bitdefender
> 
> I'm running four virus scanners (this is a test system).  For some 
> reason MailScanner finds clamavmodule but not clamd.  It also 
> finds the 
> other 3 scanners without problems.

It's because the Mail::ClamAV is a separate module not built in to
SweepViruses:

  if (eval 'require Mail::ClamAV') {
    foreach (@installed) {
      s/^clamav$/clamavmodule/i;
    }
  }

Doesn't ensure your clamav installation is operational but it does insure
the module is available. The Clamd code could be moved into it's own module
and the eval could be performed. Even if it looked for the clamd binary it
doesn't mean the daemon is running.

Julian, How about adding

    push @installed, $scannername if $scannername eq 'clamd';
    next if $scannername eq 'clamd';

Right after next if $scannername =~ /generic|none/i; in InstalledScanners?
Or would you prefer an actual daemon check?
The above fixes the --lint issue at least.

Rick


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the MailScanner mailing list