# please use the .m4 file, this file is not maintained!
LOCAL_CONFIG
F{LocalIP} /etc/mail/localIP
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_addr} $)
R0			$@ ok		client_addr is 0 for sendmail -bs
R$={LocalIP}.$*		$@ ok					from here
R$*			$#error $@ 5.7.1 $: "550 we do not support relaying"
