summaryrefslogtreecommitdiff
path: root/mail/postgrey/files
diff options
context:
space:
mode:
authorkim <kim>2004-12-22 15:51:38 +0000
committerkim <kim>2004-12-22 15:51:38 +0000
commit42657b6b3efb7a702d70296315a2107ca175511c (patch)
tree5a67a89426172a4f76b52a8cc957db76c97ba553 /mail/postgrey/files
parentee56ef12c9dc3576bdfaa471e0663d66c9b4e0cc (diff)
downloadpkgsrc-42657b6b3efb7a702d70296315a2107ca175511c.tar.gz
Postgrey is a Postfix policy server implementing greylisting developed
by David Schweikert. Compared to greylist.pl included with Postfix (2.1.1), Postgrey has the following additional features: - Safer database handling: Postgrey does use the logging and transaction features of BerkeleyDB to maximize reliability. - Automatical cleaning of the database: Entries that were last seen more than a defined amount of time get removed automatically.
Diffstat (limited to 'mail/postgrey/files')
-rw-r--r--mail/postgrey/files/postgrey.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/mail/postgrey/files/postgrey.sh b/mail/postgrey/files/postgrey.sh
new file mode 100644
index 00000000000..a0c78ae341c
--- /dev/null
+++ b/mail/postgrey/files/postgrey.sh
@@ -0,0 +1,25 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: postgrey.sh,v 1.1.1.1 2004/12/22 15:51:38 kim Exp $
+#
+
+# PROVIDE: postgrey
+# BEFORE: mail
+# REQUIRE: DAEMON LOGIN
+
+. /etc/rc.subr
+
+name="@PKGBASE@"
+rcvar=$name
+pidfile="@VARBASE@/run/${name}.pid"
+command_interpreter="@PERL@"
+command="@PREFIX@/sbin/postgrey"
+command_args="-d --pidfile=${pidfile}"
+required_files="
+ @PKG_SYSCONFDIR@/postgrey_whitelist_clients
+ @PKG_SYSCONFDIR@/postgrey_whitelist_recipients
+"
+@PKGBASE@_flags=${@PKGBASE@_flags-"-i 2525"}
+
+load_rc_config $name
+run_rc_command "$1"