From owner-freebsd-ports-bugs@FreeBSD.ORG Sun May 15 04:10:11 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5B9D106566B for ; Sun, 15 May 2011 04:10:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B57368FC17 for ; Sun, 15 May 2011 04:10:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4F4A8o9095855 for ; Sun, 15 May 2011 04:10:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4F4A8Qt095854; Sun, 15 May 2011 04:10:08 GMT (envelope-from gnats) Resent-Date: Sun, 15 May 2011 04:10:08 GMT Resent-Message-Id: <201105150410.p4F4A8Qt095854@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Keith Gaughan Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD5F6106564A for ; Sun, 15 May 2011 04:01:40 +0000 (UTC) (envelope-from keith@lir.talideon.com) Received: from lir.talideon.com (lir.talideon.com [78.153.202.217]) by mx1.freebsd.org (Postfix) with ESMTP id 14E278FC14 for ; Sun, 15 May 2011 04:01:39 +0000 (UTC) Received: by lir.talideon.com (Postfix, from userid 1001) id A2AF222824; Sun, 15 May 2011 04:42:45 +0100 (IST) Message-Id: <20110515034245.A2AF222824@lir.talideon.com> Date: Sun, 15 May 2011 04:42:45 +0100 (IST) From: Keith Gaughan To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/157052: New port: mail/greyfix Lightweight greylistinig daemon for Postfix X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Keith Gaughan List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 May 2011 04:10:11 -0000 >Number: 157052 >Category: ports >Synopsis: New port: mail/greyfix Lightweight greylistinig daemon for Postfix >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun May 15 04:10:07 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Keith Gaughan >Release: FreeBSD 7.4-RELEASE i386 >Organization: >Environment: System: FreeBSD lir 7.4-RELEASE FreeBSD 7.4-RELEASE #0: Thu Feb 17 03:51:56 UTC 2011 root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: Greyfix is the greylisting policy daemon for Postfix, and uses Postfix's policy mechanism to enable greylisting with Postfix. >How-To-Repeat: >Fix: ---- Start of greyfix.shar ---- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # greyfix/ # greyfix/Makefile # greyfix/pkg-descr # greyfix/distinfo # greyfix/pkg-message # echo c - greyfix/ mkdir -p greyfix/ > /dev/null 2>&1 echo x - greyfix/Makefile sed 's/^X//' >greyfix/Makefile << 'fb30b0644405cabe75790ad93ae12067' X# New ports collection makefile for: greyfix X# Date created: 2011-05-14 X# Whom: Keith Gaughan X# X# $FreeBSD$ X# X XPORTNAME= greyfix XPORTVERSION= 0.3.9 XCATEGORIES= mail XMASTER_SITES= http://www.kim-minh.com/pub/greyfix/ X XMAINTAINER= k@stereochro.me XCOMMENT= A greylisting policy daemon for Postfix X XRUN_DEPENDS= postfix:${PORTSDIR}/mail/postfix X XUSE_BDB= yes XGNU_CONFIGURE= yes XCONFIGURE_ARGS= --with-berkeleydb-libdir=${BDB_LIB_DIR} \ X --with-berkeleydb-includedir=${BDB_INCLUDE_DIR} \ X --localstatedir=/var X XPLIST_FILES= sbin/greyfix X Xpost-patch: X @${REINPLACE_CMD} -e 's/-ldb/-l${BDB_LIB_NAME}/g' ${WRKSRC}/configure X @${REINPLACE_CMD} -e 's|datastatedir = \$$(localstatedir)/lib|datastatedir = $$(localstatedir)/db|g' ${WRKSRC}/Makefile.in X Xdo-install: X @${INSTALL_PROGRAM} ${WRKSRC}/greyfix ${PREFIX}/sbin X @${INSTALL} -d -onobody -m700 /var/db/greyfix X Xpost-install: X @${CAT} ${PKGMESSAGE} X X.include fb30b0644405cabe75790ad93ae12067 echo x - greyfix/pkg-descr sed 's/^X//' >greyfix/pkg-descr << 'e92dde751ff6cc3610cb3d545b9fa46d' XGreyfix is the greylisting policy daemon for Postfix written by Kim Minh XKaplan. Greyfix uses Postfix policy mechanism to enable greylisting with XPostfix. X XWWW: http://www.kim-minh.com/pub/greyfix/ e92dde751ff6cc3610cb3d545b9fa46d echo x - greyfix/distinfo sed 's/^X//' >greyfix/distinfo << '83acf6fa36202283a32340f28e0c1f36' XSHA256 (greyfix-0.3.9.tar.gz) = dee4428aef9b248b68799a640a85b44ffee0e9a3b2d2f16eed1bb41edad5f204 XSIZE (greyfix-0.3.9.tar.gz) = 79883 83acf6fa36202283a32340f28e0c1f36 echo x - greyfix/pkg-message sed 's/^X//' >greyfix/pkg-message << '068f2620ac6420192ff63224221a31aa' XEdit Postfix's master configuration file, master.cf, and add the following: X X greyfix unix - n n - - spawn X user=nobody argv=/usr/local/sbin/greyfix -/ 24 X X(The -/ argument specifies how much of the IP address to consider significant, Xin this case the first 24 bits.) X XEdit Postfix's main configuration file, main.cf and add the following: X X smtpd_recipient_restrictions = permit_mynetworks, X reject_unauth_destination, X check_policy_service unix:private/greyfix X XIf there is already a smtpd_recipient_restrictions configuration line you Xshould edit it rather than add a new one. The important part for Greyfix is Xthat you should add check_policy_service unix:private/greyfix to it. X XFinally have postfix reload its configuration with: X X /usr/local/rc.d/postfix reload 068f2620ac6420192ff63224221a31aa exit ---- End of greyfix.shar ---- >Release-Note: >Audit-Trail: >Unformatted: