From owner-freebsd-questions@FreeBSD.ORG Thu Mar 11 10:28:26 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E472916A4CE for ; Thu, 11 Mar 2004 10:28:25 -0800 (PST) Received: from theatre.msu.edu (theatre.msu.edu [35.8.69.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AF9F43D3F for ; Thu, 11 Mar 2004 10:28:25 -0800 (PST) (envelope-from sagejona@theatre.msu.edu) Received: from theatre.msu.edu (c-67-167-140-34.client.comcast.net [67.167.140.34]) (authenticated bits=0) by theatre.msu.edu (8.12.11/8.12.11) with ESMTP id i2BISGhW070849 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 11 Mar 2004 13:28:16 -0500 (EST) (envelope-from sagejona@theatre.msu.edu) Message-ID: <4050AFBE.5040700@theatre.msu.edu> Date: Thu, 11 Mar 2004 13:28:14 -0500 From: "Jonathan T. Sage" Organization: MSU Dept of Theatre User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ed Budd References: <20040311030414.D951@Gina.esfm.ipn.mx> <20040311073017.7d7e40f1.ebudd@grokking.org> In-Reply-To: <20040311073017.7d7e40f1.ebudd@grokking.org> X-Enigmail-Version: 0.82.4.0 X-Enigmail-Supports: pgp-inline, pgp-mime X-Phone: +1-517-974-1428 X-WWW-Home-Page: http://theatre.msu.edu X-PGP-Key-Figerprint: 182C CF3F 93A9 1DAA 2EBE D4D5 A159 96D9 452E A7F1 X-IM: AIM(jonathantsage,spartyman), ICQ(9587621), YIM(wisesage98) Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig79D0F7F1E4D843205CA28E85" X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on www.theatre.msu.edu X-Virus-Scanned: clamd / ClamAV version devel-20040309, clamav-milter version 0.67j cc: mrspock@esfm.ipn.mx cc: freebsd-questions@freebsd.org Subject: Re: ClamAV 0.67, SendMail, FreeBSD 5.2.1-RELEASE-p1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2004 18:28:26 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig79D0F7F1E4D843205CA28E85 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Ed Budd wrote: > On Thu, 11 Mar 2004 03:52:18 -0600 (CST) > Eduardo Viruena Silva wrote: > >>1. Compile the port: >> cd /usr/ports/security/clamav >> make WITH_MILTER=yes install >> ---- >> there is a problem with this port: >> it does not compile, the line 384 of >> /usr/ports/security/clamav/work/clamav-0.67/clamav-milter/clama >> v-milter.c has a problem, it requires to include >> "malloc.h" which is obsolete and is reduced >> to issue a error message saying "stdlib.h >> must be included instead. >> I changed this line to include "stdlib.h" >> and make the port again. It installed it. >> --- > > Don't know why you'd have to do this. I've got similar combo > (FBSD 5.2.1,sendmail, clamav, clamav-milter) to you and never had to do > anything like this. Maybe you cvsup'ed at a bad time or your ports tree > needs cleaning/updating??. I can verify this as happening. Tried 2 nights ago, however clamav-devel works fine. (-current) >>3. Modify /etc/rc.conf: >> clamav_clamd_enable="YES" >> clamav_clamd_socket="/var/run/clamav/clamd.sock" >> clamav_freshclam_enable="YES" >> clamav_milter_enable="YES" >> clamav_milter_socket="/var/run/clamav/clamd.sock" >> > > > > This is the same as mine except I don't include the socket path in > rc.conf. I don't think you need to unless you're putting it in a > non-default location (which yours is). Also, you've got two entries here > for the same socket file. I don't think this is correct. On > my system, clamav-milter uses/var/run/clamav/clmilter.sock and it's > created via the sendmail config - not through rc.conf. Try taking that > last line out and trying again. > bingo. clamd and clamav-milter do NOT use the same socket. clamav-milter needs to make it's own which sendmail talks to, then it in turn talks to clamd. > >>---- >>INPUT_MAIL_FILTER(`spamassassin', >>`S=local:/var/run/spamass-milter.sock, F=, T=C:15m;S:4m;R:4m;E:10m') >>define(`confMILTER_LOG_LEVEL', 7) >> >>INPUT_MAIL_FILTER(`clamav',`S=local:/var/run/clamav/clamd.sock, F=, >>T=S:4m;R:4m')dnl >>define(`confINPUT_MAIL_FILTERS',`spamassassin,clamav')---- >> you're gonna run into trouble here mostly because you are trying to connect to the clamd socket when you *should* be connecting to the clamav-milter socket. (two different sockets, per above) hope this helps, let me know if ya need any more pointers. FWIW - set both these up 2 days ago, and damn are they cool :) ~j -- "Yesterday upon the stair I saw a man who wasn't there, he wasn't there again today, oh how i wish he'd go away" Rev. Jonathan T. Sage Lighting / Set Designer Professional Web Design [HTTP://theatre.msu.edu] [sagejona@theatre.msu.edu] [See Headers for Contact Info] --------------enig79D0F7F1E4D843205CA28E85 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAUK/CoVmW2UUup/ERAkz6AJsGAFX9kfVWyeOyiUmdlRHaOB2TXwCaAl1b LkxtnUwGvQorJh0oz8k3yk8= =Sh7Y -----END PGP SIGNATURE----- --------------enig79D0F7F1E4D843205CA28E85--