From owner-freebsd-questions@FreeBSD.ORG Fri Apr 23 10:28:49 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 A853816A4CE for ; Fri, 23 Apr 2004 10:28:49 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54BF143D2F for ; Fri, 23 Apr 2004 10:28:49 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i3NHSmQX098522; Fri, 23 Apr 2004 12:28:48 -0500 (CDT) (envelope-from dan) Date: Fri, 23 Apr 2004 12:28:48 -0500 From: Dan Nelson To: antwort@schmalzbauer.de Message-ID: <20040423172847.GD4463@dan.emsphone.com> References: <200404231127.44314.h@schmalzbauer.de> <200404231348.13056.h@schmalzbauer.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200404231348.13056.h@schmalzbauer.de> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-questions@freebsd.org Subject: Re: Jail and spammass-milter (sendmail/spamassassin) 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, 23 Apr 2004 17:28:49 -0000 In the last episode (Apr 23), Harald Schmalzbauer said: > Am Freitag, 23. April 2004 11:27 schrieb Harald Schmalzbauer: > > Dear all, > > > > is it possible that spamass-milter doesn't work in a jail? > > Ok, I verified that it's working with the same configuration under > -stabel outside a jail, but not on -current inside a jail. > > Is there any way I can make it work? I think the problem is with the > local socket between sendmail and spamass-milter. > > Is there a sysctl to allow local sockets or is it possible to tell > sendmail to connect via localhost (127.0.0.1)? If your jail is not chrooted at /, "/var/run/spamass-milter.sock" will point to different locations inside and outside the jail, so you'll have to use inet sockets to communicate. Actually if you have a single jail, you can configure the outer processes to use /usr/myjail/var/run/spamass-milter.sock and the jailed processes to use /var/run/spamass-milter.sock, but that won't work if you have multiple jails. The sendmail syntax is "inet:port@{hostname|ip-address}", so you can do something like this in your .mc file: INPUT_MAIL_FILTER(`spamassassin',`S=inet:2525@127.0.0.1, F=, T=C:15m;S:4m;R:4m;E:10m')dnl and then run spamass-milter with "-p inet:2525@127.0.0.1". -- Dan Nelson dnelson@allantgroup.com