diff options
Diffstat (limited to 'usr.sbin/sendmail/cf/feature/bestmx_is_local.m4')
-rw-r--r-- | usr.sbin/sendmail/cf/feature/bestmx_is_local.m4 | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/usr.sbin/sendmail/cf/feature/bestmx_is_local.m4 b/usr.sbin/sendmail/cf/feature/bestmx_is_local.m4 index 23dff8c93eef..80c0ebb82cb1 100644 --- a/usr.sbin/sendmail/cf/feature/bestmx_is_local.m4 +++ b/usr.sbin/sendmail/cf/feature/bestmx_is_local.m4 @@ -34,12 +34,16 @@ divert(-1) # divert(0) -VERSIONID(`@(#)bestmx_is_local.m4 8.2 (Berkeley) 10/29/95') +VERSIONID(`@(#)bestmx_is_local.m4 8.3 (Berkeley) 5/11/96') divert(-1) LOCAL_CONFIG +# turn on bestMX lookup table Kbestmx bestmx +# limit bestmx to these domains +CB`'_ARG_ + LOCAL_NET_CONFIG # If we are the best MX for a site, then we want to accept @@ -50,9 +54,13 @@ LOCAL_NET_CONFIG # Warning: this may generate a lot of extra DNS traffic -- a # lower cost method is to list all the expected best MX hosts # in $=w. This should be fine (and easier to administer) for -# low to medium traffic hosts. +# 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 unlimited bestmx R$* < @ $* > $* $: $1 < @ $2 @@ $(bestmx $2 $) > $3 +ifelse(_ARG_, `', `#', `')dnl limit bestmx to $=B +R$* < @ $* $=B > $* $: $1 < @ $2 @@ $(bestmx $2 $3 $) > $4 R$* $=O $* < @ $* @@ $=w . > $* $@ $>97 $1 $2 $3 R$* < @ $* @@ $=w . > $* $#local $: $1 R$* < @ $* @@ $* > $* $: $1 < @ $2 > $4 |