From e09256cbd2ffa5475f6e7547a9ee0a603cd89dae Mon Sep 17 00:00:00 2001 From: Eric Allman Date: Thu, 26 Jan 1995 18:52:12 -0800 Subject: [PATCH] date and time created 95/01/26 10:52:12 by eric SCCS-vsn: usr.sbin/sendmail/cf/feature/bestmx_is_local.m4 8.1 --- .../sendmail/cf/feature/bestmx_is_local.m4 | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 usr/src/usr.sbin/sendmail/cf/feature/bestmx_is_local.m4 diff --git a/usr/src/usr.sbin/sendmail/cf/feature/bestmx_is_local.m4 b/usr/src/usr.sbin/sendmail/cf/feature/bestmx_is_local.m4 new file mode 100644 index 0000000000..e374d7c4dd --- /dev/null +++ b/usr/src/usr.sbin/sendmail/cf/feature/bestmx_is_local.m4 @@ -0,0 +1,31 @@ +divert(-1) +# +# Copyright (c) 1983 Eric P. Allman +# Copyright (c) 1988, 1993 +# The Regents of the University of California. All rights reserved. +# +# %sccs.include.redist.sh% +# + +divert(0) +VERSIONID(`@(#)bestmx_is_local.m4 8.1 (Berkeley) %G%') +divert(-1) + +LOCAL_CONFIG +Kbestmx bestmx + +LOCAL_NET_CONFIG + +# If we are the best MX for a site, then we want to accept +# its mail as local. We assume we've already weeded out mail to +# UUCP sites which are connected to us, which should also have +# listed us as their best MX. +# +# 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. + +R$* < @ $* > $* $: $1 < @ $2 @@ $(bestmx $2 $) > $3 +R$* < @ $* @@ $=w . > $* $#local $: $1 +R$* < @ $* @@ $* > $* $: $1 < @ $2 > $4 -- 2.20.1