divert(-1) # # Copyright (c) 2000-2002 Sendmail, Inc. and its suppliers. # All rights reserved. # # By using this file, you agree to the terms and conditions set # forth in the LICENSE file which can be found at the top level of # the sendmail distribution. # # hacks disscussion's maillist - http://www.mta.org.ua/mailman/listinfo/sendmail-conf # # divert(0) ifdef(`_EDNSBL_R_',`dnl',`dnl VERSIONID(`$Id: enhdnsbl.m4,v 1.9 2002/05/19 21:27:29 gshapiro Exp $') LOCAL_CONFIG define(`_EDNSBL_R_',`')dnl ') divert(-1) define(`_EDNSBL_SRV_', `ifelse(len(X`'_ARG_),`1',`blackholes.mail-abuse.org',_ARG_)')dnl define(`_EDNSBL_MSG_', `ifelse(len(X`'_ARG2_),`1',`"550 Rejected: " $`'&{client_addr} " listed at '_EDNSBL_SRV_`"',`_ARG2_')')dnl define(`_EDNSBL_MSG_TMP_', `ifelse(_ARG3_,`t',`"451 Temporary lookup failure of " $`'&{client_addr} " at '_EDNSBL_SRV_`"',`_ARG3_')')dnl dnl _EDNSBL_MATCH_ = ARG4 или $+, если ARG4 не указан define(`_EDNSBL_MATCH_', `ifelse(len(X`'_ARG4_),`1',`$`'+',_ARG4_)')dnl divert(8) # DNS based IP address spam list _EDNSBL_SRV_ R$* $: $&{client_addr} R$-.$-.$-.$- $: $(dns_a $4.$3.$2.$1._EDNSBL_SRV_. $: OK $) ROK $: OKSOFAR dnl ifelse(len(X`'_ARG3_),`1', `R$+ $: TMPOK', `R$+ $#error $@ 4.7.1 $: _EDNSBL_MSG_TMP_') dnl R $* $: <$&{client_addr}> < $1 > R < $-.$-.$-.$- > < $* > $: <$(dns_txt $4.$3.$2.$1._EDNSBL_SRV_. $: _EDNSBL_MSG_ $)> < $5 > dnl R <$*> $* $: <_EDNSBL_MSG_> $2 dnl R <$*> <_EDNSBL_MATCH_> $#error $@ 5.7.1 $: $1 ifelse(len(X`'_ARG5_),`1',`dnl', `R <$*> <_ARG5_> $#error $@ 5.7.1 $: $1') ifelse(len(X`'_ARG6_),`1',`dnl', `R <$*> <_ARG6_> $#error $@ 5.7.1 $: $1') ifelse(len(X`'_ARG7_),`1',`dnl', `R <$*> <_ARG7_> $#error $@ 5.7.1 $: $1') ifelse(len(X`'_ARG8_),`1',`dnl', `R <$*> <_ARG8_> $#error $@ 5.7.1 $: $1') ifelse(len(X`'_ARG9_),`1',`dnl', `R <$*> <_ARG9_> $#error $@ 5.7.1 $: $1') divert(-1)