From owner-freebsd-questions@FreeBSD.ORG Wed Jun 1 17:33:29 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 7C8DA16A421 for ; Wed, 1 Jun 2005 17:33:29 +0000 (GMT) (envelope-from wmoran@potentialtech.com) Received: from internet.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3489343D6B for ; Wed, 1 Jun 2005 17:33:26 +0000 (GMT) (envelope-from wmoran@potentialtech.com) Received: from localhost (24-53-250-148.pittpa.adelphia.net [24.53.250.148]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by internet.potentialtech.com (Postfix) with ESMTP id D8BFD69A3E; Wed, 1 Jun 2005 13:33:25 -0400 (EDT) Date: Wed, 1 Jun 2005 13:33:25 -0400 From: Bill Moran To: Bart Silverstrim Message-Id: <20050601133325.6f5a11ac.wmoran@potentialtech.com> In-Reply-To: References: <0a6397740f09ea4ac7cce0b1bead3bde@chrononomicon.com> <20050601102246.3f199feb.wmoran@potentialtech.com> Organization: Potential Technologies X-Mailer: Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: postgrey question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2005 17:33:29 -0000 Bart Silverstrim wrote: > > On Jun 1, 2005, at 10:22 AM, Bill Moran wrote: > > > Bart Silverstrim wrote: > > > >> I've been looking into ways of improving our spam filtering. > >> Currently > >> I'm running postfix with amavisd-new (spamassassin and clamav), and > >> saw > >> an article on greylisting using postgrey. Turns out there's a port > >> for > >> it already in FreeBSD. > >> > >> I am still googling for info, but as I understand it the policy will > >> inject the message to another queue for postgrey to evaluate? If this > >> is true, what happens if I install it while still running the > >> postfix/amavis solution, which is also a double-queue system for > >> evaluation of messages? Will doing a make install for postgrey damage > >> the installation we currently have in place and working? > >> > >> Anyone else running postgrey with amavis on postfix, on FreeBSD? I'd > >> appreciate any feedback/experiences people have to offer. > > > > Yes, I'm running Postgrey with Amavis on FreeBSD. Works great. > > > > The short answer is that Postgrey plays nice with Amavis. > > > > The medium-length answer is that Postgrey simply becomes another check > > that is run. Postfix has a "policy service" hook that allows Postfix > > to consult with an outside program prior to accepting mail. This is > > a different process than the multi-queue system that Amavis uses, and > > the two co-exist nicely. Postgrey works more like the rbl checks than > > the multi-queue system that Amavis uses. > > > > The long answer is contained in the technical details of Postfix, and > > the Postfix source code, and I won't attempt to duplicate that here ;) > > Are there instructions you know of for the installation to get postgrey > to integrate with postfix from ports on FreeBSD? (Huh?) > > Um...let's rephrase. Is there a reference of what needs to be done > after running "make install" in the postgrey port directory to get > postfix to see it and use it, preferably without killing the working > amavisd? You'll need to put the following in /etc/rc.conf: postgrey_enable="YES" as specified by the port, and enter a line like: check_policy_service 172.0.0.1:10023 in /usr/local/etc/postfix/main.cf (please check the Postgrey docs, I'm pulling this from memory and I'm not 100% sure it's exactly right). -- Bill Moran Potential Technologies http://www.potentialtech.com