# smail routers for darkstar.frop.org

# See smail(5) for a complete description of the contents of this
# file.

# The paths files referred to in the routers below are built by the
# makefile in the maps subdirectory.  Note that with the large number
# of files used for routing, it is important to close them after use
# and to reopen them when they are needed again.

# match-inet-addrs - match literal Internet-family addresses
#
# This director will match hostnames such as [192.2.12.200], which are
# literal addresses on a TCP/IP network.  This form should only be
# used when the actual hostname cannot be found in the network
# databases, or to get around a "forces" file that reroutes mail to a
# host listed in the databases for the TCP/IP network.
match-inet-addrs:
        driver=gethostbyaddr,           # match inet domain literal addrs
        transport=smtp;                 # delivery is over smtp/tcp
        fail_if_error,                  # non-inet literals are errors
        check_for_local                 # check for local host


# match_mx_hosts - alternate version using BIND to access the DNS
#
# This router is not compiled-in by default.  It can be used as a
# replacement for the above inet_hosts router, if your system supports
# a bind compatible DNS resolver library.  This should be used for
# systems on the internet.
#
# match-inet-hosts - match hosts in the TCP/IP network database
#
# Typically, this matches hostnames that are in the local machine's
# /etc/hosts file.  The /etc/hosts file is assumed to be for hosts in
# the local subdomain only.

inet-hosts:
	driver=smarthost,		# special-case driver
	transport=smtp;			# by default deliver over SMTP
#       driver=gethostbyname,		# match hosts on network
#       transport=smtp;			# delivery is over smtp/tcp
#	domain = brisnet.org.au		# strip trailing domain before lookup

# domain - the organization of our domain
#
# This is currently in a paths file, which is built by the Makefile in
# the maps/ subdirectory.  It contains path information about the
# hosts in the BAR.FOO.COM subdomain that are not accessed via the
# TCP/IP network.  It also maps out the FOO.COM domain.
#domain:
#	driver = pathalias,
#	method = table;
#	file = maps/domain.path,
#	proto = bsearch,		# a sorted file
#	domain = brisnet.org.au,		# strip trailing .frop.org
#	reopen				# don't keep the file open

# world  - look in the path database produced from the USENET map
#	   database, distributed in the newsgroup comp.mail.maps
#
# NOTE:  UTS has ndbm(3), which allows it to use multiple dbm files.
#	 sites which have only dbm(3X) cannot have both a dbm-based
#	 alias file and a dbm-based paths file.
#world:
#	driver = pathalias,
#	method = table;
#	file = maps/world,		# dbm database containing path info
#	proto = dbm,			# use dbm
#	domain = uucp,			# strip trailing .uucp before lookup
#	reopen				# close when not in used

# uuname - cache the output of uuname in a file
#
# This is a catchall feature for neighbors that just don't happen to
# appear in any other paths file.  The file is produced by the
# Makefile in the maps/ directory from the output of the uuname
# command, which lists the outpt of the uuname command.
#uuname:
#	driver = pathalias,
#	method = table;
#	file = maps/uuname.path,
#	proto = bsearch, reopen,

# reroute - experimental router to rewrite/shorten path to target
#
# This is added as part of the Linux binary distribution.  The
# author of smail cautions that it is an experimental router and
# extreme caution should be used if this router is enabled.  You
# can perform an extreme disservice to the net.community by
# having a rerouter with any problems.
#
# These rerouter examples are strictly experimental.  If you
# aren't an expert with UUCP routing, you should not enable them.
# retroute:
#	driver = reroute;
#	file = maps/reroute.map,	# dbm database for reroute
#	proto = dbm,			# use dbm lookup
#	optional,			# OK to skip this router
#	matchdbm,			# enable database lookup
#
# variation of reroute that will only short-circuit bounces
# if it finds the local hostname later on down a path
#retroute_bounce:
#	driver = reroute;
#	optional,			# OK to skip this router
#	matchlocal,			# only match local host name
#	bounceonly,			# only apply to bounce messages

# smart_host - a partically specified smarthost director
#
# If the config file attribute smart_path is defined as a path from the
# local host to a remote host, then hostnames not matched otherwise will
# be sent off to the stated remote host.  The config file attribute
# smart_transport can be used to specify a different transport.
#
# If the smart_path attribute is not defined, this router is ignored.
smart_host:
	driver=smarthost,		# special-case driver
	transport=smtp;			# by default deliver over SMTP
#	-path,				# use smart_path config file variable
#	path=uunet,			# alternate, set path in this file
