ports/67371: amavisd 0.1 dosn't work with clamd.
Yoshisato YANAGISAWA
osho at pcc-software.org
Sun May 30 06:20:18 UTC 2004
>Number: 67371
>Category: ports
>Synopsis: amavisd 0.1 dosn't work with clamd.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat May 29 23:20:18 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator: Yoshisato YANAGISAWA
>Release: FreeBSD 4.10-RELEASE i386
>Organization:
PCC-Software.ORG
>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:
When amavisd use clamd(daemon version of clam antivirus),
it try to connect to TCP port 3310 of localhost,
while clamd is waiting at "/var/run/clamav/clamd" by default.
And, following error occures and it means amavisd counldn't use clamd.
"Virus scanner failure: Clamd - can't connect to daemon"
>How-To-Repeat:
Install security/clamav and security/amavisd.
And then use it.
>Fix:
Change amavisd source code of clamd resion with following patch.
diff -ru amavisd-0.1.orig/amavis/av/clamavd amavisd-0.1/amavis/av/clamavd
--- amavisd-0.1.orig/amavis/av/clamavd Sun May 30 14:26:26 2004
+++ amavisd-0.1/amavis/av/clamavd Sun May 30 14:30:55 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('/var/run/clamav/clamd');
if (defined $sock) {
$sock->print("SCAN $TEMPDIR/parts\n");
$sock->flush;
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list