I have the following entry for clamscan as backup scanner, and it just works 
fine:

@av_scanners_backup = (

  ### http://www.clamav.net/   - backs up clamd or Mail::ClamAV
  ['ClamAV-clamscan', 'clamscan',
    "--stdout --disable-summary -r --tempdir=$TEMPBASE {}", [0], [1],
    qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],


Kind regards / Mit freundlichen Grüßen
 
Martin Bärtl
-------------------------------------------------
CDP Bharat Forge GmbH
Tel.: 02333 / 796 - 406
Fax: 02333 / 79611406
mailto: [EMAIL PROTECTED]


 
--------------------------------------------------------

CDP Bharat Forge GmbH | Mittelstr. 64 | D-58256 Ennepetal | HRB: 6669, 
Registriergericht Hagen
Geschäftsführer: Dipl.-Kfm. Eckard Rudau, Michael Kasperski, Dipl.-Ing. Martin 
von Werne
--------------------------------------------------------


Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Philippe 
Trolliet
Gesendet: Dienstag, 31. Juli 2007 09:58
An: Amavis-User
Betreff: [AMaViS-user] clamav as backup scanner

hi
i´m using clamav with amavisd-new on my mailserver. at the weekend clamav 
crashed and amavisd new didn´t work anymore and over 3000 mails have been 
queued. it uses clamav as primary internal virus scanner. i want to reconfigure 
amavisd-new that it uses clamav as secondary scanner and will continue working 
if clamav isn´t started. i just commented out the lines below in the backup-av 
list in amavisd.conf:

...
### http://www.clamav.net/   - backs up clamd or Mail::ClamAV
 ['ClamAV-clamscan', 'clamscan',
   "--stdout --disable-summary -r --tempdir=$TEMPBASE {}",
   [0], qr/:.*\sFOUND$/, qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ], ...

amavisd-new doesn´t find clamav as secondary scanner.
i tried to use the entry in primary scanners section and copied it to the 
backup-av section:

...
 ### http://www.clamav.net/
['ClamAV-clamd',
  \&ask_daemon, ["CONTSCAN {}\n", "/var/spool/amavisd/clamd.sock"],
  qr/\bOK$/, qr/\bFOUND$/,
  qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ], ...

when i shut down clamav then amavisd-new doesn´t work anymore. i have nod32 as 
primary av-scanner working and want clamav to be used as secondary scanner. if 
clamav isn´t started then amavisd-new should continue its work.

how can i configure amavisd-new to use clamav as backup scanner?
thanks

regards
philippe


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/ 
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to