3 # Copyright (c) 2000-2002 Sendmail, Inc. and its suppliers.
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.
10 #ident "%Z%%M% %I% %E% SMI"
13 VERSIONID(`$Id: compat_check.m4,v 1.4 2002/02/26 22:15:31 gshapiro Exp $')
15 ifdef(`_ACCESS_TABLE_', `',
16 `errprint(`FEATURE(`compat_check') requires FEATURE(`access_db')
21 # look up the pair of addresses
22 # (we use <@> as the separator. Note this in the map too!)
23 R< $+ > $| $+ $: $1 $| $2
24 R$+ $| < $+ > $: $1 $| $2
25 R$+ $| $+ $: <$(access Compat:$1<@>$2 $:OK $)>
28 # it must be one of the following... anything else will be allowed..
29 dnl for consistency with the other two even though discard does not take a
31 R< DISCARD:$* > $#discard $: $1 " - discarded by check_compat"
32 R< DISCARD $* > $#discard $: $1 " - discarded by check_compat"
33 R< TEMP:$* > $#error $@ TEMPFAIL $: $1 " error from check_compat. Try again later"
34 R< ERROR:$* > $#error $@ UNAVAILABLE $: $1 " error from check_compat"