diff options
| author | Martin Wilke <miwi@FreeBSD.org> | 2009-08-14 19:55:13 +0000 |
|---|---|---|
| committer | Martin Wilke <miwi@FreeBSD.org> | 2009-08-14 19:55:13 +0000 |
| commit | b093bafb0d34d81c54792d2bf8d251dd158d35e0 (patch) | |
| tree | 4df7ff2f78aada09cdba7dee151a42181031e804 /mail/postfix-postfwd/Makefile | |
| parent | a5a5ac0b49a727e51e1264a7f29cb31cf5589c19 (diff) | |
Notes
Diffstat (limited to 'mail/postfix-postfwd/Makefile')
| -rw-r--r-- | mail/postfix-postfwd/Makefile | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/mail/postfix-postfwd/Makefile b/mail/postfix-postfwd/Makefile index 45398497f492..95d7687eac63 100644 --- a/mail/postfix-postfwd/Makefile +++ b/mail/postfix-postfwd/Makefile @@ -6,7 +6,7 @@ # PORTNAME= postfwd -PORTVERSION= 1.13 +PORTVERSION= 1.14 CATEGORIES= mail MASTER_SITES= http://www.${PORTNAME}.org/old/ PKGNAMEPREFIX= postfix- @@ -23,14 +23,20 @@ PLIST_FILES= bin/${PORTNAME} etc/${PORTNAME}.conf.sample SUB_FILES= pkg-message -USE_RC_SUBR= ${PORTNAME} +USE_RC_SUBR= ${PORTNAME} USE_PERL5_RUN= yes NO_BUILD= yes MAN8= ${PORTNAME}.8 +OPTIONS= MRCPT "Sahil's patch for max recipients per time window" off + .include <bsd.port.pre.mk> +.if !defined(WITHOUT_MRCPT) +EXTRA_PATCHES= ${PATCHDIR}/extra-patch-sbin-postfwd +.endif + do-install: @${INSTALL_SCRIPT} ${WRKSRC}/sbin/${PORTNAME} ${PREFIX}/bin/ @${INSTALL_DATA} ${WRKSRC}/etc/${PORTNAME}.cf.sample ${PREFIX}/etc/${PORTNAME}.conf.sample @@ -46,5 +52,18 @@ post-install: @${INSTALL_DATA} ${WRKSRC}/tools/${PORTEXAMPLES} ${EXAMPLESDIR} .endif @${CAT} ${PKGMESSAGE} +.if !defined(WITHOUT_MRCPT) + @${ECHO_MSG} + @${ECHO_MSG} The mrcpt\(\) command works like the rate\(\) command, + @${ECHO_MSG} except that the rate counter is incremented by the + @${ECHO_MSG} request\'s recipient_count. To do this reliably, + @${ECHO_MSG} call postfwd from smtpd_data_restrictions. + @${ECHO_MSG} + @${ECHO_MSG} Example: + @${ECHO_MSG} " id=MAX_RECIPIENTS; protocol_state=DATA; \\ " + @${ECHO_MSG} " client_address==192.168.1.1; \\ " + @${ECHO_MSG} " action==mrcpt(\$$\$$client_address/5/3600/450 4.7.1 max 5 recip/hour) " + @${ECHO_MSG} +.endif .include <bsd.port.post.mk> |
