aboutsummaryrefslogtreecommitdiff
path: root/mail/postfix-policyd-weight
diff options
context:
space:
mode:
authorJean-Yves Lefort <jylefort@FreeBSD.org>2005-04-25 16:54:05 +0000
committerJean-Yves Lefort <jylefort@FreeBSD.org>2005-04-25 16:54:05 +0000
commiteb9435da523bf8da94071088791ce4099699e409 (patch)
tree55f1746df1155e6bb0b3710b5ba264253770e053 /mail/postfix-policyd-weight
parent3351cc203f9fa37cda9fc37c15ff98b554470de2 (diff)
downloadports-eb9435da523bf8da94071088791ce4099699e409.tar.gz
ports-eb9435da523bf8da94071088791ce4099699e409.zip
Policyd-weight is (as the name says) a weighted policyd for Postfix.
It uses HELO, MAIL FROM and the MTA IP address for scoring their correctness. It also uses definable DNSBLs in a scored fashion. WWW: http://robtone.mine.nu/postfix/ PR: ports/80329 Submitted by: Robert Felber <robtone@ek-muc.de>
Notes
Notes: svn path=/head/; revision=134153
Diffstat (limited to 'mail/postfix-policyd-weight')
-rw-r--r--mail/postfix-policyd-weight/Makefile29
-rw-r--r--mail/postfix-policyd-weight/distinfo2
-rw-r--r--mail/postfix-policyd-weight/files/pkg-message.in23
-rw-r--r--mail/postfix-policyd-weight/pkg-descr8
4 files changed, 62 insertions, 0 deletions
diff --git a/mail/postfix-policyd-weight/Makefile b/mail/postfix-policyd-weight/Makefile
new file mode 100644
index 000000000000..8ee2ca114e79
--- /dev/null
+++ b/mail/postfix-policyd-weight/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: postfix-policyd-weight
+# Date created: 25 Apr 2005
+# Whom: Robert Felber <robtone@ek-muc.de>
+#
+# $FreeBSD$
+#
+
+PORTNAME= policyd-weight
+PORTVERSION= 0.1.2
+CATEGORIES= mail
+MASTER_SITES= http://robtone.mine.nu/postfix/
+PKGNAMEPREFIX= postfix-
+
+MAINTAINER= robtone@ek-muc.de
+COMMENT= Weighted policy daemon for postfix
+
+RUN_DEPENDS= ${SITE_PERL}/mach/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS \
+ postfix:${PORTSDIR}/mail/postfix-current
+
+SUB_FILES= pkg-message
+PLIST_FILES= libexec/postfix/${PORTNAME}
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/libexec/postfix
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/mail/postfix-policyd-weight/distinfo b/mail/postfix-policyd-weight/distinfo
new file mode 100644
index 000000000000..4716dc1a5c37
--- /dev/null
+++ b/mail/postfix-policyd-weight/distinfo
@@ -0,0 +1,2 @@
+MD5 (policyd-weight-0.1.2.tar.gz) = 1547b7d9b937d1008f65b19e1ec57235
+SIZE (policyd-weight-0.1.2.tar.gz) = 8130
diff --git a/mail/postfix-policyd-weight/files/pkg-message.in b/mail/postfix-policyd-weight/files/pkg-message.in
new file mode 100644
index 000000000000..dfc5a9bf6fc6
--- /dev/null
+++ b/mail/postfix-policyd-weight/files/pkg-message.in
@@ -0,0 +1,23 @@
+**********
+*
+* To run this from %%PREFIX%%/etc/postfix/master.cf:
+
+policy unix - n n - - spawn
+ user=nobody argv=%%PREFIX%%/libexec/postfix/policyd-weight
+
+*
+* To use this from Postfix SMTPD, use in %%PREFIX%%/etc/postfix/main.cf
+*
+smtpd_recipient_restrictions =
+ ...
+ permit_mynetworks
+ ...
+ reject_unauth_destination
+ reject_unauth_pipelining
+ check_policy_service unix:private/policy
+ ...
+
+* NOTE: specify check_policy_service AFTER reject_unauth_destination
+* or else your system can become an open relay.
+*
+*************
diff --git a/mail/postfix-policyd-weight/pkg-descr b/mail/postfix-policyd-weight/pkg-descr
new file mode 100644
index 000000000000..ab8627b3d7f7
--- /dev/null
+++ b/mail/postfix-policyd-weight/pkg-descr
@@ -0,0 +1,8 @@
+Policyd-weight is (as the name says) a weighted policyd for Postfix.
+It uses HELO, MAIL FROM and the MTA IP address for scoring their
+correctness. It also uses definable DNSBLs in a scored fashion.
+
+WWW: http://robtone.mine.nu/postfix/
+
+- Robert Felber
+robtone@ek-muc.de