#
# nosourceroute: generate rules to reject source routed mails via this host
#

REVISION_ID='@(#)nosourceroute	3.1 () 2/11/95'

#|# generate rules not to relay source routed mails (yes/no)
#|#REJECT_SOURCE_ROUTE_RELAY=no

: ${REJECT_SOURCE_ROUTE_RELAY=no}
if [ "$REJECT_SOURCE_ROUTE_RELAY" != no ]
then

	if [ "$REVISION_ID_LIST" ]
	then
		REVISION_ID_LIST="$REVISION_ID_LIST\\
# $REVISION_ID"
	else
		REVISION_ID_LIST="# $REVISION_ID"
	fi

	if [ "$CF_FORMAT" = V1 -o "$CF_FORMAT" = NMTC ]
	then

REJECTSOURCEROUTERULE='\
# do not relay source routed mails\
R$*<@$+>$*		$#error$: Source Routing Rejected'

	else

REJECTSOURCEROUTERULE='\
# do not relay source routed mails\
R$*<@$+>$*		$#error$@UNAVAILABLE$: "552 Source Routing Rejected"'

	fi

fi
