Deleted Added
full compact
enhdnsbl.m4 (157001) enhdnsbl.m4 (159609)
1divert(-1)
2#
1divert(-1)
2#
3# Copyright (c) 2000-2002, 2005 Sendmail, Inc. and its suppliers.
3# Copyright (c) 2000-2002, 2005, 2006 Sendmail, Inc. and its suppliers.
4# All rights reserved.
5#
6# By using this file, you agree to the terms and conditions set
7# forth in the LICENSE file which can be found at the top level of
8# the sendmail distribution.
9#
10#
11
4# All rights reserved.
5#
6# By using this file, you agree to the terms and conditions set
7# forth in the LICENSE file which can be found at the top level of
8# the sendmail distribution.
9#
10#
11
12ifelse(defn(`_ARG_'), `',
13 `errprint(`*** ERROR: missing argument for FEATURE(`enhdnsbl')')')
12divert(0)
13ifdef(`_EDNSBL_R_',`dnl',`dnl
14divert(0)
15ifdef(`_EDNSBL_R_',`dnl',`dnl
14VERSIONID(`$Id: enhdnsbl.m4,v 1.10 2005/07/25 20:56:53 ca Exp $')
16VERSIONID(`$Id: enhdnsbl.m4,v 1.11 2006/03/31 19:56:16 ca Exp $')
15LOCAL_CONFIG
16define(`_EDNSBL_R_',`')dnl
17# map for enhanced DNS based blacklist lookups
18Kednsbl dns -R A -a. -T<TMP> -r`'ifdef(`EDNSBL_TO',`EDNSBL_TO',`5')
19')
20divert(-1)
17LOCAL_CONFIG
18define(`_EDNSBL_R_',`')dnl
19# map for enhanced DNS based blacklist lookups
20Kednsbl dns -R A -a. -T<TMP> -r`'ifdef(`EDNSBL_TO',`EDNSBL_TO',`5')
21')
22divert(-1)
21define(`_EDNSBL_SRV_', `ifelse(len(X`'_ARG_),`1',`blackholes.mail-abuse.org',_ARG_)')dnl
23define(`_EDNSBL_SRV_', `_ARG_')dnl
22define(`_EDNSBL_MSG_', `ifelse(len(X`'_ARG2_),`1',`"550 Rejected: " $`'&{client_addr} " listed at '_EDNSBL_SRV_`"',`_ARG2_')')dnl
23define(`_EDNSBL_MSG_TMP_', `ifelse(_ARG3_,`t',`"451 Temporary lookup failure of " $`'&{client_addr} " at '_EDNSBL_SRV_`"',`_ARG3_')')dnl
24define(`_EDNSBL_MATCH_', `ifelse(len(X`'_ARG4_),`1',`$`'+',_ARG4_)')dnl
25divert(8)
26# DNS based IP address spam list _EDNSBL_SRV_
27R$* $: $&{client_addr}
28R$-.$-.$-.$- $: <?> $(ednsbl $4.$3.$2.$1._EDNSBL_SRV_. $: OK $)
29R<?>OK $: OKSOFAR

--- 15 unchanged lines hidden ---
24define(`_EDNSBL_MSG_', `ifelse(len(X`'_ARG2_),`1',`"550 Rejected: " $`'&{client_addr} " listed at '_EDNSBL_SRV_`"',`_ARG2_')')dnl
25define(`_EDNSBL_MSG_TMP_', `ifelse(_ARG3_,`t',`"451 Temporary lookup failure of " $`'&{client_addr} " at '_EDNSBL_SRV_`"',`_ARG3_')')dnl
26define(`_EDNSBL_MATCH_', `ifelse(len(X`'_ARG4_),`1',`$`'+',_ARG4_)')dnl
27divert(8)
28# DNS based IP address spam list _EDNSBL_SRV_
29R$* $: $&{client_addr}
30R$-.$-.$-.$- $: <?> $(ednsbl $4.$3.$2.$1._EDNSBL_SRV_. $: OK $)
31R<?>OK $: OKSOFAR

--- 15 unchanged lines hidden ---