diff options
-rw-r--r-- | mail/Makefile | 1 | ||||
-rw-r--r-- | mail/postfix-policyd-weight/Makefile | 29 | ||||
-rw-r--r-- | mail/postfix-policyd-weight/distinfo | 2 | ||||
-rw-r--r-- | mail/postfix-policyd-weight/files/pkg-message.in | 23 | ||||
-rw-r--r-- | mail/postfix-policyd-weight/pkg-descr | 8 |
5 files changed, 63 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile index b12ccadd55da..4082192fd67a 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -358,6 +358,7 @@ SUBDIR += postfix-current SUBDIR += postfix-gps SUBDIR += postfix-policyd-spf + SUBDIR += postfix-policyd-weight SUBDIR += postfix1 SUBDIR += postfix21 SUBDIR += postfixadmin 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 |