Deleted Added
full compact
dnsblaccess.m4 (98121) dnsblaccess.m4 (157001)
1divert(-1)
2#
1divert(-1)
2#
3# Copyright (c) 2001-2002 Sendmail, Inc. and its suppliers.
3# Copyright (c) 2001-2002, 2005 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

--- 42 unchanged lines hidden (view full) ---

54dnl ## is used to reject the mail. If it returns 127.0.0.4, the
55dnl ## mail is processed as if there were no HACK line. If the
56dnl ## address returned is something else beginning with 127.*, the
57dnl ## mail is rejected with a default error message. If the
58dnl ## address returned does not begin 127, then the mail is
59dnl ## processed as if the HACK line were not present.
60
61divert(0)
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

--- 42 unchanged lines hidden (view full) ---

54dnl ## is used to reject the mail. If it returns 127.0.0.4, the
55dnl ## mail is processed as if there were no HACK line. If the
56dnl ## address returned is something else beginning with 127.*, the
57dnl ## mail is rejected with a default error message. If the
58dnl ## address returned does not begin 127, then the mail is
59dnl ## processed as if the HACK line were not present.
60
61divert(0)
62VERSIONID(`$Id: dnsblaccess.m4,v 1.5 2002/05/19 21:30:06 gshapiro Exp $')
62VERSIONID(`$Id: dnsblaccess.m4,v 1.6 2005/07/25 23:32:05 ca Exp $')
63ifdef(`_ACCESS_TABLE_', `dnl',
64 `errprint(`*** ERROR: dnsblaccess requires FEATURE(`access_db')
65')')
66ifdef(`_EDNSBL_R_',`dnl',`dnl
67define(`_EDNSBL_R_', `1')dnl ## prevent multiple redefines of the map.
68LOCAL_CONFIG
69# map for enhanced DNS based blacklist lookups
70Kednsbl dns -R A -a. -T<TMP> -r`'ifdef(`EDNSBL_TO',`EDNSBL_TO',`5')

--- 9 unchanged lines hidden (view full) ---

80dnl IPv6?
81R$-.$-.$-.$- $: <?> $(ednsbl $4.$3.$2.$1._EDNSBL_SRV_. $: OK $) <>$1.$2.$3.$4
82R<?>OK<>$* $: OKSOFAR
83R<?>$+<TMP><>$* $: <? <TMPF>>
84R<?>$* $- .<>$* <$(access _EDNSBL_KEY_`:'$1$2 $@$3 $@`'_EDNSBL_SRV_ $: ? $)> $1 <>$3
85R<?>$* <>$* $:<$(access _EDNSBL_KEY_`:' $@$2 $@`'_EDNSBL_SRV_ $: ? $)> <>$2
86ifelse(len(X`'_ARG3_),`1',
87`R<$*<TMPF>>$* $: TMPOK',
63ifdef(`_ACCESS_TABLE_', `dnl',
64 `errprint(`*** ERROR: dnsblaccess requires FEATURE(`access_db')
65')')
66ifdef(`_EDNSBL_R_',`dnl',`dnl
67define(`_EDNSBL_R_', `1')dnl ## prevent multiple redefines of the map.
68LOCAL_CONFIG
69# map for enhanced DNS based blacklist lookups
70Kednsbl dns -R A -a. -T<TMP> -r`'ifdef(`EDNSBL_TO',`EDNSBL_TO',`5')

--- 9 unchanged lines hidden (view full) ---

80dnl IPv6?
81R$-.$-.$-.$- $: <?> $(ednsbl $4.$3.$2.$1._EDNSBL_SRV_. $: OK $) <>$1.$2.$3.$4
82R<?>OK<>$* $: OKSOFAR
83R<?>$+<TMP><>$* $: <? <TMPF>>
84R<?>$* $- .<>$* <$(access _EDNSBL_KEY_`:'$1$2 $@$3 $@`'_EDNSBL_SRV_ $: ? $)> $1 <>$3
85R<?>$* <>$* $:<$(access _EDNSBL_KEY_`:' $@$2 $@`'_EDNSBL_SRV_ $: ? $)> <>$2
86ifelse(len(X`'_ARG3_),`1',
87`R<$*<TMPF>>$* $: TMPOK',
88`R<$*<TMPF>>$* $#error $@ 4.7.1 $: _EDNSBL_MSG_TMP_')
88`R<$*<TMPF>>$* $#error $@ 4.4.3 $: _EDNSBL_MSG_TMP_')
89R<$={Accept}>$* $: OKSOFAR
90R<ERROR:$-.$-.$-:$+> $* $#error $@ $1.$2.$3 $: $4
91R<ERROR:$+> $* $#error $: $1
92R<DISCARD> $* $#discard $: discard
93R<$*> $* $#error $@ 5.7.1 $: _EDNSBL_MSG_
94divert(-1)
89R<$={Accept}>$* $: OKSOFAR
90R<ERROR:$-.$-.$-:$+> $* $#error $@ $1.$2.$3 $: $4
91R<ERROR:$+> $* $#error $: $1
92R<DISCARD> $* $#discard $: discard
93R<$*> $* $#error $@ 5.7.1 $: _EDNSBL_MSG_
94divert(-1)