# IMPORTANT FOR INTERNET USERS
#
# The smtp, uucp_zone_smtp, inet_zone_smtp, and local_smtp transports
# should be configured to use the DNS for finding MX and A records,
# if the host was not resolved by the bind version of the inet_hosts
# router.  To configure this, uncomment the use_bind attributes on
# the various tcpsmtp-based transport definitions.
#
# local - deliver mail to local users
#
local:	driver=appendfile,		# append message to a file
	return_path,			# include a Return-Path: field
	from,				# supply a From_ envelope line
	local;				# use local forms for delivery
	file=/var/spool/mail/${lc:user}, # location of mailbox files
	mode=0600,			# For BSD: only the user can
					# read and write file
	notify_comsat,			# notify comsat daemon of delivery
	suffix="\1\1\1\1\n",		# MMDF mailbox format
	prefix="\1\1\1\1\n",		# MMDF mailbox format

# pipe - deliver mail to shell commands
#
# This is used implicitly when smail encounters addresses which begin with
# a vertical bar character, such as "|/usr/lib/news/recnews talk.bizarre".
# The vertical bar is removed from the address before being given to the
# transport.
#
pipe:	driver=pipe,			# pipe message to another program
	return_path,			# include a Return-Path: field
	from,				# supply a From_ envelope line
	local;				# use local forms for delivery
	cmd="/bin/sh -c $user",	# send address to the Bourne Shell
	parent_env,			# environment info from parent addr
	pipe_as_user,			# use user-id associated with address
	ignore_status,			# ignore a non-zero exit status
	ignore_write_errors,		# ignore write errors, i.e., broken pipe
	umask=0066,			# umask for child process
	-log_output,			# do not log stdout/stderr

# file - deliver mail to files
#
# This is used implicitly when smail encounters addresses which begin with
# a slash or squiggle character, such as "/usr/info/list_messages" or
# perhaps "~/Mail/inbox".
#
file:	driver=appendfile,
	return_path,			# include a Return-Path: field
	from,				# supply a From_ envelope line
	local;				# use local forms for delivery
	file=$user,			# file is taken from address
	append_as_user,			# use user-id associated with address
	expand_user,			# expand ~ and $ within address
	mode=0600,
	suffix="\1\1\1\1\n",		# MMDF mailbox format
	prefix="\1\1\1\1\n",		# MMDF mailbox format

# smtp - deliver using SMTP over TCP/IP
#
# Connect to a remote host using TCP/IP and initiate an SMTP conversation
# to deliver the message.  The smtp transport is included only if BSD
# networking exists.
#
# The uucp attribute can be specified for transfers within the UUCP
# zone.  The inet attribute must be specified for transfers within the
# Internet.
#
# NOTE:	This is hardly optimal, a backend should exist which can handle
#	multiple messages per connection.
#
# ALSO:	It may be necessary to restrict max_addrs to 100, as this is the
#	lower limit SMTP requires an implementation to handle for one
#	message.
smtp:	driver=tcpsmtp,
	inet,				# if UUCP_ZONE is not defined
	-max_addrs, -max_chars;		# no limit on number of addresses

	short_timeout=5m,		# timeout for short operations
	long_timeout=2h,		# timeout for longer SMTP operations
	service=smtp,			# connect to this service port
	use_bind,			# resolve MX and multiple A records
	defnames,			# use standard domain searching
	defer_no_connect,		# try again if the nameserver is down
	-local_mx_okay,			# fail an MX to the local host

uucp_zone_smtp:
	driver=tcpsmtp,
	uucp,				# use !-style addresses for routing
	-max_addrs, -max_chars;		# no limit on number of addresses

	short_timeout=5m,		# timeout for short operations
	long_timeout=2h,		# timeout for longer SMTP operations
	service=smtp,			# connect to this service port
	use_bind,			# resolve MX and multiple A records
	defnames,			# use standard domain searching
	defer_no_connect,		# try again if the nameserver is down
	-local_mx_okay,			# fail an MX to the local host

inet_zone_smtp:
	driver=tcpsmtp,
	inet,				# use route-addr addresses for routing
	-max_addrs, -max_chars;		# no limit on number of addresses

	short_timeout=5m,		# timeout for short operations
	long_timeout=2h,		# timeout for longer SMTP operations
	service=smtp,			# connect to this service port
	use_bind,			# resolve MX and multiple A records
	defnames,			# use standard domain searching
	defer_no_connect,		# try again if the nameserver is down
	-local_mx_okay,			# fail an MX to the local host

local_smtp:
	driver=tcpsmtp,
	local_xform,			# transfer using local formats
	-max_addrs, -max_chars;		# no limit on number of addresses

	short_timeout=5m,		# timeout for short operations
	long_timeout=2h,		# timeout for longer SMTP operations
	service=smtp,			# connect to this service port
	use_bind,			# resolve MX and multiple A records
	defnames,			# use standard domain searching
	defer_no_connect,		# try again if the nameserver is down
	-local_mx_okay,			# fail an MX to the local host

