From owner-freebsd-ports@FreeBSD.ORG Tue May 20 18:10:31 2008 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14EB01065671 for ; Tue, 20 May 2008 18:10:31 +0000 (UTC) (envelope-from garga@FreeBSD.org) Received: from capeta.freebsdbrasil.com.br (capeta.freebsdbrasil.com.br [201.48.151.3]) by mx1.freebsd.org (Postfix) with SMTP id EE4ED8FC16 for ; Tue, 20 May 2008 18:10:29 +0000 (UTC) (envelope-from garga@FreeBSD.org) Received: (qmail 77046 invoked from network); 20 May 2008 14:43:45 -0300 Received: by simscan 1.1.0 ppid: 77030, pid: 77037, t: 1.3473s scanners: clamav: 0.91.1/m: spam: 3.1.1 X-Spam-Checker-Version: SpamAssassin: -last, FreeBSD Brasil LTDA rulesets: Yes X-Spam-Status: No, hits=-2.0 required=3.7 Received: from unknown (HELO botelhor.bluepex.com) (garga@200.161.198.143) by capeta.freebsdbrasil.com.br with SMTP; 20 May 2008 14:43:44 -0300 Received: (qmail 265 invoked by uid 1001); 20 May 2008 14:43:53 -0300 Date: Tue, 20 May 2008 14:43:53 -0300 From: Renato Botelho To: Adrian Thearle Message-ID: <20080520174353.GA28040@bluepex.com> References: <482F89FA.4090408@thearle.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <482F89FA.4090408@thearle.com.au> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: ports@FreeBSD.org Subject: Re: FreeBSD Port: clamav-0.93 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 May 2008 18:10:31 -0000 On Sun, May 18, 2008 at 11:44:26AM +1000, Adrian Thearle wrote: > Hi > > I have made a change to the clamav-milter startup script that helps with > permissions on the socket. > I use postfix, not sure of sendmails requirements, but the socket needs to > be writeable by the postfix user. The attached patch adds three variables > that can be used to change the permissions and owner of the socket. I > checked for this functionality within clam itself, but could not find an > option. Hi, Clamav has 2 options that you can set on your /etc/make.conf: CLAMAVUSER CLAMAVGROUP You can safely set this to postfix user and group, and after this, socket and all other things needed will have the correct permissions. I will commit part of the change you proposed to clamav's port, the mode option, that is already present in clamav-devel port. After this commit, if you don't want to install clamav with postfix user, you can install with clamav user and group, change socket mode to group writeable and add postfix user to clamav's group. Regards -- Renato Botelho GnuPG Key: http://www.FreeBSD.org/~garga/pubkey.asc 186,000 miles per second: It isn't just a good idea, it's the law!