Date: Sun, 6 Jun 2004 15:45:28 +0900 (JST) From: Yoshisato YANAGISAWA <osho@pcc-software.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/67621: Amavisd doesn't work with clamd(ClamAV Daemon). Message-ID: <20040606064528.5493038302@moe.pcc-software.org> Resent-Message-ID: <200406060650.i566o4ZQ030758@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040606064528.5493038302>