Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 May 2011 04:42:45 +0100 (IST)
From:      Keith Gaughan <k@stereochro.me>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/157052: New port: mail/greyfix Lightweight greylistinig daemon for Postfix
Message-ID:  <20110515034245.A2AF222824@lir.talideon.com>
Resent-Message-ID: <201105150410.p4F4A8Qt095854@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <k@stereochro.me>
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 <bsd.port.mk>
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110515034245.A2AF222824>