Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 May 2004 15:18:55 +0900 (JST)
From:      Yoshisato YANAGISAWA <osho@pcc-software.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/67371: amavisd 0.1 dosn't work with clamd.
Message-ID:  <20040530061855.5CFF238302@moe.pcc-software.org>
Resent-Message-ID: <200405300620.i4U6KIvm075446@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040530061855.5CFF238302>