1divert(-1)
2#
3# Copyright (c) 1983 Eric P. Allman
4# Copyright (c) 1988, 1993
5#	The Regents of the University of California.  All rights reserved.
6#
7# %sccs.include.redist.sh%
8#
9
10divert(0)
11VERSIONID(`@(#)bestmx_is_local.m4	8.1 (Berkeley) 01/26/95')
12divert(-1)
13
14LOCAL_CONFIG
15Kbestmx bestmx
16
17LOCAL_NET_CONFIG
18
19# If we are the best MX for a site, then we want to accept
20# its mail as local.  We assume we've already weeded out mail to
21# UUCP sites which are connected to us, which should also have
22# listed us as their best MX.
23#
24# Warning: this may generate a lot of extra DNS traffic -- a
25# lower cost method is to list all the expected best MX hosts
26# in $=w.  This should be fine (and easier to administer) for
27# low to medium traffic hosts.
28
29R$* < @ $* > $*			$: $1 < @ $2 @@ $(bestmx $2 $) > $3
30R$* < @ $* @@ $=w . > $*	$#local $: $1
31R$* < @ $* @@ $* > $*		$: $1 < @ $2 > $4
32