I see the documentation does not include anything on using ClamAV with amavisd-new.
The most recent version, amavisd-new-20021116, includes direct support for Clamscan. All that is needed is to ensure that clamscan is somewhere on the path, as seen by amavisd. This is defined in amavisd.conf with the $path variable. On default installations, no configuration should be needed. Alternatively, the clamscan section of @av_scanners (found in amavisd.conf) can be edited to give the full path to clamscan: | ['Clam Antivirus', '/path/to/clamscan', | '--stdout --disable-summary -r {}', [0], [1], | qr/(?m)^.*?: (?!Infected Archive)(.*) FOUND$/ ], Support for Clamd via TCP is easily added. Having configured clamd to listen on a TCP socket, say 3310, add the following section to @av_scanners: | ['ClamAV ScannerDaemon (TCP)', | \&Amavis::AV::ask_oav, '127.0.0.1:3310', | qr/(?m)OK$/, qr/(?m)FOUND$/, qr/(?m): (.+) FOUND/ ], It is also necessary to comment out the clamscan section, otherwise amavisd will scan with both clamd and clamscan, which is clearly rather pointless! And a quick note on clamd(8) - the see also section does not mention clamdscan(1). -- Chris Hastie --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]