# please use the .m4 file, this file is not maintained!
LOCAL_CONFIG
F{LocalNames} /etc/mail/LocalNames
F{RelayTo} -o /etc/mail/relayto

LOCAL_RULESETS
Scheck_rcpt
# make sure you have TABs here, not BLANKs! sendmail will complain otherwise...
R$+			$: $>3 $1				canonify
R$+			$: $(dequote $1 $)
R$-			$@ ok					to here
R$* % $*		$: relay attempt
R$* @ $* < @ $*.>	$: relay attempt
R$+ < @ $=w.>		$@ ok					to here
R$+ < @ $={RelayTo}.>	$@ ok		allow relay to there
R$+			$: $(dequote "" $&{client_name} $)
R$-			$@ ok			local names (unqualified)
R$*$={LocalNames}	$@ ok				from here
R$*			$#error $@ 5.7.1 $: "550 we do not support relaying"
