Thelv,

Here is what I have in my amavisd.conf file:

@av_scanners_backup = (

        ['Clam Antivirus - clamscan', 'clamscan',
          '--stdout --disable-summary -r {}', [0], [1],
          qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
);

The way I understand it is that if amavisd can't find the daemon (which it
didn't in my case), or any other daemonized AV programs that are listed,
then it will use the "backup" scanners.  So, it will call clamscan for each
email that comes through.  I would assume that this would cause (possibly
significant) overhead on a busy mail server - but my mail server is not busy
by any stretch.

#amavisd debug

-snip-

Aug 29 12:34:43 taz amavisd[8702]: Found secondary av scanner Clam
Antivirus - clamscan at /usr/local/bin/clamscan
Aug 29 12:34:43 taz amavisd[8702]: Found secondary av scanner FRISK F-Prot
Antivirus at /usr/local/bin/f-prot
Aug 29 12:34:43 taz amavisd[8702]: SpamControl: initializing
Mail::SpamAssassin
debug: Score set 0 chosen.
debug: running in taint mode? no
Aug 29 12:34:43 taz amavisd[8702]: SpamControl: turning on SA
auto-whitelisting (AWL)

#cat /var/log/amavisd.log

-snip-

Aug 10 04:58:15 taz amavisd[4699]: (04699-03) WARN: all primary virus
scanners failed, trying backups
Aug 10 04:58:15 taz amavisd[4699]: (04699-03) Using Clam Antivirus -
clamscan: /usr/local/bin/clamscan --stdout --disable-summary -r
/var/amavisd/tmp/amavis-20030810T035957-04699/parts
Aug 10 04:58:15 taz amavisd[4699]: (04699-03) run_command: [10845]
/usr/local/bin/clamscan --stdout --disable-summary -r
/var/amavisd/tmp/amavis-20030810T035957-04699/parts </dev/null 2>&1
Aug 10 04:58:17 taz amavisd[4699]: (04699-03) run_av:
/usr/local/bin/clamscan status=0
(0 ),/var/amavisd/tmp/amavis-20030810T035957-04699/parts/part-00001: OK
Aug 10 04:58:17 taz amavisd[4699]: (04699-03) run_av: clean

Thanks,

Mark

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: Friday, August 29, 2003 12:01 PM
To: [EMAIL PROTECTED]
Subject: Re: RE: [Clamav-users] clam antivirus and spamassassin


I guess I am unsure how the command line as backup works.  I had configured
the amavisd.conf file in the av scanners.  This we both agree on does not
work.  I then commented it out and let the next group (backup scanners) to
find the clamd and run that way.  I am assuming that is what your talking
about.  Or are you talking about starting clamscan another way.  Sorry just
a little green on the clam.  I am wanting clam to scan the email.  Thanks.

thelv

---
[This E-mail scanned for viruses by Declude Virus]



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to