### The following features can be used with sendmail 8.8 or later. ###

# The  check_relay  ruleset is called after a connection is accepted.
# It is passed
#
#	client.host.name $| client.host.address
#
# where $| is a metacharacter separating the two parts. This ruleset
# can reject connections from various locations.

CHECK_RELAY='\
Scheck_relay\
R $* $| 130.54.0.0		$@ OK\
R $*kyoto-u.ac.jp $| $*		$@ OK\
R $* $| $*			$# error $: no permission'


# The check_mail ruleset is passed the user name parameter of the SMTP
# MAIL command. It can accept or reject the address.

CHECK_MAIL='\
Scheck_mail\
R nobody @ $*			$# error $: rejected from nobody'


# The check_rcpt ruleset is passed the user name parameter of the SMTP
# RCPT command. It can accept or reject the address.

CHECK_RCPT='\
Scheck_rcpt\
R nobody @ $*			$# error $: rejected to nobody'


# The check_compat ruleset is passed
#
#	sender-address $| recipient-address
#
# where $| is a metacharacter separating the addresses.
# It can accept or reject mail transfer between these two addresses
# much like the checkcompat() function.

CHECK_COMPAT='\
Scheck_compat\
R $* @ rem $| $* @ lcl		$# error $: rejected to local from remote\
R $* @ lcl $| $* @ rem		$# error $: rejected to remote from local\
R $* $| $*			$@ OK'
