ports/67621: Amavisd doesn't work with clamd(ClamAV Daemon).
Yoshisato YANAGISAWA
osho at pcc-software.org
Sun Jun 6 06:50:05 UTC 2004
>Number: 67621
>Category: ports
>Synopsis: Amavisd doesn't work with clamd(ClamAV Daemon).
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Jun 05 23:50:04 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator: Yoshisato YANAGISAWA
>Release: FreeBSD 4.10-RELEASE i386
>Organization:
>Environment:
System: FreeBSD moe.pcc-software.org 4.10-RELEASE FreeBSD 4.10-RELEASE #20: Fri May 28 06:46:57 JST 2004 osho at moe.pcc-software.org:/usr/obj/usr/src/sys/MOE i386
>Description:
[1] When amavisd.conf is wrote not to run anti-virus software
except clamd, clamd doesn't run and cause following error.
"All virus scanners failed - mail requeued (message-id=<20040606145041.61fef741.osho at pcc-software.org>)"
It must be caused by that socket for clamd doesn't made.
[2] Even if correct [1] problem, amavisd ignore virus warning
by clamd.
>How-To-Repeat:
[1] Just install clamav and amavisd, and remove antivirus settings
except clamd from amavisd.conf.
[2] fix [1] problem.
>Fix:
replace amavisd/files/patch-amavis-av-clamavd into
following patch.
--- amavis/av/clamavd.orig Tue Feb 25 11:42:54 2003
+++ amavis/av/clamavd Sun Jun 6 15:29:11 2004
@@ -5,7 +5,7 @@
if ($clamd) {
do_log(2,"Using clamd");
- my $sock = IO::Socket::INET->new('127.0.0.1:3310');
+ my $sock = IO::Socket::UNIX->new(Peer => '/var/run/clamav/clamd');
if (defined $sock) {
$sock->print("SCAN $TEMPDIR/parts\n");
$sock->flush;
@@ -15,7 +15,7 @@
if ($output =~ /FOUND$/) { # no errors, a virus was found
$scanner_errors = 0;
@virusname = ($output =~ /: (.+) FOUND/g);
- return 1; # 'true' indicates virus found and stops further checking
+ do_virus($output);
} elsif ($output =~ /OK$/) { # no errors, no viruses
$scanner_errors = 0;
} elsif ($output =~ /ERROR$/) {
I am sorry not to notice [1] and [2] problem at last time.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list