ports/81618: [NEW PORT] mail/postfix-gps-devel: Greylist Policy Service for postfix

Dennis K Jensen freebsd at freesbee.dk
Sun May 29 11:10:02 UTC 2005


>Number:         81618
>Category:       ports
>Synopsis:       [NEW PORT] mail/postfix-gps-devel: Greylist Policy Service 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 29 11:10:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Dennis K Jensen
>Release:        FreeBSD 5.3-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD freesbee.dk 5.3-RELEASE-p2 FreeBSD 5.3-RELEASE-p2 #0: Sun Jan  2 13:58:32 CET
>Description:
This program is an implementation of a greylist policy service for
postfix (2.1.0 and later).  Greylisting is a concept to reduce the
amount of UCE ('spam') by technical means.  Tests on production
systems show that greylisting is hugely effective.

Read more about greylisting on:
WWW: http://www.greylisting.org and
WWW: http://projects.puremagic.com/greylisting/whitepaper.html

Also, please consult homepage of this program:
WWW: http://mimo.gn.apc.org/gps/

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- postfix-gps-devel-1.004.shar begins here ---
# 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:
#
#	postfix-gps-devel
#	postfix-gps-devel/files
#	postfix-gps-devel/files/patch-configure.in
#	postfix-gps-devel/files/patch-src__pmatcher.h
#	postfix-gps-devel/files/patch-src__Makefile.am
#	postfix-gps-devel/Makefile
#	postfix-gps-devel/distinfo
#	postfix-gps-devel/pkg-descr
#	postfix-gps-devel/pkg-message
#	postfix-gps-devel/pkg-plist
#
echo c - postfix-gps-devel
mkdir -p postfix-gps-devel > /dev/null 2>&1
echo c - postfix-gps-devel/files
mkdir -p postfix-gps-devel/files > /dev/null 2>&1
echo x - postfix-gps-devel/files/patch-configure.in
sed 's/^X//' >postfix-gps-devel/files/patch-configure.in << 'END-of-postfix-gps-devel/files/patch-configure.in'
X--- configure.in.orig	Fri Sep 17 07:55:55 2004
X+++ configure.in	Mon Sep 20 01:48:31 2004
X@@ -20,9 +20,6 @@
X 
X AC_LANG_CPLUSPLUS
X AC_PROG_CXX
X-AM_PROG_LIBTOOL
X-AC_PROG_LD
X-AM_PROG_LD
X dnl AC_CHECK_LIB(dbi, libdbi)
X 
X AC_HAVE_HEADERS(syslog.h)
END-of-postfix-gps-devel/files/patch-configure.in
echo x - postfix-gps-devel/files/patch-src__pmatcher.h
sed 's/^X//' >postfix-gps-devel/files/patch-src__pmatcher.h << 'END-of-postfix-gps-devel/files/patch-src__pmatcher.h'
X--- src/pmatcher.h.orig	Sun Nov 21 05:37:49 2004
X+++ src/pmatcher.h	Sun Jan  9 16:50:54 2005
X@@ -24,6 +24,7 @@
X #include <string>
X //getnameinfo
X #include <netdb.h>
X+#include <sys/socket.h>
X //
X #include "regexcpp.h"
X #include "triplet.h"
END-of-postfix-gps-devel/files/patch-src__pmatcher.h
echo x - postfix-gps-devel/files/patch-src__Makefile.am
sed 's/^X//' >postfix-gps-devel/files/patch-src__Makefile.am << 'END-of-postfix-gps-devel/files/patch-src__Makefile.am'
X--- src/Makefile.am.orig	Sun Nov 21 01:41:36 2004
X+++ src/Makefile.am	Sun Jan  9 16:45:10 2005
X@@ -9,5 +9,5 @@
X noinst_HEADERS = configreader.h db.h read.h triplet.h defs.h strtrim.h cfg.h \
X 		wlmodule.h wldb.h tmplwlmod.h dbdefs.h doxygen.h wlcacheddb.h dbiquote.h \
X 		regexcpp.h pmatcher.h action.h
X-gps_LDADD = -lpthread -ldbi -ldl
X+gps_LDADD = -ldbi ${PTHREAD_LIBS}
X METASOURCES = AUTO
END-of-postfix-gps-devel/files/patch-src__Makefile.am
echo x - postfix-gps-devel/Makefile
sed 's/^X//' >postfix-gps-devel/Makefile << 'END-of-postfix-gps-devel/Makefile'
X# New ports collection makefile for:	postfix-gps-devel
X# Date created:				29 May 2005
X# Whom:					Dennis K. Jensen <freebsd at signout.dk>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	gps
XPORTVERSION=	1.004
XCATEGORIES=	mail security
XMASTER_SITES=	http://mimo.gn.apc.org/gps/
XPKGNAMEPREFIX=	postfix-
XPKGNAMESUFFIX=	-devel
XDISTNAME=	gps-${PORTVERSION}
X
XMAINTAINER=	freebsd at signout.dk
XCOMMENT=	Greylist Policy Service for postfix
X
XLIB_DEPENDS=	dbi.0:${PORTSDIR}/databases/libdbi
XRUN_DEPENDS=	${LOCALBASE}/lib/dbd:${PORTSDIR}/databases/libdbi-drivers
X
XSCRIPT_FILES=	gps-maintain.pl gps-db-update.pl
X
XWRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
X
XUSE_AUTOCONF_VER=	259
XUSE_AUTOMAKE_VER=	19
XUSE_GCC=	3.4
XCONFIGURE_ARGS=	--bindir=${PREFIX}/libexec --includedir=${PREFIX}/include
XCONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS} -I${PREFIX}/include"	\
X		CXXFLAGS="${CXXFLAGS} -I${PREFIX}/include"	\
X		LDFLAGS="${LDFLAGS} -L${PREFIX}/lib"
X
Xpre-configure:
X	@cd ${WRKSRC} && ${ACLOCAL}
Xpost-install:
X	@${INSTALL_DATA} ${WRKSRC}/etc/gps.conf ${PREFIX}/etc/gps.conf-dist
X.for f in ${SCRIPT_FILES}
X	@${INSTALL_SCRIPT} ${WRKSRC}/${f} ${PREFIX}/libexec
X.endfor
X	@${SED} -e 's:%%PREFIX%%:${PREFIX}:g' ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-postfix-gps-devel/Makefile
echo x - postfix-gps-devel/distinfo
sed 's/^X//' >postfix-gps-devel/distinfo << 'END-of-postfix-gps-devel/distinfo'
XMD5 (gps-1.004.tar.gz) = 9a0a0a80535c13f4a4486f23dbc212af
XSIZE (gps-1.004.tar.gz) = 348669
END-of-postfix-gps-devel/distinfo
echo x - postfix-gps-devel/pkg-descr
sed 's/^X//' >postfix-gps-devel/pkg-descr << 'END-of-postfix-gps-devel/pkg-descr'
XThis program is an implementation of a greylist policy service for
Xpostfix (2.1.0 and later).  Greylisting is a concept to reduce the
Xamount of UCE ('spam') by technical means.  Tests on production
Xsystems show that greylisting is hugely effective.
X
XRead more about greylisting on:
XWWW: http://www.greylisting.org and
XWWW: http://projects.puremagic.com/greylisting/whitepaper.html
X
XAlso, please consult homepage of this program:
XWWW: http://mimo.gn.apc.org/gps/
END-of-postfix-gps-devel/pkg-descr
echo x - postfix-gps-devel/pkg-message
sed 's/^X//' >postfix-gps-devel/pkg-message << 'END-of-postfix-gps-devel/pkg-message'
X========================================================================
XConfiguration Instructions
X
XYou should now create a database for gps, and grant a dedicated database
Xuser appropriate privilege to access it.  Please copy gps.conf-dist found
Xin your local etc directory to gps.conf and do some changes to reflect
Xthe database and user.  gps will automatically create the tables that
Xis needed for greylisting.
X
XAfter you have all these done, modify the postfix master.cf and include
Xgps as policy server.  We recommend that you use Unix domain socket
Xsince this can be used even within a jail(8) environment.  An example
Xentry is:
X
Xpolicy	unix	-	n	n	-	-	spawn
X	user=nobody	argv=%%PREFIX%%/libexec/gps -v %%PREFIX%%/etc/gps.conf
X
XIn order to make policy server effect on your postfix installation,
Xyou should add something like:
X
X	check_policy_service unix:private/policy
X
XInto your smtpd_sender_restrictions configuration in postfix's main.cf.
X
XAlso, you may want to include the following line into your crontab so
Xsystem will automatically do daily cleanup of the greylist table:
X
X27 * * * * %%PREFIX%%/libexec/gps-maintain.pl -delete -eq 0 -age 86400 %%PREFIX%%/etc/gps.conf
X55 3 * * * %%PREFIX%%/libexec/gps-maintain.pl -delete -age 3110400 %%PREFIX%%/etc/gps.conf
X========================================================================
END-of-postfix-gps-devel/pkg-message
echo x - postfix-gps-devel/pkg-plist
sed 's/^X//' >postfix-gps-devel/pkg-plist << 'END-of-postfix-gps-devel/pkg-plist'
Xetc/gps.conf-dist
Xlibexec/gps
Xlibexec/gps-maintain.pl
Xlibexec/gps-db-update.pl
END-of-postfix-gps-devel/pkg-plist
exit
--- postfix-gps-devel-1.004.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list