140266059SGregory Neil Shapirodivert(-1) 240266059SGregory Neil Shapiro# 35dd76dd0SGregory Neil Shapiro# Copyright (c) 2000-2002 Proofpoint, Inc. and its suppliers. 440266059SGregory Neil Shapiro# All rights reserved. 540266059SGregory Neil Shapiro# 640266059SGregory Neil Shapiro# By using this file, you agree to the terms and conditions set 740266059SGregory Neil Shapiro# forth in the LICENSE file which can be found at the top level of 840266059SGregory Neil Shapiro# the sendmail distribution. 940266059SGregory Neil Shapiro# 1040266059SGregory Neil Shapiro# 1140266059SGregory Neil Shapirodivert(0) 12*4313cc83SGregory Neil ShapiroVERSIONID(`$Id: compat_check.m4,v 1.5 2013-11-22 20:51:11 ca Exp $') 1340266059SGregory Neil Shapirodivert(-1) 1440266059SGregory Neil Shapiroifdef(`_ACCESS_TABLE_', `', 1540266059SGregory Neil Shapiro`errprint(`FEATURE(`compat_check') requires FEATURE(`access_db') 1640266059SGregory Neil Shapiro')') 1740266059SGregory Neil Shapiro 1840266059SGregory Neil ShapiroLOCAL_RULESETS 1940266059SGregory Neil ShapiroScheck_compat 2040266059SGregory Neil Shapiro# look up the pair of addresses 2140266059SGregory Neil Shapiro# (we use <@> as the separator. Note this in the map too!) 2240266059SGregory Neil ShapiroR< $+ > $| $+ $: $1 $| $2 2340266059SGregory Neil ShapiroR$+ $| < $+ > $: $1 $| $2 2440266059SGregory Neil ShapiroR$+ $| $+ $: <$(access Compat:$1<@>$2 $:OK $)> 2540266059SGregory Neil ShapiroR$* $| $* $@ ok 2640266059SGregory Neil Shapiro# act on the result, 2740266059SGregory Neil Shapiro# it must be one of the following... anything else will be allowed.. 28605302a5SGregory Neil Shapirodnl for consistency with the other two even though discard does not take a 2940266059SGregory Neil Shapirodnl reply code 3040266059SGregory Neil ShapiroR< DISCARD:$* > $#discard $: $1 " - discarded by check_compat" 3140266059SGregory Neil ShapiroR< DISCARD $* > $#discard $: $1 " - discarded by check_compat" 3240266059SGregory Neil ShapiroR< TEMP:$* > $#error $@ TEMPFAIL $: $1 " error from check_compat. Try again later" 3340266059SGregory Neil ShapiroR< ERROR:$* > $#error $@ UNAVAILABLE $: $1 " error from check_compat" 34