diff options
Diffstat (limited to 'contrib/sendmail/cf/feature/bestmx_is_local.m4')
-rw-r--r-- | contrib/sendmail/cf/feature/bestmx_is_local.m4 | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/contrib/sendmail/cf/feature/bestmx_is_local.m4 b/contrib/sendmail/cf/feature/bestmx_is_local.m4 index ec4c81c..22c8723 100644 --- a/contrib/sendmail/cf/feature/bestmx_is_local.m4 +++ b/contrib/sendmail/cf/feature/bestmx_is_local.m4 @@ -1,6 +1,7 @@ divert(-1) # -# Copyright (c) 1998 Sendmail, Inc. All rights reserved. +# Copyright (c) 1998, 1999 Sendmail, Inc. and its suppliers. +# All rights reserved. # Copyright (c) 1983 Eric P. Allman. All rights reserved. # Copyright (c) 1988, 1993 # The Regents of the University of California. All rights reserved. @@ -12,7 +13,7 @@ divert(-1) # divert(0) -VERSIONID(`@(#)bestmx_is_local.m4 8.14 (Berkeley) 1/25/1999') +VERSIONID(`$Id: bestmx_is_local.m4,v 8.24 1999/10/18 21:50:24 ca Exp $') divert(-1) define(_BESTMX_IS_LOCAL_, _ARG_) @@ -20,7 +21,7 @@ define(_BESTMX_IS_LOCAL_, _ARG_) LOCAL_CONFIG # turn on bestMX lookup table Kbestmx bestmx -ifelse(_ARG_, `', `dnl',` +ifelse(defn(`_ARG_'), `', `dnl',` # limit bestmx to these domains CB`'_ARG_') @@ -37,13 +38,14 @@ LOCAL_NET_CONFIG # low to medium traffic hosts. If you use the limited bestmx # by passing in a set of possible domains it will improve things. -ifelse(_ARG_, `', `dnl +ifelse(defn(`_ARG_'), `', `dnl # unlimited bestmx R$* < @ $* > $* $: $1 < @ $2 @@ $(bestmx $2 $) > $3', `dnl # limit bestmx to $=B R$* < @ $* $=B . > $* $: $1 < @ $2 $3 . @@ $(bestmx $2 $3 . $) > $4') -R$* $=O $* < @ $* @@ $=w . > $* $@ $>97 $1 $2 $3 -R< @ $* @@ $=w . > : $* $@ $>97 $3 -R$* < @ $* @@ $=w . > $* $#local $: $1 +R$* $=O $* < @ $* @@ $=w . > $* $@ $>Recurse $1 $2 $3 +R< @ $* @@ $=w . > : $* $@ $>Recurse $3 +dnl we cannot use _LOCAL_ here since it is defined too late +R$* < @ $* @@ $=w . > $* $@ $>CanonLocal < $1 > R$* < @ $* @@ $* > $* $: $1 < @ $2 > $4 |