xref: /csrg-svn/usr.sbin/sendmail/cf/README (revision 68694)
151220Seric
251220Seric
357246Seric		NEW SENDMAIL CONFIGURATION FILES
451220Seric
557246Seric		Eric Allman <eric@CS.Berkeley.EDU>
651220Seric
7*68694Seric		@(#)README	8.49 (Berkeley) 03/31/95
851220Seric
951220Seric
1057246SericThis document describes the sendmail configuration files being used
1167469Sericat Berkeley.  These use features in the new (R8) sendmail; they will
1267469Sericnot work on other versions.
1351220Seric
1457246SericThese configuration files are probably not as general as previous
1565957Sericversions, and don't handle as many of the weird cases automagically.
1657246SericI was able to simplify by them for two reasons.  First, the network
1757246Serichas become more consistent -- for example, at this point, everyone
1857246Sericon the internet is supposed to be running a name server, so hacks to
1957246Serichandle NIC-registered hosts can go away.  Second, I assumed that a
2057246Sericsubdomain would be running SMTP internally -- UUCP is presumed to be
2157246Serica long-haul protocol.  I realize that this is not universal, but it
2257246Sericdoes describe the vast majority of sites with which I am familiar,
2357246Sericincluding those outside the US.
2451220Seric
2565957SericOf course, the downside of this is that if you do live in a weird
2665957Sericworld, things are going to get weirder for you.  I'm sorry about that,
2757246Sericbut at the time we at Berkeley had a problem, and it seemed like the
2857246Sericright thing to do.
2951220Seric
3057247SericThis package requires a post-V7 version of m4; if you are running the
3157247Seric4.2bsd, SysV.2, or 7th Edition version, I suggest finding a friend with
3257247Serica newer version.  You can m4-expand on their system, then run locally.
3365002SericSunOS's /usr/5bin/m4 or BSD-Net/2's m4 both work.  GNU m4 version 1.1
3465002Sericalso works.  Unfortunately, I'm told that the M4 on BSDI 1.0 doesn't
3565002Sericwork -- you'll have to use a Net/2 or GNU version.
3651220Seric
3758284SericIF YOU DON'T HAVE A BERKELEY MAKE, don't despair!  Just run
3864371Seric"m4 foo.mc > foo.cf" -- that should be all you need.  There is also
3964371Serica fairly crude (but functional) Makefile.dist that works on the
4064371Sericold version of make.
4158284Seric
4258284SericTo get started, you may want to look at tcpproto.mc (for TCP-only
4364324Sericsites), uucpproto.mc (for UUCP-only sites), and clientproto.mc (for
4464324Sericclusters of clients using a single mail host).  Others are versions
4558284Sericthat we use at Berkeley, although not all are in current use.  For
4658284Sericexample, ucbarpa has gone away, but I've left ucbarpa.mc in because
4758284Sericit demonstrates some interesting techniques.
4858284Seric
4957246SericI'm not pretending that this README describes everything that these
5057246Sericconfiguration files can do; clever people can probably tweak them
5157246Sericto great effect.  But it should get you started.
5257246Seric
5365509Seric*******************************************************************
5465509Seric***  BE SURE YOU CUSTOMIZE THESE FILES!  They have some		***
5565509Seric***  Berkeley-specific assumptions built in, such as the name	***
5665509Seric***  of our UUCP-relay.  You'll want to create your own domain	***
5765509Seric***  description, and use that in place of domain/Berkeley.m4.	***
5865509Seric*******************************************************************
5958087Seric
6065509Seric
6157246Seric+--------------------------+
6257246Seric| INTRODUCTION AND EXAMPLE |
6357246Seric+--------------------------+
6457246Seric
6557246SericConfiguration files are contained in the subdirectory "cf", with a
6657246Sericsuffix ".mc".  They must be run through "m4" to produce a ".cf" file.
6757246Seric
6851220SericLet's examine a typical .mc file (cf/cs-exposed.mc):
6951220Seric
7051220Seric	divert(-1)
7151220Seric	#
7251220Seric	# Copyright (c) 1983 Eric P. Allman
7351220Seric	# Copyright (c) 1988 The Regents of the University of California.
7451220Seric	# All rights reserved.
7551220Seric	#
7651220Seric	# Redistribution and use in source and binary forms are permitted
7751220Seric	# provided that the above copyright notice and this paragraph are
7851220Seric	# duplicated in all such forms and that any documentation,
7951220Seric	# advertising materials, and other materials related to such
8051220Seric	# distribution and use acknowledge that the software was developed
8151220Seric	# by the University of California, Berkeley.  The name of the
8251220Seric	# University may not be used to endorse or promote products derived
8351220Seric	# from this software without specific prior written permission.
8451220Seric	# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
8551220Seric	# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
8651220Seric	# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
8751220Seric	#
8851220Seric
8957246SericThe divert(-1) will delete the crud in the resulting output file.
9057247SericThe copyright notice is what your lawyers require.  Our lawyers require
9157246Sericthe one that I've included in my files. A copyleft is a copyright by
9257246Sericanother name.
9351220Seric
9457246SericThe next line MUST be
9557246Seric
9651220Seric	include(`../m4/cf.m4')
9751220Seric
9857246SericThis will pull in the M4 macros you will need to make sense of
9957246Sericeverything else.  As the saying goes, don't think about it, just
10057246Sericdo it.  If you don't do it, don't bother reading the rest of this
10157246Sericfile.
10251220Seric
10356778Seric	VERSIONID(`<SCCS or RCS version id>')
10451220Seric
10551220SericVERSIONID is a macro that stuffs the version information into the
10651220Sericresulting file.  We use SCCS; you could use RCS, something else, or
10757246Sericomit it completely.  This is not the same as the version id included
10857246Sericin SMTP greeting messages -- this is defined in m4/version.m4.
10951220Seric
11051268Seric	DOMAIN(cs.exposed)
11151220Seric
11251220SericThis example exposes the host inside of the CS subdomain -- that is,
11351220Sericit doesn't try to hide the name of the workstation to the outside
11451220Sericworld.  Changing this to DOMAIN(cs.hidden) would have made outgoing
11551220Sericmessages refer to "<username>@CS.Berkeley.EDU" instead of using the
11663857Sericlocal hostname.  Internally this is effected by using
11757246Seric"MASQUERADE_AS(CS.Berkeley.EDU)".
11851220Seric
11951268Seric	MAILER(smtp)
12051220Seric
12151309SericThese describe the mailers used at the default CS site site.  The
12251309Sericlocal mailer is always included automatically.
12351220Seric
12458087Seric
12557246Seric+--------+
12657246Seric| OSTYPE |
12757246Seric+--------+
12857246Seric
12951220SericNote that cf/cs-exposed.mc omits an OSTYPE macro -- this assumes
13051220Sericdefault Computer Science Division environment.  There are several
13157247Sericexplicit environments available: bsd4.3, bsd4.4, hpux, irix, osf1,
13257247Sericriscos4.5, sunos3.5, sunos4.1, and ultrix4.1.  These change things
13357247Sericlike the location of the alias file and queue directory.  Some of
13457247Sericthese files are identical to one another.
13551220Seric
13657246SericOperating system definitions are easy to write.  They may define
13757246Sericthe following variables (everything defaults, so an ostype file
13857246Sericmay be empty).
13951220Seric
14057246SericALIAS_FILE		[/etc/aliases] The location of the text version
14159761Seric			of the alias file(s).  It can be a comma-separated
14266790Seric			list of names (but be sure you quote values with
14368452Seric			commas in them -- for example, use
14466790Seric				define(`ALIAS_FILE', `a,b')
14566790Seric			to get "a" and "b" both listed as alias files;
14666790Seric			otherwise the define() primitive only sees "a").
14757246SericHELP_FILE		[/usr/lib/sendmail.hf] The name of the file
14857246Seric			containing information printed in response to
14957246Seric			the SMTP HELP command.
15057246SericQUEUE_DIR		[/var/spool/mqueue] The directory containing
15157246Seric			queue files.
15257246SericSTATUS_FILE		[/etc/sendmail.st] The file containing status
15357246Seric			information.
15458087SericLOCAL_MAILER_PATH	[/bin/mail] The program used to deliver local mail.
15564153SericLOCAL_MAILER_FLAGS	[rmn] The flags used by the local mailer.  The
15664153Seric			flags lsDFM are always included.
15763761SericLOCAL_MAILER_ARGS	[mail -d $u] The arguments passed to deliver local
15863761Seric			mail.
15968340SericLOCAL_MAILER_MAX	[undefined] If defined, the maximum size of local
16068340Seric			mail that you are willing to accept.
16158087SericLOCAL_SHELL_PATH	[/bin/sh] The shell used to deliver piped email.
16263791SericLOCAL_SHELL_FLAGS	[eu] The flags used by the shell mailer.  The
16363791Seric			flags lsDFM are always included.
16463791SericLOCAL_SHELL_ARGS	[sh -c $u] The arguments passed to deliver "prog"
16563791Seric			mail.
16667989SericLOCAL_SHELL_DIR		[$z:/] The directory search path in which the
16767989Seric			shell should run.
16858087SericUSENET_MAILER_PATH	[/usr/lib/news/inews] The name of the program
16958087Seric			used to submit news.
17058087SericUSENET_MAILER_FLAGS	[rlsDFMmn] The mailer flags for the usenet mailer.
17158087SericUSENET_MAILER_ARGS	[-m -h -n] The command line arguments for the
17258087Seric			usenet mailer.
17365911SericUSENET_MAILER_MAX	[100000] The maximum size of messages that will
17465911Seric			be accepted by the usenet mailer.
17563857SericSMTP_MAILER_FLAGS	[undefined] Flags added to SMTP mailer.  Default
17667915Seric			flags are `mDFMUX' for all SMTP-based mailers; the
17767915Seric			"esmtp" mailer adds `a' and "smtp8" adds `8'.
17865911SericSMTP_MAILER_MAX		[undefined] The maximum size of messages that will
17967915Seric			be transported using the smtp, smtp8, or esmtp
18067915Seric			mailers.
18167915SericSMTP_MAILER_ARGS	[IPC $h] The arguments passed to the smtp mailer.
18267915Seric			About the only reason you would want to change this
18367915Seric			would be to change the default port.
18467915SericESMTP_MAILER_ARGS	[IPC $h] The arguments passed to the esmtp mailer.
18567915SericSMTP8_MAILER_ARGS	[IPC $h] The arguments passed to the smtp8 mailer.
18667915SericRELAY_MAILER_ARGS	[IPC $h] The arguments passed to the relay mailer.
18763857SericUUCP_MAILER_FLAGS	[undefined] Flags added to UUCP mailer.  Default
188*68694Seric			flags are `DFMhuU' (and `m' for uucp-new mailer,
189*68694Seric			minus `U' for uucp-dom mailer).
19068057SericUUCP_MAILER_ARGS	[uux - -r -z -a$g -gC $h!rmail ($u)] The arguments
19163761Seric			passed to the UUCP mailer.
19263791SericUUCP_MAX_SIZE		[100000] The maximum size message accepted for
19363791Seric			transmission by the UUCP mailers.
19465911SericFAX_MAILER_PATH		[/usr/local/lib/fax/mailfax] The program used to
19565911Seric			submit FAX messages.
19665911SericFAX_MAILER_MAX		[100000] The maximum size message accepted for
19765911Seric			transmission by FAX.
19867934SericPOP_MAILER_PATH		[/usr/lib/mh/spop] The pathname of the POP mailer.
19967934SericPOP_MAILER_FLAGS	[Penu] Flags added to POP mailer.  Flags "lsDFM"
20067934Seric			are always added.
20167934SericPOP_MAILER_ARGS		[pop $u] The arguments passed to the POP mailer.
20267942SericPROCMAIL_MAILER_FLAGS	[Shu] Flags added to Procmail mailer.  Flags
20367942Seric			``DFMmn'' are always set.
20467942SericPROCMAIL_MAILER_ARGS	[procmail -m $h $f $u] The arguments passed to
20567942Seric			the Procmail mailer.
20668340SericPROCMAIL_MAILER_MAX	[undefined] If set, the maximum size message that
20768340Seric			will be accepted by the procmail mailer.
20857246Seric
20957246Seric+---------+
21057246Seric| DOMAINS |
21157246Seric+---------+
21257246Seric
21357246SericYou will probably want to collect domain-dependent defines into one
21457246Sericfile, referenced by the DOMAIN macro.  For example, our Berkeley
21557246Sericdomain file includes definitions for several internal distinguished
21657246Serichosts:
21757246Seric
21857246SericUUCP_RELAY	The host that will forward UUCP-addressed email.
21957246Seric		If not defined, all UUCP sites must be directly
22064028Seric		connected.
22157246SericBITNET_RELAY	The host that will forward BITNET-addressed email.
22257246Seric		If not defined, the .BITNET pseudo-domain won't work.
22357246SericLOCAL_RELAY	The site that will handle unqualified names -- that
22457246Seric		is, names with out an @domain extension.  If not set,
22557246Seric		they are assumed to belong on this machine.  This
22657246Seric		allows you to have a central site to store a
22757246Seric		company- or department-wide alias database.  This
22857246Seric		only works at small sites, and there are better
22964028Seric		methods.
23067915SericLUSER_RELAY	The site that will handle lusers -- that is, apparently
23167915Seric		local names that aren't local accounts or aliases.
23257246Seric
23367915SericAny of these can be either ``mailer:hostname'' (in which case the
234*68694Sericmailer is the internal mailer name, such as ``uucp-new'' and the hostname
23564028Sericis the name of the host as appropriate for that mailer) or just a
23664028Seric``hostname'', in which case a default mailer type (usually ``relay'',
23764153Serica variant on SMTP) is used.  WARNING: if you have a wildcard MX
23864153Sericrecord matching your domain, you probably want to define these to
23964153Serichave a trailing dot so that you won't get the mail diverted back
24064153Sericto yourself.
24164028Seric
24257246SericThe domain file can also be used to define a domain name, if needed
24357982Seric(using "DD<domain>") and set certain site-wide features.  If all hosts
24457982Sericat your site masquerade behind one email name, you could also use
24557982SericMASQUERADE_AS here.
24657246Seric
24758408SericYou do not have to define a domain -- in particular, if you are a
24858408Sericsingle machine sitting off somewhere, it is probably more work than
24958408Sericit's worth.  This is just a mechanism for combining "domain dependent
25058408Sericknowledge" into one place.
25158408Seric
25257246Seric+---------+
25357246Seric| MAILERS |
25457246Seric+---------+
25557246Seric
25651220SericThere are fewer mailers supported in this version than the previous
25751220Sericversion, owing mostly to a simpler world.
25851220Seric
25951220Sericlocal		The local and prog mailers.  You will almost always
26051220Seric		need these; the only exception is if you relay ALL
26157247Seric		your mail to another site.  This mailer is included
26257247Seric		automatically.
26351220Seric
26451220Sericsmtp		The Simple Mail Transport Protocol mailer.  This does
26551220Seric		not hide hosts behind a gateway or another other
26651220Seric		such hack; it assumes a world where everyone is
26763761Seric		running the name server.  This file actually defines
26867915Seric		four mailers: "smtp" for regular (old-style) SMTP to
26963761Seric		other servers, "esmtp" for extended SMTP to other
27067915Seric		servers, "smtp8" to do SMTP to other servers without
27167915Seric		converting 8-bit data to MIME (essentially, this is
27267915Seric		your statement that you know the other end is 8-bit
27367915Seric		clean even if it doesn't say so), and "relay" for
27467915Seric		transmission to our RELAY_HOST, LUSER_RELAY, or
27567915Seric		MAILER_HUB.
27651220Seric
27751220Sericuucp		The Unix-to-Unix Copy Program mailer.  Actually, this
27867471Seric		defines two mailers, "uucp-old" (a.k.a. "uucp") and
27967471Seric		"uucp-new" (a.k.a. "suucp").  The latter is for when you
28067471Seric		know that the UUCP mailer at the other end can handle
28167471Seric		multiple recipients in one transfer.  If the smtp mailer
28267471Seric		is also included in your configuration, two other mailers
283*68694Seric		("uucp-dom" and "uucp-uudom") are also defined [warning:
284*68694Seric		you MUST specify MAILER(smtp) before MAILER(uucp)].  When you
28567471Seric		include the uucp mailer, sendmail looks for all names in
28665218Seric		the $=U class and sends them to the uucp-old mailer; all
28765218Seric		names in the $=Y class are sent to uucp-new; and all
28865218Seric		names in the $=Z class are sent to uucp-uudom.  Note that
28957246Seric		this is a function of what version of rmail runs on
29057246Seric		the receiving end, and hence may be out of your control.
29165218Seric		See the section below describing UUCP mailers in more
29265218Seric		detail.
29351220Seric
29458087Sericusenet		Usenet (network news) delivery.  If this is specified,
29558087Seric		an extra rule is added to ruleset 0 that forwards all
29658087Seric		local email for users named ``group.usenet'' to the
29758087Seric		``inews'' program.  Note that this works for all groups,
29858087Seric		and may be considered a security problem.
29958087Seric
30058363Sericfax		Facsimile transmission.  This is experimental and based
30158363Seric		on Sam Leffler's FlexFAX software.  For more information,
30258363Seric		see below.
30358087Seric
30465148Sericpop		Post Office Protocol.
30558363Seric
30667942Sericprocmail	An interface to procmail (does not come with sendmail).
30767942Seric		This is designed to be used in mailertables.  For example,
30867942Seric		a common question is "how do I forward all mail for a given
30967942Seric		domain to a single person?".  If you have this mailer
31067942Seric		defined, you could set up a mailertable reading:
31167942Seric
31267942Seric			host.com	procmail:/etc/procmailrcs/host.com
31367942Seric
31467942Seric		with the file /etc/procmailrcs/host.com reading:
31567942Seric
31667942Seric			:0	# forward mail for host.com
31767942Seric			! -oi -f $1 person@other.host
31867942Seric
31967942Seric		This would arrange for (anything)@host.com to be sent
32067942Seric		to person@other.host.  Within the procmail script, $1 is
32167942Seric		the name of the sender and $2 is the name of the recipient.
32267942Seric		If you use this with FEATURE(local_procmail), the FEATURE
32367942Seric		should be listed first.
32467942Seric
32567929SericThe local mailer accepts addresses of the form "user+detail", where
32667929Sericthe "+detail" is not used for mailbox matching but is available
32767942Sericto certain local mail programs (in particular, see FEATURE(local_procmail)).
32867929SericFor example, "eric", "eric+sendmail", and "eric+sww" all indicate
32967929Sericthe same user, but additional arguments <null>, "sendmail", and "sww"
33067929Sericmay be provided for use in sorting mail.
33165148Seric
33267929Seric
33357246Seric+----------+
33457246Seric| FEATURES |
33557246Seric+----------+
33651268Seric
33757246SericSpecial features can be requested using the "FEATURE" macro.  For
33857246Sericexample, the .mc line:
33957246Seric
34057246Seric	FEATURE(use_cw_file)
34157246Seric
34257246Serictells sendmail that you want to have it read an /etc/sendmail.cw
34358782Sericfile to get values for class $=w.  The FEATURE may contain a single
34458782Sericoptional parameter -- for example:
34557246Seric
34658782Seric	FEATURE(mailertable, dbm /usr/lib/mailertable)
34758782Seric
34858782SericAvailable features are:
34958782Seric
35057246Sericuse_cw_file	Read the file /etc/sendmail.cw file to get alternate
35157246Seric		names for this host.  This might be used if you were
35257246Seric		on a host that MXed for a dynamic set of other
35357246Seric		hosts.  If the set is static, just including the line
35457246Seric		"Cw<name1> <name2> ..." is probably superior.
35558408Seric		The actual filename can be overridden by redefining
35658408Seric		confCW_FILE.
35764324Seric
35858087Sericredirect	Reject all mail addressed to "address.REDIRECT" with
35958087Seric		a ``551 User not local; please try <address>'' message.
36058087Seric		If this is set, you can alias people who have left
36158087Seric		to their new address with ".REDIRECT" appended.
36264324Seric
36358284Sericnouucp		Don't do anything special with UUCP addresses at all.
36464324Seric
36559080Sericnocanonify	Don't pass addresses to $[ ... $] for canonification.
36659080Seric		This would generally only be used by sites that only
36759080Seric		act as mail gateways or which have user agents that do
36864028Seric		full canonification themselves.  You may also want to
36964028Seric		use "define(`confBIND_OPTS',`-DNSRCH -DEFNAMES')" to
37064028Seric		turn off the usual resolver options that do a similar
37164028Seric		thing.
37264324Seric
37367917Sericstickyhost	If set, email sent to "user@local.host" are marked
37458526Seric		as "sticky" -- that is, the local addresses aren't
37558526Seric		matched against UDB and don't go through ruleset 5.
37667915Seric		This is used if you want a set up where "user" is
37767915Seric		not necessarily the same as "user@local.host", e.g.,
37867915Seric		to make a distinct domain-wide namespace.  Prior to
37967915Seric		8.7 this was the default, and notsticky was used to
38067915Seric		turn this off.
38164324Seric
38258782Sericmailertable	Include a "mailer table" which can be used to override
38358782Seric		routing for particular domains.  The argument of the
38458782Seric		FEATURE may be the key definition.  If none is specified,
38558782Seric		the definition used is:
38664164Seric			hash -o /etc/mailertable
38763761Seric		Keys in this database are fully qualified domain names
38863761Seric		or partial domains preceded by a dot -- for example,
38963761Seric		"vangogh.CS.Berkeley.EDU" or ".CS.Berkeley.EDU".
39063761Seric		Values must be of the form:
39158782Seric			mailer:domain
39263761Seric		where "mailer" is the internal mailer name, and "domain"
39363761Seric		is where to send the message.  These maps are not
39463761Seric		reflected into the message header.
39564324Seric
39663761Sericdomaintable	Include a "domain table" which can be used to provide
39767451Seric		domain name mapping.  Use of this should really be
39867451Seric		limited to your own domains.  It may be useful if you
39967451Seric		change names (e.g., your company changes names from
40067451Seric		oldname.com to newname.com).  The argument of the
40167451Seric		FEATURE may be the key definition.  If none is specified,
40267451Seric		the definition used is:
40364164Seric			hash -o /etc/domaintable
40467451Seric		The key in this table is the domain name; the value is
40567451Seric		the new (fully qualified) domain.  Anything in the
40663761Seric		domaintable is reflected into headers; that is, this
40763761Seric		is done in ruleset 3.
40864324Seric
40959034Sericbitdomain	Look up bitnet hosts in a table to try to turn them into
41059034Seric		internet addresses.  The table can be built using the
41164153Seric		bitdomain program contributed by John Gardiner Myers.
41259034Seric		The argument of the FEATURE may be the key definition; if
41359034Seric		none is specified, the definition used is:
41464164Seric			hash -o /etc/bitdomain.db
41559034Seric		Keys are the bitnet hostname; values are the corresponding
41659034Seric		internet hostname.
41764324Seric
41859037Sericuucpdomain	Similar feature for UUCP hosts.  The default map definition
41959037Seric		is:
42064164Seric			hash -o /etc/uudomain.db
42159037Seric		At the moment there is no automagic tool to build this
42259037Seric		database.
42364324Seric
42460263Sericalways_add_domain
42560263Seric		Include the local host domain even on locally delivered
42660263Seric		mail.  Normally it is not added unless it is already
42760263Seric		present.
42864324Seric
42963761Sericallmasquerade	If masquerading is enabled (using MASQUERADE_AS), this
43063761Seric		feature will cause recipient addresses to also masquerade
43163761Seric		as being from the masquerade host.  Normally they get
43263761Seric		the local hostname.  Although this may be right for
43363761Seric		ordinary users, it can break local aliases.  For example,
43463761Seric		if you send to "localalias", the originating sendmail will
43563761Seric		find that alias and send to all members, but send the
43663761Seric		message with "To: localalias@masqueradehost".  Since that
43763761Seric		alias likely does not exist, replies will fail.  Use this
43863761Seric		feature ONLY if you can guarantee that the ENTIRE
43963761Seric		namespace on your masquerade host supersets all the
44063761Seric		local entries.
44164324Seric
44264153Sericnodns		We aren't running DNS at our site (for example,
44364153Seric		we are UUCP-only connected).  It's hard to consider
44464153Seric		this a "feature", but hey, it had to go somewhere.
44557246Seric
44664324Sericnullclient	This is a special case -- it creates a stripped down
44764324Seric		configuration file containing nothing but support for
44864394Seric		forwarding all mail to a central hub via a local
44964394Seric		SMTP-based network.  The argument is the name of that
45064394Seric		hub.
45164394Seric
45264394Seric		The only other feature that should be used in conjunction
45364394Seric		with this one is "nocanonify" (this causes addresses to
45464394Seric		be sent unqualified via the SMTP connection; normally
45564394Seric		they are qualifed with the masquerade name, which
45664394Seric		defaults to the name of the hub machine).  No mailers
45764394Seric		should be defined.  No aliasing or forwarding is done.
45857246Seric
45967942Sericlocal_procmail	Use procmail as the local mailer.  This mailer can
46067929Seric		make use of the "user+indicator@local.host" syntax;
46167929Seric		normally the +indicator is just tossed, but by default
46267929Seric		it is passed as the -a argument to procmail.  The
46367929Seric		argument to this feature is the pathname of procmail,
46467929Seric		which defaults to /usr/local/bin/procmail.
46564324Seric
46668206Sericbestmx_is_local	Accept mail as though locally addressed for any host that
46768206Seric		lists us as the best possible MX record.  This generates
46868206Seric		additional DNS traffic, but should be OK for low to
46968206Seric		medium traffic hosts.
47067929Seric
47168216Sericsmrsh		Use the SendMail Restricted SHell (smrsh) provided
47268216Seric		with the distribution instead of /bin/sh for mailing
47368216Seric		to programs.  This improves the ability of the local
47468216Seric		system administrator to control what gets run via
47568216Seric		e-mail.  If an argument is provided it is used as the
47668216Seric		pathname to smrsh; otherwise, /usr/local/etc/smrsh is
47768216Seric		assumed.
47868206Seric
47968216Seric
48057246Seric+-------+
48157246Seric| HACKS |
48257246Seric+-------+
48357246Seric
48457246SericSome things just can't be called features.  To make this clear,
48557247Sericthey go in the hack subdirectory and are referenced using the HACK
48657246Sericmacro.  These will tend to be site-dependent.  The release
48757246Sericincludes the Berkeley-dependent "cssubdomain" hack (that makes
48857246Sericsendmail accept local names in either Berkeley.EDU or CS.Berkeley.EDU;
48957246Sericthis is intended as a short-term aid while we move hosts into
49057246Sericsubdomains.
49157246Seric
49258087Seric
49357246Seric+--------------------+
49457246Seric| SITE CONFIGURATION |
49557246Seric+--------------------+
49657246Seric
49768057Seric    *****************************************************
49868057Seric    * This section is really obsolete, and is preserved	*
49968057Seric    * only for back compatibility.  You should plan on	*
50068057Seric    * using mailertables for new installations.	  In	*
50168057Seric    * particular, it doesn't work for the newer forms	*
50268057Seric    * of UUCP mailers, such as uucp-uudom.		*
50368057Seric    *****************************************************
50468057Seric
50557246SericComplex sites will need more local configuration information, such as
50657246Sericlists of UUCP hosts they speak with directly.  This can get a bit more
50757246Serictricky.  For an example of a "complex" site, see cf/ucbvax.mc.
50857246Seric
50966336SericIf your host is known by several different names, you need to augment
51066336Sericthe $=w class.  This is a list of names by which you are known, and
51166336Sericanything sent to an address using a host name in this list will be
51266336Serictreated as local mail.  You can do this in two ways: either create
51366336Sericthe file /etc/sendmail.cw containing a list of your aliases (one per
51466336Sericline), and use ``FEATURE(use_cw_file)'' in the .mc file, or add the
51566336Sericline:
51666336Seric
51766336Seric	Cw alias.host.name
51866336Seric
51966336Sericat the end of that file.  See the ``vangogh.mc'' file for an example.
52066336SericBe sure you use the fully-qualified name of the host, rather than a
52166336Sericshort name.
52266336Seric
52357246SericThe SITECONFIG macro allows you to indirectly reference site-dependent
52457246Sericconfiguration information stored in the siteconfig subdirectory.  For
52557246Sericexample, the line
52657246Seric
52757246Seric	SITECONFIG(uucp.ucbvax, ucbvax, U)
52857246Seric
52957246Sericreads the file uucp.ucbvax for local connection information.  The
53057246Sericsecond parameter is the local name (in this case just "ucbvax" since
53166336Sericit is locally connected, and hence a UUCP hostname).  The third
53266336Sericparameter is the name of both a macro to store the local name (in
53366336Sericthis case, $U) and the name of the class (e.g., $=U) in which to store
53466336Sericthe host information read from the file.  Another SITECONFIG line reads
53557246Seric
53657246Seric	SITECONFIG(uucp.ucbarpa, ucbarpa.Berkeley.EDU, W)
53757246Seric
53857246SericThis says that the file uucp.ucbarpa contains the list of UUCP sites
53957246Sericconnected to ucbarpa.Berkeley.EDU.  The $=W class will be used to
54066336Sericstore this list, and $W is defined to be ucbarpa.Berkeley.EDU, that
54166336Sericis, the name of the relay to which the hosts listed in uucp.ucbarpa
54266336Sericare connected.  [The machine ucbarpa is gone now, but I've left
54357246Sericthis out-of-date configuration file around to demonstrate how you
54457246Sericmight do this.]
54557246Seric
54666336SericNote that the case of SITECONFIG with a third parameter of ``U'' is
54766336Sericspecial; the second parameter is assumed to be the UUCP name of the
54866336Sericlocal site, rather than the name of a remote site, and the UUCP name
54966336Sericis entered into $=w (the list of local hostnames) as $U.UUCP.
55066336Seric
55157246SericThe siteconfig file (e.g., siteconfig/uucp.ucbvax.m4) contains nothing
55257246Sericmore than a sequence of SITE macros describing connectivity.  For
55357246Sericexample:
55457246Seric
55557246Seric	SITE(cnmat)
55657246Seric	SITE(sgi olympus)
55757246Seric
55857246SericThe second example demonstrates that you can use two names on the
55957246Sericsame line; these are usually aliases for the same host (or are at
56057246Sericleast in the same company).
56157246Seric
56258087Seric
56365218Seric+--------------------+
56465218Seric| USING UUCP MAILERS |
56565218Seric+--------------------+
56665218Seric
56765218SericIt's hard to get UUCP mailers right because of the extremely ad hoc
56865218Sericnature of UUCP addressing.  These config files are really designed
56965218Sericfor domain-based addressing, even for UUCP sites.
57065218Seric
57165218SericThere are four UUCP mailers available.  The choice of which one to
57265218Sericuse is partly a matter of local preferences and what is running at
57365218Sericthe other end of your UUCP connection.  Unlike good protocols that
57465218Sericdefine what will go over the wire, UUCP uses the policy that you
57565218Sericshould do what is right for the other end; if they change, you have
57665218Sericto change.  This makes it hard to do the right thing, and discourages
57765218Sericpeople from updating their software.  In general, if you can avoid
57865218SericUUCP, please do.
57965218Seric
58065218SericThe major choice is whether to go for a domainized scheme or a
58165218Sericnon-domainized scheme.  This depends entirely on what the other
58265218Sericend will recognize.  If at all possible, you should encourage the
58365218Sericother end to go to a domain-based system -- non-domainized addresses
58465218Sericdon't work entirely properly.
58565218Seric
58665218SericThe four mailers are:
58765218Seric
58865218Seric    uucp-old (obsolete name: "uucp")
58965218Seric	This is the oldest, the worst (but the closest to UUCP) way of
59065218Seric	sending messages accros UUCP connections.  It does bangify
59165218Seric	everything and prepends $U (your UUCP name) to the sender's
59265218Seric	address (which can already be a bang path itself).  It can
59365218Seric	only send to one address at a time, so it spends a lot of
59465218Seric	time copying duplicates of messages.  Avoid this if at all
59565218Seric	possible.
59665218Seric
59765218Seric    uucp-new (obsolete name: "suucp")
59865218Seric	The same as above, except that it assumes that in one rmail
59965218Seric	command you can specify several recipients.  It still has a
60065218Seric	lot of other problems.
60165218Seric
60265218Seric    uucp-dom
60365218Seric	This UUCP mailer keeps everything as domain addresses.
60467471Seric	Basically, it uses the SMTP mailer rewriting rules.  This mailer
60567471Seric	is only included if MAILER(smtp) is also specified.
60665218Seric
60765218Seric	Unfortunately, a lot of UUCP mailer transport agents require
60865218Seric	bangified addresses in the envelope, although you can use
60965218Seric	domain-based addresses in the message header.  (The envelope
61065218Seric	shows up as the From_ line on UNIX mail.)  So....
61165218Seric
61265218Seric    uucp-uudom
61365218Seric	This is a cross between uucp-new (for the envelope addresses)
61465218Seric	and uucp-dom (for the header addresses).  It bangifies the
61565218Seric	envelope sender (From_ line in messages) without adding the
61665218Seric	local hostname, unless there is no host name on the address
61765218Seric	at all (e.g., "wolf") or the host component is a UUCP host name
61865218Seric	instead of a domain name ("somehost!wolf" instead of
61967471Seric	"some.dom.ain!wolf").  This is also included only if MAILER(smtp)
62067471Seric	is also specified.
62165218Seric
62265218SericExamples:
62365218Seric
62465218SericWe are on host grasp.insa-lyon.fr (UUCP host name "grasp").  The
62565218Sericfollowing summarizes the sender rewriting for various mailers.
62665218Seric
62765218SericMailer          sender		rewriting in the envelope
62865218Seric------		------		-------------------------
62965218Sericuucp-{old,new}	wolf		grasp!wolf
63065218Sericuucp-dom	wolf		wolf@grasp.insa-lyon.fr
63165218Sericuucp-uudom	wolf		grasp.insa-lyon.fr!wolf
63265218Seric
63365218Sericuucp-{old,new}	wolf@fr.net	grasp!fr.net!wolf
63465218Sericuucp-dom	wolf@fr.net	wolf@fr.net
63565218Sericuucp-uudom	wolf@fr.net	fr.net!wolf
63665218Seric
63765218Sericuucp-{old,new}	somehost!wolf	grasp!somehost!wolf
63865218Sericuucp-dom	somehost!wolf	somehost!wolf@grasp.insa-lyon.fr
63965218Sericuucp-uudom	somehost!wolf	grasp.insa-lyon.fr!somehost!wolf
64065218Seric
64165218SericIf you are using one of the domainized UUCP mailers, you really want
64265218Sericto convert all UUCP addresses to domain format -- otherwise, it will
64365218Sericdo it for you (and probably not the way you expected).  For example,
64465218Sericif you have the address foo!bar!baz (and you are not sending to foo),
64565218Sericthe heuristics will add the @uucp.relay.name or @local.host.name to
64665218Sericthis address.  However, if you map foo to foo.host.name first, it
64765218Sericwill not add the local hostname.  You can do this using the uucpdomain
64865218Sericfeature.
64965218Seric
65065218Seric
65157246Seric+-------------------+
65257246Seric| TWEAKING RULESETS |
65357246Seric+-------------------+
65457246Seric
65551268SericFor more complex configurations, you can define special rules.
65651268SericThe macro LOCAL_RULE_3 introduces rules that are used in canonicalizing
65751268Sericthe names.  Any modifications made here are reflected in the header.
65851268Seric
65951268SericA common use is to convert old UUCP addreses to SMTP addresses using
66051268Sericthe UUCPSMTP macro.  For example:
66151268Seric
66251268Seric	LOCAL_RULE_3
66351268Seric	UUCPSMTP(decvax,	decvax.dec.com)
66451268Seric	UUCPSMTP(research,	research.att.com)
66551268Seric
66651268Sericwill cause addresses of the form "decvax!user" and "research!user"
66751268Sericto be converted to "user@decvax.dec.com" and "user@research.att.com"
66851268Sericrespectively.
66951268Seric
67065957SericThis could also be used to look up hosts in a database map:
67157246Seric
67257246Seric	LOCAL_RULE_3
67357246Seric	R$* < @ $+ > $*		$: $1 < @ $(hostmap $2 $) > $3
67457246Seric
67557246SericThis map would be defined in the LOCAL_CONFIG portion, as shown below.
67657246Seric
67751268SericSimilarly, LOCAL_RULE_0 can be used to introduce new parsing rules.
67851268SericFor example, new rules are needed to parse hostnames that you accept
67951309Sericvia MX records.  For example, you might have:
68051268Seric
68151309Seric	LOCAL_RULE_0
68265986Seric	R$+ <@ host.dom.ain.>	$#uucp $@ cnmat $: $1 < @ host.dom.ain.>
68351309Seric
68451309SericYou would use this if you had installed an MX record for cnmat.Berkeley.EDU
68551309Sericpointing at this host; this rule catches the message and forwards it on
68651309Sericusing UUCP.
68751309Seric
68858681SericYou can also tweak rulesets 1 and 2 using LOCAL_RULE_1 and LOCAL_RULE_2.
68958681SericThese rulesets are normally empty.
69058681Seric
69157246SericA similar macro is LOCAL_CONFIG.  This introduces lines added after the
69257246Sericboilerplate option setting but before rulesets, and can be used to
69357945Sericdeclare local database maps or whatever.  For example:
69451268Seric
69557246Seric	LOCAL_CONFIG
69657246Seric	Khostmap hash /etc/hostmap.db
69757246Seric	Kyplocal nis -m hosts.byname
69851220Seric
69958087Seric
70057246Seric+---------------------------+
70157246Seric| MASQUERADING AND RELAYING |
70257246Seric+---------------------------+
70357246Seric
70457246SericYou can have your host masquerade as another using
70557246Seric
70657246Seric	MASQUERADE_AS(host.domain)
70757246Seric
70865957SericThis causes outgoing SMTP mail to be labeled as coming from the
70957246Sericindicated domain, rather than $j.  One normally masquerades as one
71065957Sericof one's own subdomains (for example, it's unlikely that I would
71157246Sericchoose to masquerade as an MIT site).
71257246Seric
71364153SericThe masquerade name is not normally canonified, so it is important
71464153Sericthat it be your One True Name, that is, fully qualified and not a
71564153SericCNAME.
71664153Seric
71757246Sericthere are always users that need to be "exposed" -- that is, their
71857246Sericinternal site name should be displayed instead of the masquerade name.
71957246SericRoot is an example.  You can add users to this list using
72057246Seric
72157246Seric	EXPOSED_USER(usernames)
72257246Seric
72357246SericThis adds users to class E; you could also use something like
72457246Seric
72557246Seric	FE/etc/sendmail.cE
72657246Seric
72757246SericYou can also arrange to relay all unqualified names (that is, names
72857246Sericwithout @host) to a relay host.  For example, if you have a central
72957246Sericemail server, you might relay to that host so that users don't have
73057246Sericto have .forward files or aliases.  You can do this using
73157246Seric
73258071Seric	define(`LOCAL_RELAY', mailer:hostname)
73357246Seric
73458071SericThe ``mailer:'' can be omitted, in which case the mailer defaults to
73558071Seric"smtp".  There are some user names that you don't want relayed, perhaps
73658071Sericbecause of local aliases.  A common example is root, which may be
73758071Sericlocally aliased.  You can add entries to this list using
73857246Seric
73957246Seric	LOCAL_USER(usernames)
74057246Seric
74157246SericThis adds users to class L; you could also use something like
74257246Seric
74357246Seric	FL/etc/sendmail.cL
74457246Seric
74564153SericIf you want all incoming mail sent to a centralized hub, as for a
74664153Sericshared /var/spool/mail scheme, use
74757591Seric
74858071Seric	define(`MAIL_HUB', mailer:hostname)
74957591Seric
75058071SericAgain, ``mailer:'' defaults to "smtp".  If you define both LOCAL_RELAY
75166047Sericand MAIL_HUB, unqualified names will be sent to the LOCAL_RELAY and
75266047Sericother local names will be sent to MAIL_HUB.  Names in $=L will be
75366047Sericdelivered locally, so you MUST have aliases or .forward files for them.
75466047Seric
75566047SericFor example, if are on machine mastodon.CS.Berkeley.EDU, the following
75658071Sericcombinations of settings will have the indicated effects:
75757591Seric
75857591Sericemail sent to....	eric			  eric@mastodon.CS.Berkeley.EDU
75957591Seric
76057591SericLOCAL_RELAY set to	mail.CS.Berkeley.EDU	  (delivered locally)
76157591Sericmail.CS.Berkeley.EDU
76257591Seric
76357591SericMAIL_HUB set to		mammoth.CS.Berkeley.EDU	  mammoth.CS.Berkeley.EDU
76457591Sericmammoth.CS.Berkeley.EDU
76557591Seric
76657591SericBoth LOCAL_RELAY and	mail.CS.Berkeley.EDU	  mammoth.CS.Berkeley.EDU
76757591SericMAIL_HUB set as above
76857591Seric
76964153SericIf you want all outgoing mail to go to a central relay site, define
77064153SericSMART_HOST as well.  Briefly:
77158071Seric
77264153Seric	LOCAL_RELAY applies to unqualifed names (e.g., "eric").
77364153Seric	MAIL_HUB applies to names qualified with the name of the
77464153Seric		local host (e.g., "eric@mastodon.CS.Berkeley.EDU").
77564153Seric	SMART_HOST applies to names qualified with other hosts.
77664153Seric
77764153SericHowever, beware that other relays (e.g., UUCP_RELAY, BITNET_RELAY, and
77864153SericFAX_RELAY) take precedence over SMART_HOST, so if you really want
77964153Sericabsolutely everything to go to a single central site you will need to
78064153Sericunset all the other relays -- or better yet, find or build a minimal
78164153Sericconfig file that does this.
78264153Seric
78364153Seric
78458071Seric+-------------------------------+
78558071Seric| NON-SMTP BASED CONFIGURATIONS |
78658071Seric+-------------------------------+
78758071Seric
78858071SericThese configuration files are designed primarily for use by SMTP-based
78958071Sericsites.  I don't pretend that they are well tuned for UUCP-only or
79058071SericUUCP-primarily nodes (the latter is defined as a small local net
79158071Sericconnected to the rest of the world via UUCP).  However, there is one
79258071Serichook to handle some special cases.
79358071Seric
79458071SericYou can define a ``smart host'' that understands a richer address syntax
79558071Sericusing:
79658071Seric
79758071Seric	define(`SMART_HOST', mailer:hostname)
79858071Seric
79964028SericIn this case, the ``mailer:'' defaults to "relay".  Any messages that
80058071Sericcan't be handled using the usual UUCP rules are passed to this host.
80158071Seric
80258071SericIf you are on a local SMTP-based net that connects to the outside
80358071Sericworld via UUCP, you can use LOCAL_NET_CONFIG to add appropriate rules.
80458071SericFor example:
80558071Seric
80658071Seric	define(`SMART_HOST', suucp:uunet)
80758071Seric	LOCAL_NET_CONFIG
80863761Seric	R$* < @ $* .$m. > $*	$#smtp $@ $2.$m. $: $1 < @ $2.$m. > $3
80958071Seric
81058071SericThis will cause all names that end in your domain name ($m) via
81158071SericSMTP; anything else will be sent via suucp (smart UUCP) to uunet.
81263761SericIf you have FEATURE(nocanonify), you may need to omit the dots after
81363761Sericthe $m.  If you are running a local DNS inside your domain which is
81463761Sericnot otherwise connected to the outside world, you probably want to
81563761Sericuse:
81658071Seric
81763761Seric	define(`SMART_HOST', smtp:fire.wall.com)
81863761Seric	LOCAL_NET_CONFIG
81963761Seric	R$* < @ $* . > $*	$#smtp $@ $2. $: $1 < @ $2. > $3
82058071Seric
82163761SericThat is, send directly only to things you found in your DNS lookup;
82263761Sericanything else goes through SMART_HOST.
82363761Seric
82464153SericIf you are not running DNS at all, it is important to use
82564153SericFEATURE(nodns) to avoid having sendmail queue everything waiting
82664153Sericfor the name server to come up.
82763761Seric
82864153Seric
82964259Seric+-----------+
83064259Seric| WHO AM I? |
83164259Seric+-----------+
83264259Seric
83364259SericNormally, the $j macro is automatically defined to be your fully
83464259Sericqualified domain name (FQDN).  Sendmail does this by getting your
83564259Serichost name using gethostname and then calling gethostbyname on the
83664259Sericresult.  For example, in some environments gethostname returns
83764259Sericonly the root of the host name (such as "foo"); gethostbyname is
83864259Sericsupposed to return the FQDN ("foo.bar.com").  In some (fairly rare)
83964259Sericcases, gethostbyname may fail to return the FQDN.  In this case
84064259Sericyou MUST define confDOMAIN_NAME to be your fully qualified domain
84164259Sericname.  This is usually done using:
84264259Seric
84364259Seric	Dmbar.com
84464259Seric	define(`confDOMAIN_NAME', `$w.$m')dnl
84564259Seric
84664259Seric
84764028Seric+--------------------+
84864028Seric| USING MAILERTABLES |
84964028Seric+--------------------+
85064028Seric
85164028SericTo use FEATURE(mailertable), you will have to create an external
85264028Sericdatabase containing the routing information for various domains.
85364028SericFor example, a mailertable file in text format might be:
85464028Seric
85564028Seric	.my.domain		xnet:%1.my.domain
85664028Seric	uuhost1.my.domain	suucp:uuhost1
85764028Seric	.bitnet			smtp:relay.bit.net
85864028Seric
85964028SericThis should normally be stored in /etc/mailertable.  The actual
86064028Sericdatabase version of the mailertable is built using:
86164028Seric
86264028Seric	makemap hash /etc/mailertable.db < /etc/mailertable
86364028Seric
86464028SericThe semantics are simple.  Any LHS entry that does not begin with
86564028Serica dot matches the full host name indicated.  LHS entries beginning
86664028Sericwith a dot match anything ending with that domain name -- that is,
86764028Sericthey can be thought of as having a leading "*" wildcard.  Matching
86864028Sericis done in order of most-to-least qualified -- for example, even
86964028Sericthough ".my.domain" is listed first in the above example, an entry
87064028Sericof "uuhost1.my.domain" will match the second entry since it is
87164028Sericmore explicit.
87264028Seric
87364028SericThe RHS should always be a "mailer:host" pair.  The mailer is the
87464028Sericconfiguration name of a mailer (that is, an `M' line in the
87564028Sericsendmail.cf file).  The "host" will be the hostname passed to
87664028Sericthat mailer.  In domain-based matches (that is, those with leading
87764028Sericdots) the "%1" may be used to interpolate the wildcarded part of
87864028Sericthe host name.  For example, the first line above sends everything
87964028Sericaddressed to "anything.my.domain" to that same host name, but using
88064028Sericthe (presumably experimental) xnet mailer.
88164028Seric
88267915SericIn some cases you may want to temporarily turn off MX records,
88367915Sericparticularly on gateways.  For example, you may want to MX
88467915Sericeverything in a domain to one machine that then forwards it
88567915Sericdirectly.  To do this, you might use the DNS configuration:
88664028Seric
88767915Seric	*.domain.	IN	MX	0	relay.machine
88867915Seric
88967915Sericand on relay.machine use the mailertable:
89067915Seric
89167915Seric	.domain		smtp:[gateway.domain]
89267915Seric
89367915SericThe [square brackets] turn off MX records for this host only.
89467915SericIf you didn't do this, the mailertable would use the MX record
89567915Sericagain, which would give you an MX loop.
89667915Seric
89767915Seric
89864153Seric+--------------------------------+
89964153Seric| USING USERDB TO MAP FULL NAMES |
90064153Seric+--------------------------------+
90164153Seric
90264153SericThe user database was not originally intended for mapping full names
90364153Sericto login names (e.g., Eric.Allman => eric), but some people are using
90464153Sericit that way.  (I would recommend that you set up aliases for this
90564153Sericpurpose instead -- since you can specify multiple alias files, this
90664153Sericis fairly easy.)  The intent was to locate the default maildrop at
90764153Serica site, but allow you to override this by sending to a specific host.
90864153Seric
90964153SericIf you decide to set up the user database in this fashion, it is
91067917Sericimperative that you not use FEATURE(stickyhost) -- otherwise,
91164153Serice-mail sent to Full.Name@local.host.name will be rejected.
91264153Seric
91367917SericTo build the internal form of the user database, use:
91464153Seric
91564259Seric	makemap btree /usr/data/base.db < /usr/data/base.txt
91664259Seric
91764259Seric
91867539Seric+--------------------------------+
91967539Seric| MISCELLANEOUS SPECIAL FEATURES |
92067539Seric+--------------------------------+
92167539Seric
92267539SericDOTTED_USER(name)
92367539Seric	Sometimes it is convenient to merge configuration on a
92467539Seric	centralized mail machine, for example, to forward all
92567539Seric	root mail to a mail server.  In this case it might be
92667539Seric	useful to be able to treat the root addresses as a class
92767539Seric	of addresses with subtle differences.  You can do this
92867539Seric	using dotted users.  For example, a client might include
92967539Seric	the alias:
93067539Seric
93167539Seric		root:  root.client1@server
93267539Seric
93367539Seric	On the server, the mail configuration would include:
93467539Seric
93567539Seric		DOTTED_USER(root)
93667539Seric
93767539Seric	Aliases on the server that would match this address would
93867539Seric	be "root.client", "root.*", and "root", tried in that
93967539Seric	order.  You can specify multiple addresses either by
94067539Seric	joining them in one DOTTTED_USER macro or by having
94167539Seric	multiple macros:
94267539Seric
94367539Seric		DOTTED_USER(root)
94467539Seric		DOTTED_USER(postmaster mailer-daemon)
94567539Seric
94667539Seric	defines three dotted users.
94767539Seric
94867539Seric
94967960Seric+----------------+
95067960Seric| SECURITY NOTES |
95167960Seric+----------------+
95267960Seric
95367960SericA lot of sendmail security comes down to you.  Sendmail 8 is much
95467960Sericmore careful about checking for security problems than previous
95567960Sericversions, but there are some things that you still need to watch
95667960Sericfor.  In particular:
95767960Seric
95867960Seric* Make sure the aliases file isn't writable except by trusted
95967960Seric  system personnel.  This includes both the text and database
96067960Seric  version.
96167960Seric
96267960Seric* Make sure that other files that sendmail reads, such as the
96367960Seric  mailertable, is only writable by trusted system personnel.
96467960Seric
96567960Seric* The queue directory should not be world writable PARTICULARLY
96667960Seric  if your system allows "file giveaways" (that is, if a non-root
96767960Seric  user can chown any file they own to any other user).
96867960Seric
96967960Seric* If your system allows file giveaways, DO NOT create a publically
97067960Seric  writable directory for forward files.  This will allow anyone
97167960Seric  to steal anyone else's e-mail.  Instead, create a script that
97267960Seric  copies the .forward file from users' home directories once a
97367960Seric  night (if you want the non-NFS-mounted forward directory).
97467960Seric
97567960Seric* If your system allows file giveaways, you'll find that
97667960Seric  sendmail is much less trusting of :include: files -- in
97767960Seric  particular, you'll have to have /SENDMAIL/ANY/SHELL/ in
97867960Seric  /etc/shells before they will be trusted (that is, before
97967960Seric  files and programs listed in them will be honored).
98067960Seric
98167960SericIn general, file giveaways are a mistake -- if you can turn them
98267960Sericoff I recommend you do so.
98367960Seric
98467960Seric
98558363Seric+------------------+
98658363Seric| FlexFAX SOFTWARE |
98758363Seric+------------------+
98858363Seric
98958363SericSam Leffler's FlexFAX software is still in beta test -- but he expects a
99058363Sericpublic version out "later this week" [as of 3/1/93].  The following
99158363Sericblurb is direct from Sam:
99258363Seric
99364498Seric	$Header: /usr/people/sam/fax/RCS/HOWTO,v 1.14 93/05/24 11:42:16 sam Exp $
99458363Seric
99558363Seric	How To Obtain This Software (in case all you get is this file)
99664498Seric	--------------------------------------------------------------
99758363Seric	The source code is available for public ftp on
99864498Seric	    sgi.com			sgi/fax/v2.1.src.tar.Z
99958363Seric		(192.48.153.1)
100058363Seric
100158363Seric	You can also obtain inst'able images for Silicon Graphics machines from
100264498Seric	    sgi.com			sgi/fax/v2.1.inst.tar
100358363Seric		(192.48.153.1)
100458363Seric
100558363Seric	For example,
100658363Seric	    % ftp -n sgi.com
100758363Seric	    ....
100858363Seric	    ftp> user anonymous
100958363Seric	    ... <type in password>
101058363Seric	    ftp> cd sgi/fax
101158363Seric	    ftp> binary
101264498Seric	    ftp> get v2.1.src.tar.Z
101358363Seric
101464498Seric	In general, the latest version of the 2.1 release of the software is
101564498Seric	always available as "v2.1.src.tar.Z" or "v2.1.inst.tar" in the ftp
101664498Seric	directory.  This file is a link to the appropriate released version (so
101764498Seric	don't waste your time retrieving the linked file as well!) Any files of
101864498Seric	the form v2.1.*.patch are shell scripts that can be used to patch older
101964498Seric	versions of the source code.  For example, the file v2.1.0.patch would
102064498Seric	contain patches to update v2.1.0.tar.Z.  (Note to beta testers: this is
102164498Seric	different than the naming conventions used during beta testing.) Patch
102264498Seric	files only work to go between consecutive versions, so if you are
102364498Seric	multiple versions behind the latest release, you will need to apply
102464498Seric	each patch file between your current version and the latest.
102564498Seric
102664498Seric
102764498Seric	Obtaining the Software by Electronic Mail
102864498Seric	-----------------------------------------
102964498Seric	Do not send me requests for the software; they will be ignored (without
103064498Seric	response).  If you cannot use FTP at all, there is a service called
103164498Seric	"ftpmail" available from gatekeeper.dec.com:  you can send e-mail to
103264498Seric	this machine and it will use FTP to retrieve files for you and send you
103364498Seric	the files back again via e-mail.  To find out more about the ftpmail
103458363Seric	service, send a message to "ftpmail@gatekeeper.dec.com" whose body
103558363Seric	consists of the single line "help".
103658363Seric
103764498Seric
103864498Seric	Obtaining the Software Within Silicon Graphics
103964498Seric	----------------------------------------------
104058363Seric	Internal to Silicon Graphics there are inst'able images on the host
104164498Seric	flake.asd in the directory /usr/dist.  Thus you can do something like:
104258363Seric
104364498Seric	    % inst -f flake.asd.sgi.com:/usr/dist/flexfax
104458363Seric
104564498Seric	to install the latest version of the software on your machine.
104658363Seric
104764498Seric
104864498Seric	What to do Once You've Retrieved Stuff
104964498Seric	--------------------------------------
105058363Seric	The external distributions come in a compressed or uncompressed tar
105158363Seric	file.  To extract the source distribution:
105258363Seric
105364498Seric	    % zcat v2.1.src.tar.Z | tar xf -
105458363Seric
105558363Seric	(uncompress and extract individual files in current directory).  To
105658363Seric	unpack and install the client portion of the inst'able distribution:
105758363Seric
105858363Seric	    % mkdir dist
105964498Seric	    % cd dist; tar xf ../v2.1.inst.tar; cd ..
106058363Seric	    % inst -f dist/flexfax
106158363Seric	    ...
106258363Seric	    inst> go
106358363Seric
106458363Seric	(Note, the dist subdirectory is because some versions of inst fail if
106564498Seric	the files are in the current directory.) Server binaries are also
106664498Seric	included in the inst'able images as flexfax.server.*.  They are not
106764498Seric	installed by default, so to get them also you need to do:
106858363Seric
106958363Seric	    % inst -f flexfax
107058363Seric	    ...
107158363Seric	    inst> install flexfax.server.*
107258363Seric	    inst> go
107358363Seric
107464498Seric	The SGI binaries were built for Version 4.0.5H of the IRIX operating
107558363Seric	system.  They should work w/o problem on earlier versions of the
107658363Seric	system, but I have not fully tested this.  Also, note that to install a
107758363Seric	server on an SGI machine, you need to have installed the Display
107858363Seric	PostScript execution environment product (dps_eoe).  Otherwise, the fax
107958363Seric	server will not be able to convert PostScript to facsimile for
108058363Seric	transmission.
108158363Seric
108264498Seric	If you are working from the source distribution, look at the file
108364498Seric	README in the top of the source tree.  If you are working from the inst
108464498Seric	images, the subsystem flexfax.man.readme contains the README file and
108564498Seric	other useful pieces of information--the installed files are placed in
108664498Seric	the directory /usr/local/doc/flexfax).  Basically you will need to run
108764498Seric	the faxaddmodem script to setup and configure your fax modem.  Consult
108864498Seric	the README file and the manual page for faxaddmodem for information.
108958363Seric
109058363Seric
109164498Seric	FlexFAX Mail List
109264498Seric	-----------------
109358363Seric	A mailing list for users of this software is located on sgi.com.
109458363Seric	If you want to join this mailing list or have a list-related request
109558363Seric	such as getting your name removed from it, send a request to
109658363Seric
109764498Seric	    majordomo@whizzer.wpd.sgi.com
109858363Seric
109964498Seric	For example, to subscribe, send the line "subscribe flexfax" in
110064498Seric	the body of your message.  The line "help" will return a list of
110164498Seric	the commands understood by the mailing list management software.
110264498Seric
110358363Seric	Submissions (including bug reports) should be directed to:
110458363Seric
110558363Seric	    flexfax@sgi.com
110658363Seric
110764498Seric	When corresponding about this software please always specify what
110864498Seric	version you have, what system you're running on, and, if the problem is
110964498Seric	specific to your modem, identify the modem and firmware revision.
111058363Seric
111164498Seric
111257945Seric+--------------------------------+
111357945Seric| TWEAKING CONFIGURATION OPTIONS |
111457945Seric+--------------------------------+
111557945Seric
111657945SericThere are a large number of configuration options that don't normally
111757945Sericneed to be changed.  However, if you feel you need to tweak them, you
111857945Sericcan define the following M4 variables.  This list is shown in four
111957945Sericcolumns:  the name you define, the default value for that definition,
112057945Sericthe option or macro that is affected (either Ox for an option or Dx
112157945Sericfor a macro), and a brief description.  Greater detail of the semantics
112257945Sericcan be found in the Installation and Operations Guide.
112357945Seric
112463582SericSome options are likely to be deprecated in future versions -- that is,
112563582Sericthe option is only included to provide back-compatibility.  These are
112663582Sericmarked with "*".
112763582Seric
112865002SericRemember that these options are M4 variables, and hence may need to
112965002Sericbe quoted.  In particular, arguments with commas will usually have to
113065002Sericbe ``double quoted, like this phrase'' to avoid having the comma
113165002Sericconfuse things.  This is common for alias file definitions and for
113265002Sericthe read timeout.
113365002Seric
1134*68694SericM4 Variable Name	Configuration	Description & [Default]
1135*68694Seric================	=============	=======================
1136*68694SericconfMAILER_NAME		$n macro	[MAILER-DAEMON] The sender name used
1137*68694Seric					for internally generated outgoing
1138*68694Seric					messages.
1139*68694SericconfFROM_LINE		$l macro	[From $g  $d] The From_ line used
1140*68694Seric					when sending to files or programs.
1141*68694SericconfFROM_HEADER		$q macro	[$?x$x <$g>$|$g$.] The format of an
1142*68694Seric					internally generated From: address.
1143*68694SericconfOPERATORS		$o macro	[.:%@!^/[]+] Address operator
1144*68694Seric					characters.
1145*68694SericconfSMTP_LOGIN_MSG	$e macro	[$j Sendmail $v/$Z ready at $b]
1146*68694Seric					The initial (spontaneous) SMTP
1147*68694Seric					greeting message.
1148*68694SericconfDOMAIN_NAME		$j macro	If defined, sets $j.  This should
1149*68694Seric					only be done if your system cannot
1150*68694Seric					determine your local domain name,
1151*68694Seric					and then it should be set to
1152*68694Seric					$w.Foo.COM, where Foo.COM is your
1153*68694Seric					domain name.
1154*68694SericconfRECEIVED_HEADER	Received:
1155*68694Seric      [.$?_($?s$|from $.$_) $.by $j ($v/$Z)$?r with $r$. id $i$?u for $u$.; $b]
1156*68694Seric					The format of the Received: header
1157*68694Seric					in messages passed through this host.
1158*68694Seric					It is unwise to try to change this.
1159*68694SericconfCW_FILE		Fw class	[/etc/sendmail.cw] Name of file used
1160*68694Seric					to get the local additions to the $=w
1161*68694Seric					class.
1162*68694SericconfSMTP_MAILER		-		[smtp] The mailer name used when
1163*68694Seric					SMTP connectivity is required.
1164*68694Seric					One of "smtp", "smtp8", or "esmtp".
1165*68694SericconfLOCAL_MAILER	-		[local] The mailer name used when
1166*68694Seric					local connectivity is required.
1167*68694Seric					Almost always "local".
1168*68694SericconfRELAY_MAILER	-		[relay] The default mailer name used
1169*68694Seric					for relaying any mail (e.g., to a
1170*68694Seric					BITNET_RELAY, a SMART_HOST, or
1171*68694Seric					whatever).  This can reasonably be
1172*68694Seric					"uucp-new" if you are on a
1173*68694Seric					UUCP-connected site.
1174*68694SericconfSEVEN_BIT_INPUT	SevenBitInput	[False] Force input to seven bits?
1175*68694SericconfEIGHT_BIT_HANDLING	EightBitMode	[pass8] 8-bit data handling
1176*68694SericconfALIAS_WAIT		AliasWait	[10m] Time to wait for alias file
1177*68694Seric					rebuild until you get bored and
1178*68694Seric					decide that the apparently pending
1179*68694Seric					rebuild failed.
1180*68694SericconfMIN_FREE_BLOCKS	MinFreeBlocks	[100] Minimum number of free blocks on
1181*68694Seric					queue filesystem to accept SMTP mail.
1182*68694SericconfBLANK_SUB		BlankSub	[.] Blank (space) substitution
1183*68694Seric					character.
1184*68694SericconfCON_EXPENSIVE	HoldExpensive	[False] Avoid connecting immediately
1185*68694Seric					to mailers marked expensive?
1186*68694SericconfCHECKPOINT_INTERVAL	CheckpointInterval
1187*68694Seric					Checkpoint queue files every N
1188*68694Seric					recipients.
1189*68694SericconfDELIVERY_MODE	DeliveryMode	[background] Default delivery mode.
1190*68694SericconfAUTO_REBUILD	AutoRebuildAliases
1191*68694Seric					Automatically rebuild alias
1192*68694Seric					file if needed.
1193*68694SericconfERROR_MODE		ErrorMode	Error message mode.
1194*68694SericconfERROR_MESSAGE	ErrorHeader	Error message header/file.
1195*68694SericconfSAVE_FROM_LINES	SafeFromLine	Save extra leading From_ lines.
1196*68694SericconfTEMP_FILE_MODE	TempFileMode	[0600] Temporary file mode.
1197*68694SericconfMATCH_GECOS		MatchGECOS	Match GECOS field.
1198*68694SericconfMAX_HOP		MaxHopCount	Maximum hop count.
1199*68694SericconfIGNORE_DOTS*	IgnoreDots	Ignore dot as terminator for incoming
1200*68694Seric					messages?
1201*68694SericconfBIND_OPTS		ResolverOptions	Default options for DNS resolver.
1202*68694SericconfMIME_FORMAT_ERRORS*	SendMimeErrors	[True] Send error messages as MIME-
1203*68694Seric					encapsulated messages per RFC 1344.
1204*68694SericconfFORWARD_PATH	ForwardPath	[$z/.forward.$w:$z/.forward]
1205*68694Seric					The colon-separated list of places to
1206*68694Seric					search for .forward files.  N.B.: see
1207*68694Seric					the Security Notes section.
1208*68694SericconfMCI_CACHE_SIZE	ConnectionCacheSize
1209*68694Seric					[2] Size of open connection cache.
1210*68694SericconfMCI_CACHE_TIMEOUT	ConnectionCacheTimeout
1211*68694Seric					[5m] Open connection cache timeout.
1212*68694SericconfUSE_ERRORS_TO*	UserErrorsTo	[False] Use the Errors-To: header to deliver
1213*68694Seric					error messages.  This should not be
1214*68694Seric					necessary because of general acceptance
1215*68694Seric					of the envelope/header distinction.
1216*68694SericconfLOG_LEVEL		LogLevel	[9] Log level.
1217*68694SericconfME_TOO		MeToo		Include sender in group expansions.
1218*68694SericconfCHECK_ALIASES	CheckAliases	[True] Check RHS of aliases when
1219*68694Seric					running newaliases.
1220*68694SericconfOLD_STYLE_HEADERS*	OldStyleHeaders	[True] Assume that headers without
1221*68694Seric					special chars are old style.
1222*68694SericconfDAEMON_OPTIONS	DaemonPortOptions
1223*68694Seric					SMTP daemon options.
1224*68694SericconfPRIVACY_FLAGS	PrivacyOptions	[authwarnings] Privacy flags.
1225*68694SericconfCOPY_ERRORS_TO	PostmasterCopy	Address for additional copies of all
1226*68694Seric					error messages.
1227*68694SericconfQUEUE_FACTOR	QueueFactor	Slope of queue-only function.
1228*68694SericconfDONT_PRUNE_ROUTES	DontPruneRoutes	Don't prune down route-addr syntax
1229*68694Seric					addresses to the minimum possible.
1230*68694SericconfSAFE_QUEUE*		SuperSafe	[True] Commit all messages to disk
1231*68694Seric					before forking.
1232*68694SericconfTIME_ZONE		TimeZoneSpec	[USE_SYSTEM] Time zone info -- can be
1233*68694Seric					USE_SYSTEM to use the system's idea,
1234*68694Seric					USE_TZ to use the user's TZ envariable,
1235*68694Seric					or something else to force that value.
1236*68694SericconfDEF_USER_ID		DefaultUser	[1:1] Default user id.
1237*68694SericconfUSERDB_SPEC		UserDatabaseSpec
1238*68694Seric					User database specification.
1239*68694SericconfFALLBACK_MX		FallbackMXhost	Fallback MX host.
1240*68694SericconfTRY_NULL_MX_LIST	TryNullMXList	If we are the best MX for a host and
1241*68694Seric					haven't made other arrangements, try
1242*68694Seric					connecting to the host directly;
1243*68694Seric					normally this would be a config error.
1244*68694SericconfQUEUE_LA		QueueLA		Load average at which queue-only
1245*68694Seric					function kicks in.
1246*68694SericconfREFUSE_LA		RefuseLA	Load average at which incoming
1247*68694Seric					SMTP connections are refused.
124863582SericconfWORK_RECIPIENT_FACTOR
1249*68694Seric			RecipientFactor	Cost of each recipient.
1250*68694SericconfSEPARATE_PROC	ForkEachJob	Run all deliveries in a separate
1251*68694Seric					process.
1252*68694SericconfWORK_CLASS_FACTOR	ClassFactor	Priority multiplier for class.
1253*68694SericconfWORK_TIME_FACTOR	RetryFactor	Cost of each delivery attempt.
1254*68694SericconfQUEUE_SORT_ORDER	QueueSortOrder	Queue sort algorithm: Priority or Host.
1255*68694SericconfBROKEN_SMTP_PEERS	BrokenSmtpPeers	Set this to prevent two-line greeting
1256*68694Seric					messages that confuse some (mostly
1257*68694Seric					PC-based) clients.
1258*68694SericconfMIN_QUEUE_AGE	MinQueueAge	The minimum amount of time a job
1259*68694Seric					must sit in the queue between queue
1260*68694Seric					runs.  This allows you to set the
1261*68694Seric					queue run interval low for better
1262*68694Seric					resposiveness without trying all
1263*68694Seric					jobs in each run.
1264*68694SericconfDEF_CHAR_SET	DefaultCharSet	When converting unlabelled 8 bit
1265*68694Seric					input to MIME, the character set to
1266*68694Seric					use by default.
1267*68694SericconfSERVICE_SWITCH_FILE	ServiceSwitchFile
1268*68694Seric					The file to use for the service switch
1269*68694Seric					on systems that do not have a system-
1270*68694Seric					defined switch.
1271*68694SericconfDIAL_DELAY		DialDelay	If a connection fails, wait this long
1272*68694Seric					and try again.  This is to allow
1273*68694Seric					"dial on demand" connections to have
1274*68694Seric					enough time to complete a connection.
1275*68694SericconfNO_RCPT_ACTION	NoRecipientAction
1276*68694Seric					What to do if there are no legal
1277*68694Seric					recipient fields (To:, Cc: or Bcc:)
1278*68694Seric					in the message.  Legal values can
1279*68694Seric					be "none" to just leave the
1280*68694Seric					nonconforming message as is, "add-to"
1281*68694Seric					to add a To: header with all the
1282*68694Seric					known recipients (which may expose
1283*68694Seric					blind recipients), "add-apparently-to"
1284*68694Seric					to do the same but use Apparently-To:
1285*68694Seric					instead of To:, "add-bcc" to add an
1286*68694Seric					empty Bcc: header, or
1287*68694Seric					"add-to-undisclosed" to add the header
1288*68694Seric					``To: undisclosed-recipients:;''.
1289*68694Seric					Default is "none".
1290*68694SericconfSAFE_FILE_ENV	SafeFileEnvironment
1291*68694Seric					If set, sendmail will do a chroot()
1292*68694Seric					into this directory before writing
1293*68694Seric					files.
129457945Seric
129558087Seric
129657246Seric+-----------+
129757246Seric| HIERARCHY |
129857246Seric+-----------+
129957246Seric
130051220SericWithin this directory are several subdirectories, to wit:
130151220Seric
130251220Sericm4		General support routines.  These are typically
130351220Seric		very important and should not be changed without
130457247Seric		very careful consideration.
130551220Seric
130651220Sericcf		The configuration files themselves.  They have
130751220Seric		".mc" suffixes, and must be run through m4 to
130851220Seric		become complete.  The resulting output should
130951220Seric		have a ".cf" suffix.
131051220Seric
131151220Sericostype		Definitions describing a particular operating
131251220Seric		system type.  These should always be referenced
131351220Seric		using the OSTYPE macro in the .mc file.  Examples
131451220Seric		include "bsd4.3", "bsd4.4", "sunos3.5", and
131551220Seric		"sunos4.1".
131651220Seric
131751220Sericdomain		Definitions describing a particular domain, referenced
131851220Seric		using the DOMAIN macro in the .mc file.  These are
131951220Seric		site dependent; for example, we contribute "cs.exposed.m4"
132051220Seric		and "cs.hidden.m4" which both describe hosts in the
132151220Seric		CS.Berkeley.EDU subdomain; the former displays the local
132251220Seric		hostname (e.g., mammoth.CS.Berkeley.EDU), whereas the
132351220Seric		latter does its best to hide the identity of the local
132451220Seric		workstation inside the CS subdomain.
132551220Seric
132651220Sericmailer		Descriptions of mailers.   These are referenced using
132751220Seric		the MAILER macro in the .mc file.
132851220Seric
132951220Sericsh		Shell files used when building the .cf file from the
133051220Seric		.mc file in the cf subdirectory.
133151220Seric
133251220Sericfeature		These hold special orthogonal features that you might
133351220Seric		want to include.  They should be referenced using
133451220Seric		the FEATURE macro.
133551220Seric
133651220Serichack		Local hacks.  These can be referenced using the HACK
133751220Seric		macro.  They shouldn't be of more than voyeuristic
133851220Seric		interest outside the .Berkeley.EDU domain, but who knows?
133965957Seric		We've all got our own peccadillos.
134051220Seric
134151268Sericsiteconfig	Site configuration -- e.g., tables of locally connected
134251268Seric		UUCP sites.
134351220Seric
134451268Seric
134557246Seric+------------------------+
134657246Seric| ADMINISTRATIVE DETAILS |
134757246Seric+------------------------+
134851220Seric
134951220SericThe following sections detail usage of certain internal parts of the
135051220Sericsendmail.cf file.  Read them carefully if you are trying to modify
135151220Sericthe current model.  If you find the above descriptions adequate, these
135251220Sericshould be {boring, confusing, tedious, ridiculous} (pick one or more).
135351220Seric
135451220SericRULESETS (* means built in to sendmail)
135551220Seric
135651220Seric   0 *	Parsing
135751220Seric   1 *	Sender rewriting
135851220Seric   2 *	Recipient rewriting
135951220Seric   3 *	Canonicalization
136051220Seric   4 *	Post cleanup
136154839Seric   5 *	Local address rewrite (after aliasing)
136260539Seric  1x	mailer rules (sender qualification)
136360539Seric  2x	mailer rules (recipient qualification)
136464801Seric  3x	mailer rules (sender header qualification)
136564801Seric  4x	mailer rules (recipient header qualification)
136664801Seric  5x	mailer subroutines (general)
136764801Seric  6x	mailer subroutines (general)
136864801Seric  7x	mailer subroutines (general)
136964801Seric  8x	reserved
137060539Seric  90	Mailertable host stripping
137160892Seric  96	Bottom half of Ruleset 3 (ruleset 6 in old sendmail)
137260892Seric  97	Hook for recursive ruleset 0 call (ruleset 7 in old sendmail)
137363857Seric  98	Local part of ruleset 0 (ruleset 8 in old sendmail)
137451220Seric
137551220Seric
137651220SericMAILERS
137751220Seric
137851220Seric   0	local, prog	local and program mailers
137965218Seric   1	[e]smtp, relay	SMTP channel
138065218Seric   2	uucp-*		UNIX-to-UNIX Copy Program
138158087Seric   3	netnews		Network News delivery
138258363Seric   4	fax		Sam Leffler's FlexFAX software
138351220Seric
138451220Seric
138551220SericMACROS
138651220Seric
138751220Seric   A
138851220Seric   B	Bitnet Relay
138965182Seric   C
139054839Seric   D	The local domain -- usually not needed
139151220Seric   E
139258363Seric   F	FAX Relay
139351220Seric   G
139457591Seric   H	mail Hub (for mail clusters)
139551220Seric   I
139651220Seric   J
139751220Seric   K
139867915Seric   L	Luser Relay
139951220Seric   M	Masquerade (who I claim to be)
140051220Seric   N
140151220Seric   O
140251220Seric   P
140351220Seric   Q
140451220Seric   R	Relay (for unqualified names)
140558071Seric   S	Smart Host
140651220Seric   T
140751309Seric   U	my UUCP name (if I have a UUCP connection)
140851309Seric   V	UUCP Relay (class V hosts)
140951220Seric   W	UUCP Relay (class W hosts)
141051220Seric   X	UUCP Relay (class X hosts)
141151309Seric   Y	UUCP Relay (all other hosts)
141251220Seric   Z	Version number
141351220Seric
141451220Seric
141551220SericCLASSES
141651220Seric
141751220Seric   A
141851220Seric   B
141951220Seric   C
142067539Seric   D	"dotted" users
142157246Seric   E	addresses that should not seem to come from $M
142254839Seric   F	hosts we forward for
142351220Seric   G
142451220Seric   H
142551220Seric   I
142651220Seric   J
142751220Seric   K
142851220Seric   L	addresses that should not be forwarded to $R
142951220Seric   M
143051220Seric   N
143151220Seric   O	operators that indicate network operations (cannot be in local names)
143260211Seric   P	top level pseudo-domains: BITNET, FAX, UUCP, etc.
143351220Seric   Q
143451220Seric   R
143551220Seric   S
143651220Seric   T
143751220Seric   U	locally connected UUCP hosts
143851309Seric   V	UUCP hosts connected to relay $V
143951309Seric   W	UUCP hosts connected to relay $W
144051309Seric   X	UUCP hosts connected to relay $X
144151309Seric   Y	locally connected smart UUCP hosts
144264153Seric   Z	locally connected domain-ized UUCP hosts
144354839Seric   .	the class containing only a dot
144451220Seric
144551220Seric
144651220SericM4 DIVERSIONS
144751220Seric
144858071Seric   1	Local host detection and resolution
144958071Seric   2	Local Ruleset 3 additions
145058071Seric   3	Local Ruleset 0 additions
145151268Seric   4	UUCP Ruleset 0 additions
145251309Seric   5	locally interpreted names (overrides $R)
145354839Seric   6	local configuration (at top of file)
145451220Seric   7	mailer definitions
145566099Seric   8
145658681Seric   9	special local rulesets (1 and 2)
1457