xref: /csrg-svn/usr.sbin/sendmail/cf/README (revision 57982)
151220Seric
251220Seric
357246Seric		NEW SENDMAIL CONFIGURATION FILES
451220Seric
557246Seric		Eric Allman <eric@CS.Berkeley.EDU>
651220Seric
7*57982Seric		@(#)README	6.4 (Berkeley) 02/14/93
851220Seric
951220Seric
1057246SericThis document describes the sendmail configuration files being used
1157246Sericat Berkeley.  These use features in the new (R6) sendmail, and although
1257246Sericthere is an ``OLDSENDMAIL'' mode, they haven't really been tested on
1357247Sericold versions of sendmail and cannot be expected to work well.
1451220Seric
1557246SericThese configuration files are probably not as general as previous
1657246Sericversions, and don't handle as many of the wierd cases automagically.
1757246SericI was able to simplify by them for two reasons.  First, the network
1857246Serichas become more consistent -- for example, at this point, everyone
1957246Sericon the internet is supposed to be running a name server, so hacks to
2057246Serichandle NIC-registered hosts can go away.  Second, I assumed that a
2157246Sericsubdomain would be running SMTP internally -- UUCP is presumed to be
2257246Serica long-haul protocol.  I realize that this is not universal, but it
2357246Sericdoes describe the vast majority of sites with which I am familiar,
2457246Sericincluding those outside the US.
2551220Seric
2657246SericOf course, the downside of this is that if you do live in a wierd
2757246Sericworld, things are going to get wierder for you.  I'm sorry about that,
2857246Sericbut at the time we at Berkeley had a problem, and it seemed like the
2957246Sericright thing to do.
3051220Seric
3157247SericThis package requires a post-V7 version of m4; if you are running the
3257247Seric4.2bsd, SysV.2, or 7th Edition version, I suggest finding a friend with
3357247Serica newer version.  You can m4-expand on their system, then run locally.
3457247SericSunOS's /usr/5bin/m4 or BSD-Net/2's m4 both work.  GNU m4 (which is a
3557247Sericlanguage unto itself) also works, but I don't intend to work so hard
3657247Sericto keep this up in the future.  [Note to GNU folks:  the construct
3757246Seric"define(`FOO')" should work without my having to add a null value.]
3851220Seric
3957246SericI'm not pretending that this README describes everything that these
4057246Sericconfiguration files can do; clever people can probably tweak them
4157246Sericto great effect.  But it should get you started.
4257246Seric
4357246Seric+--------------------------+
4457246Seric| INTRODUCTION AND EXAMPLE |
4557246Seric+--------------------------+
4657246Seric
4757246SericConfiguration files are contained in the subdirectory "cf", with a
4857246Sericsuffix ".mc".  They must be run through "m4" to produce a ".cf" file.
4957246Seric
5051220SericLet's examine a typical .mc file (cf/cs-exposed.mc):
5151220Seric
5251220Seric	divert(-1)
5351220Seric	#
5451220Seric	# Copyright (c) 1983 Eric P. Allman
5551220Seric	# Copyright (c) 1988 The Regents of the University of California.
5651220Seric	# All rights reserved.
5751220Seric	#
5851220Seric	# Redistribution and use in source and binary forms are permitted
5951220Seric	# provided that the above copyright notice and this paragraph are
6051220Seric	# duplicated in all such forms and that any documentation,
6151220Seric	# advertising materials, and other materials related to such
6251220Seric	# distribution and use acknowledge that the software was developed
6351220Seric	# by the University of California, Berkeley.  The name of the
6451220Seric	# University may not be used to endorse or promote products derived
6551220Seric	# from this software without specific prior written permission.
6651220Seric	# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
6751220Seric	# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
6851220Seric	# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
6951220Seric	#
7051220Seric
7157246SericThe divert(-1) will delete the crud in the resulting output file.
7257247SericThe copyright notice is what your lawyers require.  Our lawyers require
7357246Sericthe one that I've included in my files. A copyleft is a copyright by
7457246Sericanother name.
7551220Seric
7657246SericThe next line MUST be
7757246Seric
7851220Seric	include(`../m4/cf.m4')
7951220Seric
8057246SericThis will pull in the M4 macros you will need to make sense of
8157246Sericeverything else.  As the saying goes, don't think about it, just
8257246Sericdo it.  If you don't do it, don't bother reading the rest of this
8357246Sericfile.
8451220Seric
8556778Seric	VERSIONID(`<SCCS or RCS version id>')
8651220Seric
8751220SericVERSIONID is a macro that stuffs the version information into the
8851220Sericresulting file.  We use SCCS; you could use RCS, something else, or
8957246Sericomit it completely.  This is not the same as the version id included
9057246Sericin SMTP greeting messages -- this is defined in m4/version.m4.
9151220Seric
9251268Seric	DOMAIN(cs.exposed)
9351220Seric
9451220SericThis example exposes the host inside of the CS subdomain -- that is,
9551220Sericit doesn't try to hide the name of the workstation to the outside
9651220Sericworld.  Changing this to DOMAIN(cs.hidden) would have made outgoing
9751220Sericmessages refer to "<username>@CS.Berkeley.EDU" instead of using the
9857246Sericlocal hostname.  Internaly this is effected by using
9957246Seric"MASQUERADE_AS(CS.Berkeley.EDU)".
10051220Seric
10151268Seric	MAILER(smtp)
10251220Seric
10351309SericThese describe the mailers used at the default CS site site.  The
10451309Sericlocal mailer is always included automatically.
10551220Seric
10657246Seric+--------+
10757246Seric| OSTYPE |
10857246Seric+--------+
10957246Seric
11051220SericNote that cf/cs-exposed.mc omits an OSTYPE macro -- this assumes
11151220Sericdefault Computer Science Division environment.  There are several
11257247Sericexplicit environments available: bsd4.3, bsd4.4, hpux, irix, osf1,
11357247Sericriscos4.5, sunos3.5, sunos4.1, and ultrix4.1.  These change things
11457247Sericlike the location of the alias file and queue directory.  Some of
11557247Sericthese files are identical to one another.
11651220Seric
11757246SericOperating system definitions are easy to write.  They may define
11857246Sericthe following variables (everything defaults, so an ostype file
11957246Sericmay be empty).
12051220Seric
12157246SericALIAS_FILE		[/etc/aliases] The location of the text version
12257246Seric			of the alias file.
12357246SericHELP_FILE		[/usr/lib/sendmail.hf] The name of the file
12457246Seric			containing information printed in response to
12557246Seric			the SMTP HELP command.
12657246SericLOCAL_MAILER		[/bin/mail] The program used to deliver local mail.
12757246SericLOCAL_SHELL		[/bin/sh] The shell used to deliver piped email.
12857246SericQUEUE_DIR		[/var/spool/mqueue] The directory containing
12957246Seric			queue files.
13057246SericSTATUS_FILE		[/etc/sendmail.st] The file containing status
13157246Seric			information.
13257246SericLOCAL_MAILER_FLAGS	[rn] The flags used by the local mailer.  The
13357246Seric			flags lsDFMm are always included.
13457246SericHOSTMAP_SPEC		[dbm -o /etc/hostmap] The value for the builtin
13557246Seric			hostmap key definition.  You can redefine this
13657246Seric			to change the class, flags, and filename of
13757246Seric			the hostmap.  The default flag (-o) makes this
13857246Seric			map optional.
13957246Seric
14057246SericIn addition, the following boolean flags may be defined -- the value
14157246Sericis ignored.
14257246Seric
14357246SericNEED_DOMAIN		If set, the $j macro is defined as $w.$D.
14457246Seric			If not set, $j is defined as $w.  If this is
14557246Seric			set, the domain must be defined using the line
14657246Seric			DD<domainname> (probably in the domain file,
14757246Seric			but possibly in the .mc file).  You will only
14857246Seric			need this if you define your system hostname
14957246Seric			without a domain (type "hostname" -- if it
15057246Seric			has no dots in the output, you qualify) or if
15157246Seric			you are running Ultrix or OSF/1 sendmail.
15257246Seric			Either of these is probably a mistake.
15357246Seric
15457246Seric+---------+
15557246Seric| DOMAINS |
15657246Seric+---------+
15757246Seric
15857246SericYou will probably want to collect domain-dependent defines into one
15957246Sericfile, referenced by the DOMAIN macro.  For example, our Berkeley
16057246Sericdomain file includes definitions for several internal distinguished
16157246Serichosts:
16257246Seric
16357246SericUUCP_RELAY	The host that will forward UUCP-addressed email.
16457246Seric		If not defined, all UUCP sites must be directly
16557246Seric		connected.
16657246SericBITNET_RELAY	The host that will forward BITNET-addressed email.
16757246Seric		If not defined, the .BITNET pseudo-domain won't work.
16857246SericCSNET_RELAY	The host that will forward CSNET-addressed email.
16957246Seric		If not defined, the .CSNET pseudo-domain won't work.
17057246SericLOCAL_RELAY	The site that will handle unqualified names -- that
17157246Seric		is, names with out an @domain extension.  If not set,
17257246Seric		they are assumed to belong on this machine.  This
17357246Seric		allows you to have a central site to store a
17457246Seric		company- or department-wide alias database.  This
17557246Seric		only works at small sites, and there are better
17657246Seric		methods.
17757246Seric
17857246SericThe domain file can also be used to define a domain name, if needed
179*57982Seric(using "DD<domain>") and set certain site-wide features.  If all hosts
180*57982Sericat your site masquerade behind one email name, you could also use
181*57982SericMASQUERADE_AS here.
18257246Seric
18357246Seric+---------+
18457246Seric| MAILERS |
18557246Seric+---------+
18657246Seric
18751220SericThere are fewer mailers supported in this version than the previous
18851220Sericversion, owing mostly to a simpler world.
18951220Seric
19051220Sericlocal		The local and prog mailers.  You will almost always
19151220Seric		need these; the only exception is if you relay ALL
19257247Seric		your mail to another site.  This mailer is included
19357247Seric		automatically.
19451220Seric
19551220Sericsmtp		The Simple Mail Transport Protocol mailer.  This does
19651220Seric		not hide hosts behind a gateway or another other
19751220Seric		such hack; it assumes a world where everyone is
19851220Seric		running the name server.
19951220Seric
20051220Sericuucp		The Unix-to-Unix Copy Program mailer.  Actually, this
20151220Seric		defines two mailers, "uucp" and "suucp".  The latter
20251220Seric		is for when you know that the UUCP mailer at the other
20351220Seric		end can handle multiple recipients in one transfer.
20457246Seric		When you invoke this, sendmail looks for all names in
20557246Seric		the $=U class and sends them to the uucp mailer; all
20657246Seric		names in the $=Y class are sent to suucp.  Note that
20757246Seric		this is a function of what version of rmail runs on
20857246Seric		the receiving end, and hence may be out of your control.
20951220Seric
21057246Seric+----------+
21157246Seric| FEATURES |
21257246Seric+----------+
21351268Seric
21457246SericSpecial features can be requested using the "FEATURE" macro.  For
21557246Sericexample, the .mc line:
21657246Seric
21757246Seric	FEATURE(use_cw_file)
21857246Seric
21957246Serictells sendmail that you want to have it read an /etc/sendmail.cw
22057246Sericfile to get values for class $=w.  Available features are:
22157246Seric
22257246Sericuse_cw_file	Read the file /etc/sendmail.cw file to get alternate
22357246Seric		names for this host.  This might be used if you were
22457246Seric		on a host that MXed for a dynamic set of other
22557246Seric		hosts.  If the set is static, just including the line
22657246Seric		"Cw<name1> <name2> ..." is probably superior.
22757246Seric
22857246SericOther FEATUREs should be defined, but I was trying to keep these
22957246Sericconfig files fairly lean and mean.
23057246Seric
23157246Seric+-------+
23257246Seric| HACKS |
23357246Seric+-------+
23457246Seric
23557246SericSome things just can't be called features.  To make this clear,
23657247Sericthey go in the hack subdirectory and are referenced using the HACK
23757246Sericmacro.  These will tend to be site-dependent.  The release
23857246Sericincludes the Berkeley-dependent "cssubdomain" hack (that makes
23957246Sericsendmail accept local names in either Berkeley.EDU or CS.Berkeley.EDU;
24057246Sericthis is intended as a short-term aid while we move hosts into
24157246Sericsubdomains.
24257246Seric
24357246Seric+--------------------+
24457246Seric| SITE CONFIGURATION |
24557246Seric+--------------------+
24657246Seric
24757246SericComplex sites will need more local configuration information, such as
24857246Sericlists of UUCP hosts they speak with directly.  This can get a bit more
24957246Serictricky.  For an example of a "complex" site, see cf/ucbvax.mc.
25057246Seric
25157246SericThe SITECONFIG macro allows you to indirectly reference site-dependent
25257246Sericconfiguration information stored in the siteconfig subdirectory.  For
25357246Sericexample, the line
25457246Seric
25557246Seric	SITECONFIG(uucp.ucbvax, ucbvax, U)
25657246Seric
25757246Sericreads the file uucp.ucbvax for local connection information.  The
25857246Sericsecond parameter is the local name (in this case just "ucbvax" since
25957246Sericit is locally connected, and hence a UUCP hostname) and the name of
26057246Sericthe class in which to store the host information.  Another SITECONFIG
26157246Sericline reads
26257246Seric
26357246Seric	SITECONFIG(uucp.ucbarpa, ucbarpa.Berkeley.EDU, W)
26457246Seric
26557246SericThis says that the file uucp.ucbarpa contains the list of UUCP sites
26657246Sericconnected to ucbarpa.Berkeley.EDU.  The $=W class will be used to
26757246Sericstore this list.  [The machine ucbarpa is gone now, but I've left
26857246Sericthis out-of-date configuration file around to demonstrate how you
26957246Sericmight do this.]
27057246Seric
27157246SericThe siteconfig file (e.g., siteconfig/uucp.ucbvax.m4) contains nothing
27257246Sericmore than a sequence of SITE macros describing connectivity.  For
27357246Sericexample:
27457246Seric
27557246Seric	SITE(cnmat)
27657246Seric	SITE(sgi olympus)
27757246Seric
27857246SericThe second example demonstrates that you can use two names on the
27957246Sericsame line; these are usually aliases for the same host (or are at
28057246Sericleast in the same company).
28157246Seric
28257246Seric+-------------------+
28357246Seric| TWEAKING RULESETS |
28457246Seric+-------------------+
28557246Seric
28651268SericFor more complex configurations, you can define special rules.
28751268SericThe macro LOCAL_RULE_3 introduces rules that are used in canonicalizing
28851268Sericthe names.  Any modifications made here are reflected in the header.
28951268Seric
29051268SericA common use is to convert old UUCP addreses to SMTP addresses using
29151268Sericthe UUCPSMTP macro.  For example:
29251268Seric
29351268Seric	LOCAL_RULE_3
29451268Seric	UUCPSMTP(decvax,	decvax.dec.com)
29551268Seric	UUCPSMTP(research,	research.att.com)
29651268Seric
29751268Sericwill cause addresses of the form "decvax!user" and "research!user"
29851268Sericto be converted to "user@decvax.dec.com" and "user@research.att.com"
29951268Sericrespectively.
30051268Seric
30157246SericThis could also be used to look hosts in a database map:
30257246Seric
30357246Seric	LOCAL_RULE_3
30457246Seric	R$* < @ $+ > $*		$: $1 < @ $(hostmap $2 $) > $3
30557246Seric
30657246SericThis map would be defined in the LOCAL_CONFIG portion, as shown below.
30757246Seric
30851268SericSimilarly, LOCAL_RULE_0 can be used to introduce new parsing rules.
30951268SericFor example, new rules are needed to parse hostnames that you accept
31051309Sericvia MX records.  For example, you might have:
31151268Seric
31251309Seric	LOCAL_RULE_0
31351309Seric	R$+ < @ cnmat.Berkeley.EDU >	$#uucp $@ cnmat $: $1
31451309Seric
31551309SericYou would use this if you had installed an MX record for cnmat.Berkeley.EDU
31651309Sericpointing at this host; this rule catches the message and forwards it on
31751309Sericusing UUCP.
31851309Seric
31957246SericA similar macro is LOCAL_CONFIG.  This introduces lines added after the
32057246Sericboilerplate option setting but before rulesets, and can be used to
32157945Sericdeclare local database maps or whatever.  For example:
32251268Seric
32357246Seric	LOCAL_CONFIG
32457246Seric	Khostmap hash /etc/hostmap.db
32557246Seric	Kyplocal nis -m hosts.byname
32651220Seric
32757246Seric+---------------------------+
32857246Seric| MASQUERADING AND RELAYING |
32957246Seric+---------------------------+
33057246Seric
33157246SericYou can have your host masquerade as another using
33257246Seric
33357246Seric	MASQUERADE_AS(host.domain)
33457246Seric
33557246SericThis causes outgoing SMTP mail to be labelled as coming from the
33657246Sericindicated domain, rather than $j.  One normally masquerades as one
33757246Sericof your own subdomains (for example, it's unlikely that I would
33857246Sericchoose to masquerade as an MIT site).
33957246Seric
34057246Sericthere are always users that need to be "exposed" -- that is, their
34157246Sericinternal site name should be displayed instead of the masquerade name.
34257246SericRoot is an example.  You can add users to this list using
34357246Seric
34457246Seric	EXPOSED_USER(usernames)
34557246Seric
34657246SericThis adds users to class E; you could also use something like
34757246Seric
34857246Seric	FE/etc/sendmail.cE
34957246Seric
35057246SericYou can also arrange to relay all unqualified names (that is, names
35157246Sericwithout @host) to a relay host.  For example, if you have a central
35257246Sericemail server, you might relay to that host so that users don't have
35357246Sericto have .forward files or aliases.  You can do this using
35457246Seric
35557246Seric	define(`LOCAL_RELAY', hostname)
35657246Seric
35757246SericThere are some user names that you don't want relayed, perhaps because
35857246Sericof local aliases.  A common example is root, which may be locally
35957246Sericaliased.  You can add entries to this list using
36057246Seric
36157246Seric	LOCAL_USER(usernames)
36257246Seric
36357246SericThis adds users to class L; you could also use something like
36457246Seric
36557246Seric	FL/etc/sendmail.cL
36657246Seric
36757591SericIf you want all mail sent to a centralized hub, as for a shared
36857591Seric/var/spool/mail scheme, use
36957591Seric
37057591Seric	define(`MAIL_HUB', hostname)
37157591Seric
37257591SericIf you define both LOCAL_RELAY and MAIL_HUB, unqualified names and
37357591Sericnames in class L will be sent to the LOCAL_RELAY and other local names
37457591Sericwill be sent to MAIL_HUB.  For example, if are on machine
37557591Sericmastodon.CS.Berkeley.EDU, the following combinations of settings
37657591Sericwill have the indicated effects:
37757591Seric
37857591Sericemail sent to....	eric			  eric@mastodon.CS.Berkeley.EDU
37957591Seric
38057591SericLOCAL_RELAY set to	mail.CS.Berkeley.EDU	  (delivered locally)
38157591Sericmail.CS.Berkeley.EDU
38257591Seric
38357591SericMAIL_HUB set to		mammoth.CS.Berkeley.EDU	  mammoth.CS.Berkeley.EDU
38457591Sericmammoth.CS.Berkeley.EDU
38557591Seric
38657591SericBoth LOCAL_RELAY and	mail.CS.Berkeley.EDU	  mammoth.CS.Berkeley.EDU
38757591SericMAIL_HUB set as above
38857591Seric
38957945Seric+--------------------------------+
39057945Seric| TWEAKING CONFIGURATION OPTIONS |
39157945Seric+--------------------------------+
39257945Seric
39357945SericThere are a large number of configuration options that don't normally
39457945Sericneed to be changed.  However, if you feel you need to tweak them, you
39557945Sericcan define the following M4 variables.  This list is shown in four
39657945Sericcolumns:  the name you define, the default value for that definition,
39757945Sericthe option or macro that is affected (either Ox for an option or Dx
39857945Sericfor a macro), and a brief description.  Greater detail of the semantics
39957945Sericcan be found in the Installation and Operations Guide.
40057945Seric
40157945SericM4 Variable Name	Default		Mac/Opt	Description
40257945SericconfMAILER_NAME		MAILER-DAEMON	Dn	The sender name used for
40357945Seric						internally generated
40457945Seric						outgoing messages.
40557945SericconfFROM_LINE		From $?<$<$|$g$.  $d	The From_ line used when
40657945Seric					Dl	sending to files or programs.
40757945SericconfFROM_HEADER		$?x$x <$g>$|$g$.	The format of an internally
40857945Seric					Dq	generated From: address.
40957945SericconfOPERATORS		.:%@!^/[]	Do	Address operator characters.
41057945SericconfSTMP_LOGIN_MSG	$j Sendmail $v/$Z ready at $b
41157945Seric					De	The initial (spontaneous)
41257945Seric						SMTP greeting message.
41357945SericconfEIGHT_BIT_INPUT	False		O8	Use 8-bit input?
41457945SericconfALIAS_WAIT		10		Oa	Wait (in minutes) for alias
41557945Seric						file rebuild.
41657945SericconfBLANK_SUB		.		OB	Blank (space) substitution
41757945Seric						character.
41857945SericconfCON_EXPENSIVE	False		Oc	Connect immediately to
41957945Seric						mailers marked expensive?
42057945SericconfCHECKPOINT_INTERVAL	10		OC	Checkpoint queue files
42157945Seric						every N recipients.
42257945SericconfDELIVERY_MODE	background	Od	Default delivery mode.
42357945SericconfAUTO_REBUILD	False		OD	Automatically rebuild
42457945Seric						alias file if needed.
42557945SericconfERROR_MODE		(undefined)	Oe	Error message mode.
42657945SericconfERROR_MESSAGE	(undefined)	OE	Error message header/file.
42757945SericconfSAVE_FROM_LINES	False		Of	Save extra leading
42857945Seric						From_ lines.
42957945SericconfTEMP_FILE_MODE	0600		OF	Temporary file mode.
43057945SericconfDEF_GROUP_ID	1		Og	Default group id.
43157945SericconfMATCH_GECOS		False		OG	Match GECOS field.
43257945SericconfMAX_HOP		17		Oh	Maximum hop count.
43357945SericconfIGNORE_DOTS		False		Oi	Ignore dot as terminator
43457945Seric						for incoming messages?
43557945SericconfBIND_OPTS		(empty)		OI	Default options for BIND.
43657945SericconfMCI_CACHE_SIZE	2		Ok	Size of open connection cache.
43757945SericconfMCI_CACHE_TIMEOUT	5m		OK	Open connection cache timeout.
43857945SericconfLOG_LEVEL		9		OL	Log level.
43957945SericconfME_TOO		False		Om	Include sender in group
44057945Seric						expansions.
44157945SericconfCHECK_ALIASES	True		On	Check RHS of aliases when
44257945Seric						running newaliases.
44357945SericconfOLD_STYLE_HEADERS	True		Oo	Assume that headers without
44457945Seric						special chars are old style.
44557945SericconfCOPY_ERRORS_TO	(undefined)	OP	Address for additional copies
44657945Seric						of all error messages.
44757945SericconfQUEUE_FACTOR	(undefined)	Oq	Slope of queue-only function
44857945SericconfREAD_TIMEOUT	20m		Or	SMTP read timeout.
44957945SericconfSAFE_QUEUE		True		Os	Commit all messages to disk
45057945Seric						before forking.
45157945SericconfMESSAGE_TIMEOUT	3d		OT	Timeout for messages before
45257945Seric						sending error message.
45357945SericconfTIME_ZONE		USE_SYSTEM	Oz	Time zone info -- can be
45457945Seric						USE_SYSTEM to use the system's
45557945Seric						idea, USE_TZ to use the user's
45657945Seric						TZ envariable, or something
45757945Seric						else to force that value.
45857945SericconfDEF_USER_ID		1		Ou	Default user id.
45957945SericconfNO_WILDCARD_MX	False		Ow	No wildcard MX records matches
46057945Seric						our domain.
46157945SericconfQUEUE_LA		8		Ox	Load average at which queue-only
46257945Seric						function kicks in.
46357945SericconfREFUSE_LA		12		OX	Load average at which incoming
46457945Seric						SMTP connections are refused.
46557945SericconfSEPARATE_PROC	False		Oy	Run all deliveries in a
46657945Seric						separate process.
46757945SericconfWORK_RECIPIENT_FACTOR
46857945Seric			(undefined)	OY	Cost of each recipient.
46957945SericconfWORK_CLASS_FACTOR	(undefined)	Oz	Priority multiplier for class.
47057945SericconfWORK_TIME_FACTOR	(undefined)	OZ	Cost of each delivery attempt.
47157945Seric
47257246Seric+-----------+
47357246Seric| HIERARCHY |
47457246Seric+-----------+
47557246Seric
47651220SericWithin this directory are several subdirectories, to wit:
47751220Seric
47851220Sericm4		General support routines.  These are typically
47951220Seric		very important and should not be changed without
48057247Seric		very careful consideration.
48151220Seric
48251220Sericcf		The configuration files themselves.  They have
48351220Seric		".mc" suffixes, and must be run through m4 to
48451220Seric		become complete.  The resulting output should
48551220Seric		have a ".cf" suffix.
48651220Seric
48751220Sericostype		Definitions describing a particular operating
48851220Seric		system type.  These should always be referenced
48951220Seric		using the OSTYPE macro in the .mc file.  Examples
49051220Seric		include "bsd4.3", "bsd4.4", "sunos3.5", and
49151220Seric		"sunos4.1".
49251220Seric
49351220Sericdomain		Definitions describing a particular domain, referenced
49451220Seric		using the DOMAIN macro in the .mc file.  These are
49551220Seric		site dependent; for example, we contribute "cs.exposed.m4"
49651220Seric		and "cs.hidden.m4" which both describe hosts in the
49751220Seric		CS.Berkeley.EDU subdomain; the former displays the local
49851220Seric		hostname (e.g., mammoth.CS.Berkeley.EDU), whereas the
49951220Seric		latter does its best to hide the identity of the local
50051220Seric		workstation inside the CS subdomain.
50151220Seric
50251220Sericmailer		Descriptions of mailers.   These are referenced using
50351220Seric		the MAILER macro in the .mc file.
50451220Seric
50551220Sericsh		Shell files used when building the .cf file from the
50651220Seric		.mc file in the cf subdirectory.
50751220Seric
50851220Sericfeature		These hold special orthogonal features that you might
50951220Seric		want to include.  They should be referenced using
51051220Seric		the FEATURE macro.
51151220Seric
51251220Serichack		Local hacks.  These can be referenced using the HACK
51351220Seric		macro.  They shouldn't be of more than voyeuristic
51451220Seric		interest outside the .Berkeley.EDU domain, but who knows?
51551220Seric		We've all got our own peccadilloes.
51651220Seric
51751268Sericsiteconfig	Site configuration -- e.g., tables of locally connected
51851268Seric		UUCP sites.
51951220Seric
52051268Seric
52157246Seric+------------------------+
52257246Seric| ADMINISTRATIVE DETAILS |
52357246Seric+------------------------+
52451220Seric
52551220SericThe following sections detail usage of certain internal parts of the
52651220Sericsendmail.cf file.  Read them carefully if you are trying to modify
52751220Sericthe current model.  If you find the above descriptions adequate, these
52851220Sericshould be {boring, confusing, tedious, ridiculous} (pick one or more).
52951220Seric
53051220SericRULESETS (* means built in to sendmail)
53151220Seric
53251220Seric   0 *	Parsing
53351220Seric   1 *	Sender rewriting
53451220Seric   2 *	Recipient rewriting
53551220Seric   3 *	Canonicalization
53651220Seric   4 *	Post cleanup
53754839Seric   5 *	Local address rewrite (after aliasing)
53851220Seric   6	Bottom half of Ruleset 3
53957247Seric   7	Hook for recursive ruleset 0 call
54057247Seric   8
54157247Seric   9
54251220Seric
54351220Seric
54451220SericMAILERS
54551220Seric
54651220Seric   0	local, prog	local and program mailers
54751220Seric   1	smtp		SMTP channel
54851220Seric   2	uucp
54951220Seric
55051220Seric
55151220SericMACROS
55251220Seric
55351220Seric   A
55451220Seric   B	Bitnet Relay
55551220Seric   C	CSNET Relay
55654839Seric   D	The local domain -- usually not needed
55751220Seric   E
55851220Seric   F
55951220Seric   G
56057591Seric   H	mail Hub (for mail clusters)
56151220Seric   I
56251220Seric   J
56351220Seric   K
56451220Seric   L
56551220Seric   M	Masquerade (who I claim to be)
56651220Seric   N
56751220Seric   O
56851220Seric   P
56951220Seric   Q
57051220Seric   R	Relay (for unqualified names)
57151220Seric   S
57251220Seric   T
57351309Seric   U	my UUCP name (if I have a UUCP connection)
57451309Seric   V	UUCP Relay (class V hosts)
57551220Seric   W	UUCP Relay (class W hosts)
57651220Seric   X	UUCP Relay (class X hosts)
57751309Seric   Y	UUCP Relay (all other hosts)
57851220Seric   Z	Version number
57951220Seric
58051220Seric
58151220SericCLASSES
58251220Seric
58351220Seric   A
58451220Seric   B
58551220Seric   C
58651220Seric   D
58757246Seric   E	addresses that should not seem to come from $M
58854839Seric   F	hosts we forward for
58951220Seric   G
59051220Seric   H
59151220Seric   I
59251220Seric   J
59351220Seric   K
59451220Seric   L	addresses that should not be forwarded to $R
59551220Seric   M
59651220Seric   N
59751220Seric   O	operators that indicate network operations (cannot be in local names)
59851220Seric   P
59951220Seric   Q
60051220Seric   R
60151220Seric   S
60251220Seric   T
60351220Seric   U	locally connected UUCP hosts
60451309Seric   V	UUCP hosts connected to relay $V
60551309Seric   W	UUCP hosts connected to relay $W
60651309Seric   X	UUCP hosts connected to relay $X
60751309Seric   Y	locally connected smart UUCP hosts
60851220Seric   Z
60954839Seric   .	the class containing only a dot
61051220Seric
61151220Seric
61251220SericM4 DIVERSIONS
61351220Seric
61457246Seric   1
61551220Seric   2	Local Ruleset 0 additions
61651220Seric   3	Local Ruleset 3 additions
61751268Seric   4	UUCP Ruleset 0 additions
61851309Seric   5	locally interpreted names (overrides $R)
61954839Seric   6	local configuration (at top of file)
62051220Seric   7	mailer definitions
62154839Seric   8	special local name recognition (late in ruleset 3)
62251220Seric   9
623