Hi All, I'm trying to install Postfix-2.0.6 + Amavisd-new-20021227.p2 + ClamAV-0.54 in a FreeBSD-4.8-STABLE box.
When I make a test logging via telnet on port 10024, it gives me an error from the Anti-virus: ----------------------------- May 5 11:06:17 salseiros.melim.com.br amavisd[94246]: (94246-01) Using Clam Antivirus-clamd: (built-in interface) May 5 11:06:17 salseiros.melim.com.br amavisd[94246]: (94246-01) Clam Antivirus-clamd: Connecting to socket /tmp/clamd May 5 11:06:17 salseiros.melim.com.br amavisd[94246]: (94246-01) Clam Antivirus-clamd: Sending CONTSCAN /usr/var/amavis/amavis-20030505T110547-94246/parts\n to UNIX socket /tmp/clamd May 5 11:06:17 salseiros.melim.com.br amavisd[94246]: (94246-01) Clam Antivirus-clamd result: /usr/var/amavis/amavis-20030505T110547-94246/parts: Can't stat() the file ERROR\n May 5 11:06:17 salseiros.melim.com.br amavisd[94246]: (94246-01) Clam Antivirus-clamd FAILED - unknown status: /usr/var/amavis/amavis-20030505T110547-94246/parts: Can't stat() the file ERROR\n May 5 11:06:17 salseiros.melim.com.br amavisd[94246]: (94246-01) prolong_timer after virus_scan: remaining time = 282 s May 5 11:06:17 salseiros.melim.com.br amavisd[94246]: (94246-01) TROUBLE in check_mail: virus_scan FAILED: virus_scan ALL FAILED: May 5 11:06:17 salseiros.melim.com.br amavisd[94246]: (94246-01) sending SMTP response: "451 4.5.0 Error in processing, id=94246-01, virus_scan FAILED: virus_scan ALL FAILED: " May 5 11:06:17 salseiros.melim.com.br amavisd[94246]: (94246-01) SMTP> 451 4.5.0 Error in processing, id=94246-01, virus_scan FAILED: virus_scan ALL FAILED: May 5 11:06:17 salseiros.melim.com.br amavisd[94246]: (94246-01) PRESERVING EVIDENCE in /usr/var/amavis/amavis-20030505T110547-94246 May 5 11:06:17 salseiros.melim.com.br amavisd[94246]: (94246-01) TIMING [total 37864 ms] - SMTP pre-MAIL: 8542 (23%), mkdir tempdir: 1 (0%), create email.txt: 1 (0%), SMTP DATA: 29229 (77%), body hash: 1 (0%), mkdir parts: 13 (0%), mime_decode: 36 (0%), AV-scan-1: 27 (0%), rundown: 14 (0%) May 5 11:10:59 salseiros.melim.com.br amavisd[94246]: (94246-01) Child task exceeded 300 seconds, abort (94246-01) Child task exceeded 300 seconds, abort ----------------------------- In the /usr/local/etc/amavisd.conf file, I changed the follow lines: ----------------------------- ### http://clamav.elektrapro.com/ ['Clam Antivirus-clamd', \&ask_daemon, ["CONTSCAN {}\n", '/tmp/clamd'], qr/\bOK$/, qr/\bFOUND$/, qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ], # ### http://clamav.elektrapro.com/ # ['Clam Antivirus - clamscan', 'clamscan', # '--stdout --disable-summary -r {}', [0], [1], # qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ], ----------------------------- If I comment clamd and uncomment clamscan, it works fine. The problem only happens with clamd. I'm trying to making the follow test: ----------------------------- # telnet localhost 10024 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 [127.0.0.1] ESMTP amavisd-new service ready mail from:<[EMAIL PROTECTED]> 250 2.1.0 Sender [EMAIL PROTECTED] OK rcpt to:<[EMAIL PROTECTED]> 250 2.1.5 Recipient [EMAIL PROTECTED] OK data 354 End data with <CR><LF>.<CR><LF> Test