summaryrefslogtreecommitdiff
path: root/debian/cf/feature/rhsbl.m4
diff options
context:
space:
mode:
Diffstat (limited to 'debian/cf/feature/rhsbl.m4')
-rw-r--r--debian/cf/feature/rhsbl.m419
1 files changed, 10 insertions, 9 deletions
diff --git a/debian/cf/feature/rhsbl.m4 b/debian/cf/feature/rhsbl.m4
index 857ce58..c81c45c 100644
--- a/debian/cf/feature/rhsbl.m4
+++ b/debian/cf/feature/rhsbl.m4
@@ -1,6 +1,6 @@
divert(-1)
#
-# Copyright (c) 2001 Derek J. Balling
+# Copyright (c) 2002 Derek J. Balling
# All rights reserved.
#
# Permission to use granted for all purposes. If modifications are made
@@ -11,9 +11,13 @@ divert(-1)
# works on sendmail-8.12.x ... use on any other version may require tinkering
# by you the downloader.
#
+# Incorporates many changes by Sergey S. Mokryshev <mokr@mokr.net>
+#
+#
+
divert(0)
ifdef(`_RHSBL_R_',`dnl',`dnl
-VERSIONID(`$Id: rhsbl.m4,v 1.1 2001/08/27 15:41:15 dredd Exp $')
+VERSIONID(`$Id: rhsbl.m4,v 1.4 2002/06/01 14:05:06 dredd Exp $')
define(`_RHSBL_R_',`')
ifdef(`_DNSBL_R_',`dnl',`dnl
LOCAL_CONFIG
@@ -22,19 +26,16 @@ Kdnsbl host -T<TMP>')')
divert(-1)
define(`_RHSBL_SRV_', `_ARG_')dnl
define(`_RHSBL_MSG_', `ifelse(len(X`'_ARG2_),`1',`"550 Mail from " $`'&{RHS} " refused by blackhole site '_RHSBL_SRV_`"',`_ARG2_')')dnl
-define(`_RHSBL_MSG_TMP_', `ifelse(_ARG3_,`t',`"451 Temporary lookup failure of " $`'&{RHS} " at '_RHSBL_SRV_`"',`_ARG2_')')dnl
+define(`_RHSBL_MSG_TMP_', `ifelse(_ARG3_,`t',`"451 Temporary lookup failure of " $`'&{RHS} " at '_RHSBL_SRV_`"',`_ARG3_')')dnl
divert(8)
-LOCAL_RULESETS
-SLocal_check_mail
# DNS based RHS spam list _RHSBL_SRV_
R$+ $: <@> $>CanonAddr $&f
-R<@> $*<@$+.> $:<@>$1<@$2.>$|$>SearchList<+ rhs>$|<F:$1@$2><D:$2><>
-R$* $| <$={Accept}> $: OKSOFAR
+R<@> $*<@$+.> $: <@> <@$2.> $| $>SearchList <+ rhs> $| <F:$1@$2> <D:$2> <>
+R<@> $* $| <$={Accept}> $: OKSOFAR
R<@> $*<@$+.> $| $* $: <?> $(dnsbl $2._RHSBL_SRV_. $: OK $) $(macro {RHS} $@ $2 $)
R<@> $* $: OKSOFAR
-R<?>OK $: OKSOFAR
+R<?> OK $: OKSOFAR
ifelse(len(X`'_ARG3_),`1',
`R<?>$+<TMP> $: TMPOK',
`R<?>$+<TMP> $#error $@ 4.7.1 $: _RHSBL_MSG_TMP_')
R<?>$+ $#error $@ 5.7.1 $: _RHSBL_MSG_
-divert(-1)