enhdnsbl.m4 revision 90792
18027Swollmandivert(-1) 28027Swollman# 38027Swollman# Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers. 48027Swollman# All rights reserved. 58027Swollman# 68027Swollman# By using this file, you agree to the terms and conditions set 78027Swollman# forth in the LICENSE file which can be found at the top level of 88027Swollman# the sendmail distribution. 98027Swollman# 108027Swollman# 118027Swollman 128027Swollmandivert(0) 138027Swollmanifdef(`_EDNSBL_R_',`dnl',`dnl 148027SwollmanVERSIONID(`$Id: enhdnsbl.m4,v 1.7 2001/07/22 18:02:52 ca Exp $') 158027SwollmanLOCAL_CONFIG 168027Swollmandefine(`_EDNSBL_R_',`')dnl 178027Swollman# map for enhanced DNS based blacklist lookups 188027SwollmanKednsbl dns -R A -a. -T<TMP> -r`'ifdef(`EDNSBL_TO',`EDNSBL_TO',`5') 198027Swollman') 208027Swollmandivert(-1) 218027Swollmandefine(`_EDNSBL_SRV_', `ifelse(len(X`'_ARG_),`1',`blackholes.mail-abuse.org',_ARG_)')dnl 228027Swollmandefine(`_EDNSBL_MSG_', `ifelse(len(X`'_ARG2_),`1',`"550 Mail from " $`'&{client_addr} " refused by blackhole site '_EDNSBL_SRV_`"',`_ARG2_')')dnl 238027Swollmandefine(`_EDNSBL_MSG_TMP_', `ifelse(_ARG3_,`t',`"451 Temporary lookup failure of " $`'&{client_addr} " at '_EDNSBL_SRV_`"',`_ARG3_')')dnl 248027Swollmandefine(`_EDNSBL_MATCH_', `ifelse(len(X`'_ARG4_),`1',`$`'+',_ARG4_)')dnl 258027Swollmandivert(8) 268027Swollman# DNS based IP address spam list _EDNSBL_SRV_ 278027SwollmanR$* $: $&{client_addr} 288027SwollmanR$-.$-.$-.$- $: <?> $(ednsbl $4.$3.$2.$1._EDNSBL_SRV_. $: OK $) 298027SwollmanR<?>OK $: OKSOFAR 308027Swollmanifelse(len(X`'_ARG3_),`1', 318027Swollman`R<?>$+<TMP> $: TMPOK', 328027Swollman`R<?>$+<TMP> $#error $@ 4.7.1 $: _EDNSBL_MSG_TMP_') 338027SwollmanR<?>_EDNSBL_MATCH_ $#error $@ 5.7.1 $: _EDNSBL_MSG_ 348027Swollmanifelse(len(X`'_ARG5_),`1',`dnl', 358027Swollman`R<?>_ARG5_ $#error $@ 5.7.1 $: _EDNSBL_MSG_') 368027Swollmanifelse(len(X`'_ARG6_),`1',`dnl', 378027Swollman`R<?>_ARG6_ $#error $@ 5.7.1 $: _EDNSBL_MSG_') 388027Swollmanifelse(len(X`'_ARG7_),`1',`dnl', 398027Swollman`R<?>_ARG7_ $#error $@ 5.7.1 $: _EDNSBL_MSG_') 408027Swollmanifelse(len(X`'_ARG8_),`1',`dnl', 418027Swollman`R<?>_ARG8_ $#error $@ 5.7.1 $: _EDNSBL_MSG_') 428027Swollmanifelse(len(X`'_ARG9_),`1',`dnl', 438027Swollman`R<?>_ARG9_ $#error $@ 5.7.1 $: _EDNSBL_MSG_') 448027Swollmandivert(-1) 458027Swollman