############################################################
#
# Tailor file for PP
#
#      This version for Internet site
#
############################################################

############################################################
#
# The following variables will need tailoring 
#
############################################################
#
# The loc_dom_mta is the host that the MTA will reside on and execute from
# It is a fully qualified domain name and represent the physical machine
#	Examples might be
#		cheetah.nyser.net
#      		violet.berkeley.edu
#
loc_dom_mta	mylocalhost.localdomain.us
#
# The Sitename is what the rest of the world sees you as. This is typically
# a domain shorter than the full domain name. It is the name used to represent
# your site or group as a whole. This name normally hides the individual 
# machine names
#	Examples might be
#		berkeley.edu
#		nyser.net
#
loc_dom_site	localdomain.us
#
# The postmaster should include the local site name
# e.g. postmaster@berkeley.edu or postmaster@nyser.net
#
postmaster	postmaster@localdomain.us
#
# The pplogin should be the username of the owner of pp.
#
pplogin		pp
#
# The qmgrhost should be the same as the name found in isoentities file.
# This can be the same as loc_dom_mta name
#
qmgrhost	mylocalhost
#
# The local or name should be the name of your site in X.400 terms.
# This is attribute value based, and starts with organisational units and
# works up to country. If you are unsure, you can leave it with just
# a country component and blank admd, e.g. "/ADMD= /C=US/"
#
loc_or		"/ou=research/o=Berkeley University/prmd=Internet/admd= /c=US/"

############################################################
#
# That is the end of the things you must tailor - the rest are
# probably ok - but you should check.
#
############################################################

delim1		"\1\1\1\1\12"
delim2		"\1\1\1\1\12"

authchannel	free
authloglevel	high
wrndfldir	warnings

# Body types

headertype	822 822-us
bodypart	ia5 


#  **-- Mapping tables --**
#
# All of these table MUST have the names given here
tbl	aliases		show="Aliases: mapping -> local id",
tbl	users		show="Users: mapping local id -> disposition",
tbl	domain		show="Mapping domain key ->full domain/MTA",
tbl	or		show="Mapping O/R Address -> MTA",flags=dbm
tbl	channel		show="Binding MTA -> Channels",flags=dbm
tbl	or2rfc		show="RFC 987: X.400 -> RFC 822",flags=dbm
tbl	rfc2or		show="RFC 987: RFC 822 -> X.400",flags=dbm
tbl	rfc1148gate	show="Gateways that perform RFC 1148 conversions",
tbl	auth.channel	show="Authorisation: channel policy",flags=dbm
tbl	auth.mta	show="Authorisation: mta based",flags=dbm
tbl	auth.user	show="Authorisation: user based",flags=dbm
tbl	auth.qmgr	show="Authorisation: qmgr control",flags=linear
#  **-- Channel tables --**
#
# Needed by individual channels, not submit
tbl	local		file="ch.local",
			show="local id -> user id + home directory",
			flags=dbm
tbl	shell		file="ch.shell", show="info for shell chan"
			flags=dbm
tbl	list		file="ch.list",
			show="Lists: distribution lists",
			flags=dbm
tbl	uucp		file="ch.uucp" show="UUCP: rfc822 -> uucp", flags=dbm

chan	822-local    prog=local,
	show="Local Delivery channel",type=both,
	sort="user time",adr=822,adr-order=usapref,
	hdrin=822,hdrout=822-us bptin="ia5",bptout="ia5",
	content-out=822,outtable=local,access=mts,drchan=dr2rfc

chan	smtp	prog=smtp,show="with SMTP (PP)",type=both,
		adr=822,hdrout=822-us, bptout="ia5",
		content-out=822,drchan=dr2rfc


chan	list	prog=list,show="List channel",type=both,
		outtable=list,drchan=dr2rfc,out-info=linked,sort="user time"

chan	uucp	prog=uucp-out,key="uucp-out,rmail",
		show="UUCP outbound channel",type=both,
		adr=822,adr-order=usapref,outtable=uucp
		out-info="uux=/tmp/uux,host=xtel"

chan	dr2rfc	prog=dr2rfc,show="Dr2rfc channel",type=out,
		adr=822,adr-order=usapref,
		bptin=ia5,hdrin=822
		content-out=822,out-info="return=all"

chan	shell	prog=shell,type=out,access=mts
		show="Shell channel",
		outtable=shell, hdrout=822-us
		bptout="ia5", content-out=822

# QMGR special channels (load/manage/clean)

chan	qmgr-load	prog=qmgr-load,show="Loading the QMGR",
			type=qmgrload

chan	msg-clean	prog=msg-clean,show="Removing finished message"
			type=delete

chan	trash		prog=trash,show="Removing trash"
			type=debris,out-info=5h

chan	timeout		prog=timeout,show="Timeout messages"
			type=timeout

chan    warning         prog=warnings,show="Send warning messages",
                        type=warn

chan    splitter        prog=splitter,type=split,
                        show="Divide message into single"


#  **-- shaper channels --**

#   Flatteners

chan	822flatten	prog=rfc934,type=shaper,content-out=822

#   Unflatteners

# Header Filters
chan	822tous		prog=fcontrol,type=shaper,hdrin=822,
			hdrout=822-us,
			out-info="rfc822norm -822 -littleend"

#  **-- Logging for the rest of the prog --**
#
authlog level=notice, size=-1
operlog level=notice, size=400
normlog level=notice, size=400, sflags=zero

822flatten	normlog	 file=filter
822tous		normlog	 file=filter
dr2rfc		normlog	 file=filter
fcontrol	normlog	 file=filter
rfc822norm	normlog	 file=filter
trash		normlog	 file=filter

list		normlog	 file=lists

qmgr		normlog	 file=qmgr
qmgr-load	normlog	 file=qmgr

smtp		normlog	 file=smtp
smtpsrvr	normlog	 file=smtp
submit		normlog	 file=submit

local		normlog	 file=local
msg-clean	normlog	 file=msg-clean

pptsapd		normlog	 file=pptsapd,		dlevel=notice
