# @(#)samples/generic/routers	1.3 8/8/92 16:40:26
#
# Jim Jagielski 1/12/93
#

# inet_addrs and inet_hosts are only defined when BSD networking exists

# inet_addrs - match domain literals containing literal IP addresses
#
# For example, [128.103.1.1] will match harvard.harvard.edu on the internet.
# The library routine gethostbyaddr(3N) will be called to see if a reverse
# mapping to the cononical hostname is available.
inet_addrs:
	driver=gethostbyaddr,		# router to match IP domain literals
#
#	transport=smtp;			# deliver using SMTP over TCP/IP
#
# if a BIND system, uncomment the following 'transport' line and comment
# out the above one to get a little more capability... Not needed though...
#
	transport=b_smtp;		# deliver using BIND SMTP over TCP/IP

	fail_if_error,			# fail malformed domain literal addrs
	check_for_local,		# see if this is really the local host

# inet_bind - match hostnames using BIND capability... Try here 1st but if
# it fails, then drop to inet_hosts
#
inet_bind:
	driver=bind,
	transport=b_smtp;		# use BIND TCP/IP SMTP for delivery

	defnames,			# use standard domain searching
	-defer_no_connect,		# fall thru to inet_hosts if fails
	-local_mx_okay,			# fail (don't pass through) an MX
					# to the local host
#
# gateways can be used to setup relays... the following sets up uunet.uu.net
# as the relay point for all *.UUCP hosts. Change to whatever is correct
# for your system (and uncomment)
	gateways = "uunet.uu.net:uucp:+:\
		    cunyvm.cuny.edu:bitnet:+:\
		    csnet-relay.arpa:csnet",

# inet_hosts - match hostnames with gethostbyname(3N)
#
inet_hosts:
	driver=gethostbyname,		# match hosts with the library function
#	transport=smtp;			# use default SMTP (may be UUCP-style)
#
# if a BIND system, uncomment the following 'transport' line and comment
# out the above one to get a little more capability... Not needed though...
#
	transport=b_smtp;		# deliver using BIND SMTP

	-required,			# no required domains
	-domain,			# no defined domain suffixes
	-only_local_domain,		# don't restrict to defined domains

