# @(#)samples/generic/transports	1.11 9/6/92 04:41:55
#
# Jim Jagielski 1/12/93
#

# smtp - deliver using SMTP over TCP/IP
#
# The below four drivers are configured in only if your system supports
# BSD socket networking.
#
# 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.
b_smtp:
	driver=tcpsmtp,
	inet,				# if UUCP_ZONE is not defined
	#uucp,				# if UUCP_ZONE is 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
# For internet use: uncomment the below 4 lines
	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_b_smtp:
	driver=tcpsmtp,
	inet,				# if UUCP_ZONE is not defined
#	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
# For internet use: uncomment the below 4 lines
	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_b_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
# For internet use: uncomment the below 4 lines
	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_b_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
# For internet use: uncomment the below 4 lines
	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 - deliver mail to local users
#
# By default, smail will append directly to user mailbox files.
#
# comment out the mode=0600 line below, and uncomment the mode=0660
# line, to get the correct mailbox file permissions for your system.
#
local:	driver=pipe,			# PIPE to procmail
	return_path,			# include a Return-Path: field
	from,				# supply a From_ envelope line
	local;				# use local forms for delivery

	user=root,
	cmd="/usr/local/bin/procmail -d $($user$)",

#
# local - deliver mail to local users
#
# By default, smail will append directly to user mailbox files.
#
# comment out the mode=0600 line below, and uncomment the mode=0660
# line, to get the correct mailbox file permissions for your system.
#
Olocal:	driver=appendfile,		# append message to a file
	return_path,			# include a Return-Path: field
	from,				# supply a From_ envelope line
#	insert_header="From $sender $ctime",
	unix_from_hack,			# insert > before From in body
					# comment out the above line for
					# MMDF mailbox format and for
					# use with the Content-Length
					# header fields.
	inet,				# use route-addr form
	local;				# use local forms for delivery

	file=/usr/mail/${lc:user},	# use this location for System V
	group=mail,			# group to own file for System V
#	check_path,			# make sure files are safely kept
	mode=0660,			# under System V, group mail can access
					# use this for SCO UNIX, as well
	suffix="\n",			# append an extra newline
					# comment out the above line for
					# MMDF mailbox format and for
					# use with the Content-Length
					# header fields.
	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

# 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
	unix_from_hack,			# insert > before From in body
					# comment out the above line for
					# MMDF mailbox format and for
					# use with the Content-Length
					# header fields.
	local;				# use local forms for delivery

	file=$user,			# file is taken from address
	append_as_user,			# use user-id associated with address
#	check_path,			# make sure files are safely kept
	expand_user,			# expand ~ and $ within address
	suffix="\n",			# append an extra newline
					# comment out the above line for
					# MMDF mailbox format and for
					# use with the Content-Length
					# header fields.
	mode=0644,			# you may wish to change this
					# mode, depending upon local
					# conventions and preferences
#	suffix="\1\1\1\1\n",		# MMDF mailbox format
#	prefix="\1\1\1\1\n",		# MMDF mailbox format
