From owner-freebsd-questions@FreeBSD.ORG Fri Jan 2 09:45:27 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 2197E16A4CE for ; Fri, 2 Jan 2004 09:45:27 -0800 (PST) Received: from ajax.achean.com (ajax.achean.com [212.87.82.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E9DF43D39 for ; Fri, 2 Jan 2004 09:45:20 -0800 (PST) (envelope-from jon.mercer@achean.com) Received: from menelaus.office.achean.com (dsl-217-155-191-93.zen.co.uk [217.155.191.93]) by ajax.achean.com (8.12.9p2/8.12.9) with ESMTP id i02HioiD015318 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 2 Jan 2004 17:44:51 GMT (envelope-from jon.mercer@achean.com) Received: from [127.0.0.1] (localhost [127.0.0.1])i02Hiiii056098 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 2 Jan 2004 17:44:44 GMT (envelope-from jon.mercer@achean.com) From: Jon Mercer To: Greg Bernard In-Reply-To: References: Content-Type: text/plain; charset=iso-8859-15 Organization: Achean Limited Message-Id: <1073065484.786.11.camel@menelaus.office.achean.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Fri, 02 Jan 2004 17:44:44 +0000 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV version 'clamd / ClamAV version 0.65', clamav-milter version '0.60p' X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61-achean_mailfilter_v1.00 X-Spam-Checker-Version: SpamAssassin 2.61-achean_mailfilter_v1.00 (1.212.2.1-2003-12-09-exp) on ajax.achean.com cc: Free BSD Questions list Subject: Re: Clamd & sendmail ?? 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: Fri, 02 Jan 2004 17:45:27 -0000 I had this problem and traced it down to the fact that the default location where clamav puts its socket is wrong. After editing /usr/local/etc/clamav.conf so that LocalSocket looked like: # Path to the local socket. The daemon doesn't change the mode of the # created file (portability reasons). You may want to create it in a directory # which is only accessible for a user running daemon. LocalSocket /var/run/clamav/clamd.sock And the permissions on that directory are sorted (eg. clamav:clamav) it all worked out. Additionally, the logfile holds a wealth of info about what is going on. Hope this helps, Jon Mercer On Fri, 2004-01-02 at 16:27, Greg Bernard wrote: > Hello, > > I am trying to have sendmail used clamd in order to filter incoming mail for > viruses on my mail server. > > I have configured clamav following the instruction found here : > http://linux-sxs.org/administration/clamav-milter.html > > I have modified my settings in order to have sendmail parsed these messages > with smthg like this added in my .mc file : > > > dnl ## milter clamav > INPUT_MAIL_FILTER(`clmilter',`S=local:/var/clamav/clmilter.sock, F=, T=S:4m; > R:4m')dnl > define(`confINPUT_MAIL_FILTERS', `clmilter') > > > When I start sendmail and tries to send a test mail containing a virus > signature, I have a "send: Broken pipe" message... > > > Has anyone got a working way to use clam as a filter for incoming mail with > sendmail... ?? > > > Thanks. > > > ________________________________________________ > «?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§ > ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ > Gregober ---> PGP ID --> 0x1BA3C2FD > omni_osx_ml @at@ todoo.biz > ________________________________________________ > «?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§ > ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- +----------------------------------------------------------------+ | ___ ___ | | / | | / | | / /| | / / | | / / | | _____ / / ____ ____ ___ | | / /__| | / ___ \ / /__ / __ \ / _ | | /__ | | / ____ | / / /_/ / ___ \ / /_/ / / / | | / ___ \ | | / / | | / / __ / / \ \ | ___/__ / / / / / / \ \ | | / / | | | |__/ / / / / / | \__/ / | |_| | / / / / | | /__\ /___\ \_____/ /__| /__| \_____/ \__/|_| /__| /__| | | | | www.achean.com | | ============== | | Jon Mercer jon.mercer@achean.com | | | | Mobile 07973 256496 | | | | Tel. 0117 9561211 | | | | Fax 0117 9565637 | +----------------------------------------------------------------+