diff options
author | Andrej Kacian <ticho@gentoo.org> | 2005-04-29 00:28:44 +0000 |
---|---|---|
committer | Andrej Kacian <ticho@gentoo.org> | 2005-04-29 00:28:44 +0000 |
commit | f0e8dc5bc4641c556c4f9dfc1b66baaf20dc5cbe (patch) | |
tree | 2939d04b0543c3ab5b7d1e3c12eea7bba331ec28 /mail-filter/postgrey | |
parent | mark ~ppc (diff) | |
download | gentoo-2-f0e8dc5bc4641c556c4f9dfc1b66baaf20dc5cbe.tar.gz gentoo-2-f0e8dc5bc4641c556c4f9dfc1b66baaf20dc5cbe.tar.bz2 gentoo-2-f0e8dc5bc4641c556c4f9dfc1b66baaf20dc5cbe.zip |
Initial import. Closes #59691.
(Portage version: 2.0.51.20-r5)
Diffstat (limited to 'mail-filter/postgrey')
-rw-r--r-- | mail-filter/postgrey/ChangeLog | 10 | ||||
-rw-r--r-- | mail-filter/postgrey/Manifest | 6 | ||||
-rw-r--r-- | mail-filter/postgrey/files/digest-postgrey-1.21 | 1 | ||||
-rw-r--r-- | mail-filter/postgrey/files/postgrey.conf | 47 | ||||
-rw-r--r-- | mail-filter/postgrey/files/postgrey.rc | 39 | ||||
-rw-r--r-- | mail-filter/postgrey/metadata.xml | 6 | ||||
-rw-r--r-- | mail-filter/postgrey/postgrey-1.21.ebuild | 73 |
7 files changed, 182 insertions, 0 deletions
diff --git a/mail-filter/postgrey/ChangeLog b/mail-filter/postgrey/ChangeLog new file mode 100644 index 000000000000..75ca3530bb5f --- /dev/null +++ b/mail-filter/postgrey/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for mail-filter/postgrey +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/ChangeLog,v 1.1 2005/04/29 00:28:44 ticho Exp $ + +*postgrey-1.21 (28 Apr 2005) + + 28 Apr 2005; Andrej Kacian <ticho@gentoo.org> +files/postgrey.conf, + +files/postgrey.rc, +metadata.xml, +postgrey-1.21.ebuild: + Initial import. Ebuild provided by steveb <tp22a@softhome.net>, bug #59691. + diff --git a/mail-filter/postgrey/Manifest b/mail-filter/postgrey/Manifest new file mode 100644 index 000000000000..8fddd8857ff5 --- /dev/null +++ b/mail-filter/postgrey/Manifest @@ -0,0 +1,6 @@ +MD5 76c6079f6eca8d824431066c277089a9 ChangeLog 121 +MD5 97640b63104544cebd37ca40384a056b metadata.xml 304 +MD5 398c1974a7d455eb21dfb6b5c3f23c0b postgrey-1.21.ebuild 1826 +MD5 3447d54487d83d885ade1fa55b3e9fd5 files/postgrey.rc 1000 +MD5 2197c50ab163af184389dbf781d6bc21 files/digest-postgrey-1.21 64 +MD5 8f132f4f3b2a0fef3e209ada3db701b0 files/postgrey.conf 1524 diff --git a/mail-filter/postgrey/files/digest-postgrey-1.21 b/mail-filter/postgrey/files/digest-postgrey-1.21 new file mode 100644 index 000000000000..7ecd83a4b1e7 --- /dev/null +++ b/mail-filter/postgrey/files/digest-postgrey-1.21 @@ -0,0 +1 @@ +MD5 1274e073be5178445e0892a9dcc6fe98 postgrey-1.21.tar.gz 25934 diff --git a/mail-filter/postgrey/files/postgrey.conf b/mail-filter/postgrey/files/postgrey.conf new file mode 100644 index 000000000000..09d7b7251d15 --- /dev/null +++ b/mail-filter/postgrey/files/postgrey.conf @@ -0,0 +1,47 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/files/postgrey.conf,v 1.1 2005/04/29 00:28:44 ticho Exp $ + +# Config file for /etc/init.d/postgrey + + +# HOST +# What IP to listen to? +# Leave to localhost unless you know what you do. +POSTGREY_HOST="127.0.0.1" + + +# PORT +# What PORT to listen to? +# +POSTGREY_PORT="10030" + + +# PID +# Postgrey pid file. +# Do not change, if you don't know what this is! +# +POSTGREY_PID="/var/run/postgrey.pid" + + +# Additional Postgrey options +# +# -v, --verbose increase verbosity level +# --delay=N greylist for N seconds (default: 300) +# --max-age=N delete entries older than N days since the last time +# that they have been seen (default: 30) +# --retry-window=N allow only N days for the first retrial (default: 2) +# append 'h' if you want to specify it in hours +# --greylist-action=A if greylisted, return A to Postfix (default: DEFER_IF_PERMIT) +# --greylist-text=TXT response when a mail is greylisted +# (default: Greylisted for %s seconds) +# --lookup-by-subnet strip the last 8 bits from IP addresses (default) +# --lookup-by-host do not strip the last 8 bits from IP addresses +# --whitelist-clients=FILE default: /etc/postfix/postgrey_whitelist_clients +# --whitelist-recipients=FILE default: /etc/postfix/postgrey_whitelist_recipients +# +# Note that the --whitelist-x options can be specified multiple times, and that +# per default /etc/postfix/postgrey_whitelist_clients.local is also read, so +# that you can put there local entries. +# +POSTGREY_OPTS="" diff --git a/mail-filter/postgrey/files/postgrey.rc b/mail-filter/postgrey/files/postgrey.rc new file mode 100644 index 000000000000..e0ed88eb32b3 --- /dev/null +++ b/mail-filter/postgrey/files/postgrey.rc @@ -0,0 +1,39 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/files/postgrey.rc,v 1.1 2005/04/29 00:28:44 ticho Exp $ + +depend() { + need net + before mta + use mta +} + +checkconfig() { +if [ -z "${POSTGREY_PORT}" ] || [ -z "${POSTGREY_HOST}" ] || [ -z "${POSTGREY_PID}" ] + then + einfo "The following entries are missing in /etc/conf.d/postgrey:" + [ -z "${POSTGREY_HOST}" ] && einfo " - POSTGREY_HOST" + [ -z "${POSTGREY_PORT}" ] && einfo " - POSTGREY_PORT" + [ -z "${POSTGREY_PID}" ] && einfo " - POSTGREY_PID" + eerror "You need to setup variables in /etc/conf.d/postgrey first" + return 1 + fi +} +start() { + checkconfig || return 1 + ebegin "Starting Postgrey" + start-stop-daemon --start --quiet --background \ + --exec /usr/sbin/postgrey -- \ + --inet=${POSTGREY_HOST}:${POSTGREY_PORT} \ + --daemonize \ + --pidfile=${POSTGREY_PID} \ + ${POSTGREY_OPTS} + eend ${?} +} + +stop() { + ebegin "Stopping Postgrey" + start-stop-daemon --stop --quiet --pidfile ${POSTGREY_PID} + eend ${?} +} diff --git a/mail-filter/postgrey/metadata.xml b/mail-filter/postgrey/metadata.xml new file mode 100644 index 000000000000..21093ed01a48 --- /dev/null +++ b/mail-filter/postgrey/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>net-mail</herd> + <longdescription>Postgrey is a Postfix policy server implementing greylisting developed by David Schweikert at the ISG.EE.</longdescription> +</pkgmetadata> diff --git a/mail-filter/postgrey/postgrey-1.21.ebuild b/mail-filter/postgrey/postgrey-1.21.ebuild new file mode 100644 index 000000000000..b495ce8bf634 --- /dev/null +++ b/mail-filter/postgrey/postgrey-1.21.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/postgrey-1.21.ebuild,v 1.1 2005/04/29 00:28:44 ticho Exp $ + +inherit eutils + +DESCRIPTION="Postgrey is a Postfix policy server implementing greylisting" +SRC_URI="http://isg.ee.ethz.ch/tools/${PN}/pub/${P}.tar.gz + http://isg.ee.ethz.ch/tools/${PN}/pub/old/${P}.tar.gz" +HOMEPAGE="http://isg.ee.ethz.ch/tools/postgrey/" +LICENSE="GPL-2" +SLOT="0" +IUSE="" +DEPEND="" +RDEPEND=">=dev-lang/perl-5.6.0 + dev-perl/net-server + dev-perl/IO-Multiplex + dev-perl/BerkeleyDB + dev-perl/Net-DNS + >=sys-libs/db-4.1 + >=mail-mta/postfix-2.1.0" + +KEYWORDS="~x86" + +pkg_setup() { + enewgroup postgrey + enewuser postgrey -1 /bin/false /dev/null postgrey +} + +src_install () { + cd ${S} + + # postgrey data/DB in /var + diropts -m0770 -o postgrey -g postgrey + dodir /var/spool/postfix/postgrey + keepdir /var/spool/postfix/postgrey + fowners postgrey:postgrey /var/spool/postfix/postgrey + fperms 0770 /var/spool/postfix/postgrey + + # postgrey binary + dosbin postgrey + dosbin contrib/postgreyreport + + # postgrey data in /etc/postfix + insinto /etc/postfix + insopts -o root -g postgrey -m 0640 + doins postgrey_whitelist_clients postgrey_whitelist_recipients + + # documentation + dodoc Changes COPYING README + + # init.d + conf.d files + newinitd ${FILESDIR}/postgrey.rc postgrey + newconfd ${FILESDIR}/postgrey.conf postgrey +} + +pkg_postinst() { + echo + einfo "To make use of greylisting, please update your postfix config:" + einfo + + einfo "Add \"check_policy_service inet:127.0.0.1:10030\" to" + einfo "smtpd_recipient restrictions setting in your /etc/postfix/main.cf" + einfo "and restart postfix." + + einfo "Also remember to make the daemon start durig system boot:" + einfo " rc-update add postgrey default" + echo + ewarn "Read the documentation for more info (perldoc postgrey)." + echo + ebeep 5 + epause 5 +} |