#
#	smail configuration file
# (see 'man 5 smail' for full details and other options)

# Special section for Sparemint: The typical user connects to the
# outside world via a point-to-point connection over a serial line
# such as PPP or SLIP.  That means that smail should not even try
# to deliver mail immediately but wait until you instruct it to
# send the spool.  If this is true for your site, remove the
# comment sign (`#') from the following line.
#
#delivery_mode=queued
#
# It is often desirable, sometimes even required that smail will
# not try to contact the smtp daemon of the addressee of your mails
# directly but will send all mail to your ISP's smtp server (that
# will forward the mails).  To achieve this, remove the comment
# sign (`#') from the following lines:
#
#smart_path=my.isp.com
#smart_transport=smtp
#
# Of course you have to replace `my.isp.com' with the the name of
# your ISP's smtp server (they will tell you, because Microscape
# browsers need that information too).
#
# Leaves the problem that your ISP has only provided you a really
# ugly e-mail address, like `a12345678@isp.com'.  But if you rather
# want to have the login `tom' on your local machine, let smail
# transform the names for you:
#
#from_field = "From: \
#${if eq{user}{tom}: a123456789@isp.com}\
#${if eq{user}{dick}: Richard Lionheart <richard@lionheart.com>}\
#${if eq{user}{harry}: harry@sally.orgc (Harry Sallyman)}\
#${if def:sender_name: ($sender_name)}"
#
# This will work for small sites.  You can add as many translations
# as you like (don't change the syntax) but make sure that you
# keep the line with the default sender name.
# Another solution to this problem, is to configure your mailer to
# generate the `From:' field correctly; smail will not alter 
# existing headers.

# Set "domains" to your DOMAIN (without hostname).
# The "auth_domains" entry permits smail to bounce mail to unknown hosts
# in this domain. If you want to list multiple domains, separate with colons
#
#domains=mydomain.com
#auth_domains=mydomain.com

# If your uucp name is different to your hostname, set it here
#
#uucp_name=myuucpname

# Uncomment this line if you want to accept mail addressed to
# your DOMAIN as local to this host. Also if your host has other names
# (e.g. mailhub.mydomain.com) add them here, separated with colons.
#
#more_hostnames=mydomain.com

# What do we do with addresses which have an unknown hostname? Uncomment
# one set of these lines to forward to a "smart host". Otherwise they will
# be bounced.
#
# UUCP version
#smart_transport=uux		# transport
#smart_path=uunet		# smart host's uucp name
#
# SMTP version
#smart_transport=smtp
#smart_path=relay1.uu.net	# smart host's hostname

# What do we do with unknown local usernames? Normally they will be bounced.
# Uncomment one of these lines if you want to forward the message instead.
#
#smart_user=root			# Forward to another user
#smart_user=$user@mailhub.mydomain.com	# Forward to same user at another host

# Uncomment this line if you want to hide your hostname behind your domain.
# smail doesn't do header rewriting, so it's up to you to configure your
# mail user agents to generate the correct headers.
# If using elm: edit /usr/lib/elm.rc and set
#     "hostfullname=mydomain.com"
# For pine: edit /usr/local/lib/pine.conf and set "use-only-domain-name=Yes"
# (use "pine -conf >/usr/local/lib/pine.conf" if this file does not exist)
# For Mutt you can change the From line from your ~/.muttrc to match
# your address at your ISP, for example:
#	"my_hdr From: Tom Dick <tom@bsd.com>
#
#visible_name=mydomain.com

# General configuration parameters, normally don't need changing
#
postmaster=root		# Who receives mail addressed to "postmaster"
retry_interval=30m	# Interval between SMTP retries
retry_duration=4d	# Time before we give up and return to sender
smtp_accept_max=10	# Maximum no. of incoming SMTP sessions at one time
smtp_banner="$primary_name MiNT Smail$version #$compile_num ready at $date"
received_field="Received: \
	${if def:sender_host \
		{from $sender_host by $primary_name\
		${if def:sender_proto: with $sender_proto}\
		\n\t(MiNT Smail$version #$compile_num) }\
	else{by $primary_name ${if def:sender_proto:with $sender_proto }\
		(MiNT Smail$version #$compile_num)\n\t}}\
	id $message_id; $spool_date"
