xref: /csrg-svn/usr.sbin/sendmail/cf/README (revision 64371)
151220Seric
251220Seric
357246Seric		NEW SENDMAIL CONFIGURATION FILES
451220Seric
557246Seric		Eric Allman <eric@CS.Berkeley.EDU>
651220Seric
7*64371Seric		@(#)README	8.12 (Berkeley) 08/28/93
851220Seric
951220Seric
1057246SericThis document describes the sendmail configuration files being used
1163857Sericat Berkeley.  These use features in the new (R8) 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
3958284SericIF YOU DON'T HAVE A BERKELEY MAKE, don't despair!  Just run
40*64371Seric"m4 foo.mc > foo.cf" -- that should be all you need.  There is also
41*64371Serica fairly crude (but functional) Makefile.dist that works on the
42*64371Sericold version of make.
4358284Seric
4458284SericTo get started, you may want to look at tcpproto.mc (for TCP-only
4564324Sericsites), uucpproto.mc (for UUCP-only sites), and clientproto.mc (for
4664324Sericclusters of clients using a single mail host).  Others are versions
4758284Sericthat we use at Berkeley, although not all are in current use.  For
4858284Sericexample, ucbarpa has gone away, but I've left ucbarpa.mc in because
4958284Sericit demonstrates some interesting techniques.
5058284Seric
5157246SericI'm not pretending that this README describes everything that these
5257246Sericconfiguration files can do; clever people can probably tweak them
5357246Sericto great effect.  But it should get you started.
5457246Seric
5558087Seric
5657246Seric+--------------------------+
5757246Seric| INTRODUCTION AND EXAMPLE |
5857246Seric+--------------------------+
5957246Seric
6057246SericConfiguration files are contained in the subdirectory "cf", with a
6157246Sericsuffix ".mc".  They must be run through "m4" to produce a ".cf" file.
6257246Seric
6351220SericLet's examine a typical .mc file (cf/cs-exposed.mc):
6451220Seric
6551220Seric	divert(-1)
6651220Seric	#
6751220Seric	# Copyright (c) 1983 Eric P. Allman
6851220Seric	# Copyright (c) 1988 The Regents of the University of California.
6951220Seric	# All rights reserved.
7051220Seric	#
7151220Seric	# Redistribution and use in source and binary forms are permitted
7251220Seric	# provided that the above copyright notice and this paragraph are
7351220Seric	# duplicated in all such forms and that any documentation,
7451220Seric	# advertising materials, and other materials related to such
7551220Seric	# distribution and use acknowledge that the software was developed
7651220Seric	# by the University of California, Berkeley.  The name of the
7751220Seric	# University may not be used to endorse or promote products derived
7851220Seric	# from this software without specific prior written permission.
7951220Seric	# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
8051220Seric	# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
8151220Seric	# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
8251220Seric	#
8351220Seric
8457246SericThe divert(-1) will delete the crud in the resulting output file.
8557247SericThe copyright notice is what your lawyers require.  Our lawyers require
8657246Sericthe one that I've included in my files. A copyleft is a copyright by
8757246Sericanother name.
8851220Seric
8957246SericThe next line MUST be
9057246Seric
9151220Seric	include(`../m4/cf.m4')
9251220Seric
9357246SericThis will pull in the M4 macros you will need to make sense of
9457246Sericeverything else.  As the saying goes, don't think about it, just
9557246Sericdo it.  If you don't do it, don't bother reading the rest of this
9657246Sericfile.
9751220Seric
9856778Seric	VERSIONID(`<SCCS or RCS version id>')
9951220Seric
10051220SericVERSIONID is a macro that stuffs the version information into the
10151220Sericresulting file.  We use SCCS; you could use RCS, something else, or
10257246Sericomit it completely.  This is not the same as the version id included
10357246Sericin SMTP greeting messages -- this is defined in m4/version.m4.
10451220Seric
10551268Seric	DOMAIN(cs.exposed)
10651220Seric
10751220SericThis example exposes the host inside of the CS subdomain -- that is,
10851220Sericit doesn't try to hide the name of the workstation to the outside
10951220Sericworld.  Changing this to DOMAIN(cs.hidden) would have made outgoing
11051220Sericmessages refer to "<username>@CS.Berkeley.EDU" instead of using the
11163857Sericlocal hostname.  Internally this is effected by using
11257246Seric"MASQUERADE_AS(CS.Berkeley.EDU)".
11351220Seric
11451268Seric	MAILER(smtp)
11551220Seric
11651309SericThese describe the mailers used at the default CS site site.  The
11751309Sericlocal mailer is always included automatically.
11851220Seric
11958087Seric
12057246Seric+--------+
12157246Seric| OSTYPE |
12257246Seric+--------+
12357246Seric
12451220SericNote that cf/cs-exposed.mc omits an OSTYPE macro -- this assumes
12551220Sericdefault Computer Science Division environment.  There are several
12657247Sericexplicit environments available: bsd4.3, bsd4.4, hpux, irix, osf1,
12757247Sericriscos4.5, sunos3.5, sunos4.1, and ultrix4.1.  These change things
12857247Sericlike the location of the alias file and queue directory.  Some of
12957247Sericthese files are identical to one another.
13051220Seric
13157246SericOperating system definitions are easy to write.  They may define
13257246Sericthe following variables (everything defaults, so an ostype file
13357246Sericmay be empty).
13451220Seric
13557246SericALIAS_FILE		[/etc/aliases] The location of the text version
13659761Seric			of the alias file(s).  It can be a comma-separated
13759761Seric			list of names.
13857246SericHELP_FILE		[/usr/lib/sendmail.hf] The name of the file
13957246Seric			containing information printed in response to
14057246Seric			the SMTP HELP command.
14157246SericQUEUE_DIR		[/var/spool/mqueue] The directory containing
14257246Seric			queue files.
14357246SericSTATUS_FILE		[/etc/sendmail.st] The file containing status
14457246Seric			information.
14558087SericLOCAL_MAILER_PATH	[/bin/mail] The program used to deliver local mail.
14664153SericLOCAL_MAILER_FLAGS	[rmn] The flags used by the local mailer.  The
14764153Seric			flags lsDFM are always included.
14863761SericLOCAL_MAILER_ARGS	[mail -d $u] The arguments passed to deliver local
14963761Seric			mail.
15058087SericLOCAL_SHELL_PATH	[/bin/sh] The shell used to deliver piped email.
15163791SericLOCAL_SHELL_FLAGS	[eu] The flags used by the shell mailer.  The
15263791Seric			flags lsDFM are always included.
15363791SericLOCAL_SHELL_ARGS	[sh -c $u] The arguments passed to deliver "prog"
15463791Seric			mail.
15558087SericUSENET_MAILER_PATH	[/usr/lib/news/inews] The name of the program
15658087Seric			used to submit news.
15758087SericUSENET_MAILER_FLAGS	[rlsDFMmn] The mailer flags for the usenet mailer.
15858087SericUSENET_MAILER_ARGS	[-m -h -n] The command line arguments for the
15958087Seric			usenet mailer.
16063857SericSMTP_MAILER_FLAGS	[undefined] Flags added to SMTP mailer.  Default
16163857Seric			flags are `mDFMUX' (and `a' for esmtp mailer).
16263857SericUUCP_MAILER_FLAGS	[undefined] Flags added to UUCP mailer.  Default
16363857Seric			flags are `DFMhuU' (and `m' for suucp mailer, minus
16463857Seric			`U' for uucp-dom mailer).
16563761SericUUCP_MAILER_ARGS	[uux - -r -z -a$f -gC $h!rmail ($u)] The arguments
16663761Seric			passed to the UUCP mailer.
16763791SericUUCP_MAX_SIZE		[100000] The maximum size message accepted for
16863791Seric			transmission by the UUCP mailers.
16957246SericHOSTMAP_SPEC		[dbm -o /etc/hostmap] The value for the builtin
17057246Seric			hostmap key definition.  You can redefine this
17157246Seric			to change the class, flags, and filename of
17257246Seric			the hostmap.  The default flag (-o) makes this
17357246Seric			map optional.
17457246Seric
17557246Seric+---------+
17657246Seric| DOMAINS |
17757246Seric+---------+
17857246Seric
17957246SericYou will probably want to collect domain-dependent defines into one
18057246Sericfile, referenced by the DOMAIN macro.  For example, our Berkeley
18157246Sericdomain file includes definitions for several internal distinguished
18257246Serichosts:
18357246Seric
18457246SericUUCP_RELAY	The host that will forward UUCP-addressed email.
18557246Seric		If not defined, all UUCP sites must be directly
18664028Seric		connected.
18757246SericBITNET_RELAY	The host that will forward BITNET-addressed email.
18857246Seric		If not defined, the .BITNET pseudo-domain won't work.
18957246SericCSNET_RELAY	The host that will forward CSNET-addressed email.
19057246Seric		If not defined, the .CSNET pseudo-domain won't work.
19157246SericLOCAL_RELAY	The site that will handle unqualified names -- that
19257246Seric		is, names with out an @domain extension.  If not set,
19357246Seric		they are assumed to belong on this machine.  This
19457246Seric		allows you to have a central site to store a
19557246Seric		company- or department-wide alias database.  This
19657246Seric		only works at small sites, and there are better
19764028Seric		methods.
19857246Seric
19964028SericEach of these can be either ``mailer:hostname'' (in which case the
20064028Sericmailer is the internal mailer name, such as ``suucp'' and the hostname
20164028Sericis the name of the host as appropriate for that mailer) or just a
20264028Seric``hostname'', in which case a default mailer type (usually ``relay'',
20364153Serica variant on SMTP) is used.  WARNING: if you have a wildcard MX
20464153Sericrecord matching your domain, you probably want to define these to
20564153Serichave a trailing dot so that you won't get the mail diverted back
20664153Sericto yourself.
20764028Seric
20857246SericThe domain file can also be used to define a domain name, if needed
20957982Seric(using "DD<domain>") and set certain site-wide features.  If all hosts
21057982Sericat your site masquerade behind one email name, you could also use
21157982SericMASQUERADE_AS here.
21257246Seric
21358408SericYou do not have to define a domain -- in particular, if you are a
21458408Sericsingle machine sitting off somewhere, it is probably more work than
21558408Sericit's worth.  This is just a mechanism for combining "domain dependent
21658408Sericknowledge" into one place.
21758408Seric
21857246Seric+---------+
21957246Seric| MAILERS |
22057246Seric+---------+
22157246Seric
22251220SericThere are fewer mailers supported in this version than the previous
22351220Sericversion, owing mostly to a simpler world.
22451220Seric
22551220Sericlocal		The local and prog mailers.  You will almost always
22651220Seric		need these; the only exception is if you relay ALL
22757247Seric		your mail to another site.  This mailer is included
22857247Seric		automatically.
22951220Seric
23051220Sericsmtp		The Simple Mail Transport Protocol mailer.  This does
23151220Seric		not hide hosts behind a gateway or another other
23251220Seric		such hack; it assumes a world where everyone is
23363761Seric		running the name server.  This file actually defines
23463761Seric		three mailers: "smtp" for regular (old-style) SMTP to
23563761Seric		other servers, "esmtp" for extended SMTP to other
23663761Seric		servers, and "relay" for transmission to our
23763761Seric		RELAY_HOST or MAILER_HUB.
23851220Seric
23951220Sericuucp		The Unix-to-Unix Copy Program mailer.  Actually, this
24051220Seric		defines two mailers, "uucp" and "suucp".  The latter
24151220Seric		is for when you know that the UUCP mailer at the other
24251220Seric		end can handle multiple recipients in one transfer.
24357246Seric		When you invoke this, sendmail looks for all names in
24457246Seric		the $=U class and sends them to the uucp mailer; all
24557246Seric		names in the $=Y class are sent to suucp.  Note that
24657246Seric		this is a function of what version of rmail runs on
24757246Seric		the receiving end, and hence may be out of your control.
24863857Seric		If smtp is defined, it also defines a "uucp-dom" mailer
24963857Seric		that uses domain-style rewriting.
25051220Seric
25158087Sericusenet		Usenet (network news) delivery.  If this is specified,
25258087Seric		an extra rule is added to ruleset 0 that forwards all
25358087Seric		local email for users named ``group.usenet'' to the
25458087Seric		``inews'' program.  Note that this works for all groups,
25558087Seric		and may be considered a security problem.
25658087Seric
25758363Sericfax		Facsimile transmission.  This is experimental and based
25858363Seric		on Sam Leffler's FlexFAX software.  For more information,
25958363Seric		see below.
26058087Seric
26158363Seric
26257246Seric+----------+
26357246Seric| FEATURES |
26457246Seric+----------+
26551268Seric
26657246SericSpecial features can be requested using the "FEATURE" macro.  For
26757246Sericexample, the .mc line:
26857246Seric
26957246Seric	FEATURE(use_cw_file)
27057246Seric
27157246Serictells sendmail that you want to have it read an /etc/sendmail.cw
27258782Sericfile to get values for class $=w.  The FEATURE may contain a single
27358782Sericoptional parameter -- for example:
27457246Seric
27558782Seric	FEATURE(mailertable, dbm /usr/lib/mailertable)
27658782Seric
27758782SericAvailable features are:
27858782Seric
27957246Sericuse_cw_file	Read the file /etc/sendmail.cw file to get alternate
28057246Seric		names for this host.  This might be used if you were
28157246Seric		on a host that MXed for a dynamic set of other
28257246Seric		hosts.  If the set is static, just including the line
28357246Seric		"Cw<name1> <name2> ..." is probably superior.
28458408Seric		The actual filename can be overridden by redefining
28558408Seric		confCW_FILE.
28664324Seric
28758087Sericredirect	Reject all mail addressed to "address.REDIRECT" with
28858087Seric		a ``551 User not local; please try <address>'' message.
28958087Seric		If this is set, you can alias people who have left
29058087Seric		to their new address with ".REDIRECT" appended.
29164324Seric
29258284Sericnouucp		Don't do anything special with UUCP addresses at all.
29364324Seric
29459080Sericnocanonify	Don't pass addresses to $[ ... $] for canonification.
29559080Seric		This would generally only be used by sites that only
29659080Seric		act as mail gateways or which have user agents that do
29764028Seric		full canonification themselves.  You may also want to
29864028Seric		use "define(`confBIND_OPTS',`-DNSRCH -DEFNAMES')" to
29964028Seric		turn off the usual resolver options that do a similar
30064028Seric		thing.
30164324Seric
30258526Sericnotsticky	By default, email sent to "user@local.host" are marked
30358526Seric		as "sticky" -- that is, the local addresses aren't
30458526Seric		matched against UDB and don't go through ruleset 5.
30558526Seric		This features disables this treatment.  It would
30658526Seric		normally be used on network gateway machines.
30764324Seric
30858782Sericmailertable	Include a "mailer table" which can be used to override
30958782Seric		routing for particular domains.  The argument of the
31058782Seric		FEATURE may be the key definition.  If none is specified,
31158782Seric		the definition used is:
31264164Seric			hash -o /etc/mailertable
31363761Seric		Keys in this database are fully qualified domain names
31463761Seric		or partial domains preceded by a dot -- for example,
31563761Seric		"vangogh.CS.Berkeley.EDU" or ".CS.Berkeley.EDU".
31663761Seric		Values must be of the form:
31758782Seric			mailer:domain
31863761Seric		where "mailer" is the internal mailer name, and "domain"
31963761Seric		is where to send the message.  These maps are not
32063761Seric		reflected into the message header.
32164324Seric
32263761Sericdomaintable	Include a "domain table" which can be used to provide
32363761Seric		full domains on unqualified (single word) hosts.  The
32463761Seric		argument of the FEATURE may be the key definition.  If
32563761Seric		none is specified, the definition used is:
32664164Seric			hash -o /etc/domaintable
32763761Seric		The key in this table is the unqualified host name; the
32863761Seric		value is the fully qualified domain.  Anything in the
32963761Seric		domaintable is reflected into headers; that is, this
33063761Seric		is done in ruleset 3.
33164324Seric
33259034Sericbitdomain	Look up bitnet hosts in a table to try to turn them into
33359034Seric		internet addresses.  The table can be built using the
33464153Seric		bitdomain program contributed by John Gardiner Myers.
33559034Seric		The argument of the FEATURE may be the key definition; if
33659034Seric		none is specified, the definition used is:
33764164Seric			hash -o /etc/bitdomain.db
33859034Seric		Keys are the bitnet hostname; values are the corresponding
33959034Seric		internet hostname.
34064324Seric
34159037Sericuucpdomain	Similar feature for UUCP hosts.  The default map definition
34259037Seric		is:
34364164Seric			hash -o /etc/uudomain.db
34459037Seric		At the moment there is no automagic tool to build this
34559037Seric		database.
34664324Seric
34760263Sericalways_add_domain
34860263Seric		Include the local host domain even on locally delivered
34960263Seric		mail.  Normally it is not added unless it is already
35060263Seric		present.
35164324Seric
35263761Sericallmasquerade	If masquerading is enabled (using MASQUERADE_AS), this
35363761Seric		feature will cause recipient addresses to also masquerade
35463761Seric		as being from the masquerade host.  Normally they get
35563761Seric		the local hostname.  Although this may be right for
35663761Seric		ordinary users, it can break local aliases.  For example,
35763761Seric		if you send to "localalias", the originating sendmail will
35863761Seric		find that alias and send to all members, but send the
35963761Seric		message with "To: localalias@masqueradehost".  Since that
36063761Seric		alias likely does not exist, replies will fail.  Use this
36163761Seric		feature ONLY if you can guarantee that the ENTIRE
36263761Seric		namespace on your masquerade host supersets all the
36363761Seric		local entries.
36464324Seric
36564153Sericnodns		We aren't running DNS at our site (for example,
36664153Seric		we are UUCP-only connected).  It's hard to consider
36764153Seric		this a "feature", but hey, it had to go somewhere.
36857246Seric
36964324Sericnullclient	This is a special case -- it creates a stripped down
37064324Seric		configuration file containing nothing but support for
37164324Seric		forwarding all mail to a central hub.  The argument
37264324Seric		is the name of that hub.  No other features should be
37364324Seric		used, and no mailers need be defined -- this is all
37464324Seric		implicit.  The client always masquerades as the mail
37564324Seric		hub.  No aliasing or forwarding is done.
37657246Seric
37764324Seric
37857246Seric+-------+
37957246Seric| HACKS |
38057246Seric+-------+
38157246Seric
38257246SericSome things just can't be called features.  To make this clear,
38357247Sericthey go in the hack subdirectory and are referenced using the HACK
38457246Sericmacro.  These will tend to be site-dependent.  The release
38557246Sericincludes the Berkeley-dependent "cssubdomain" hack (that makes
38657246Sericsendmail accept local names in either Berkeley.EDU or CS.Berkeley.EDU;
38757246Sericthis is intended as a short-term aid while we move hosts into
38857246Sericsubdomains.
38957246Seric
39058087Seric
39157246Seric+--------------------+
39257246Seric| SITE CONFIGURATION |
39357246Seric+--------------------+
39457246Seric
39557246SericComplex sites will need more local configuration information, such as
39657246Sericlists of UUCP hosts they speak with directly.  This can get a bit more
39757246Serictricky.  For an example of a "complex" site, see cf/ucbvax.mc.
39857246Seric
39957246SericThe SITECONFIG macro allows you to indirectly reference site-dependent
40057246Sericconfiguration information stored in the siteconfig subdirectory.  For
40157246Sericexample, the line
40257246Seric
40357246Seric	SITECONFIG(uucp.ucbvax, ucbvax, U)
40457246Seric
40557246Sericreads the file uucp.ucbvax for local connection information.  The
40657246Sericsecond parameter is the local name (in this case just "ucbvax" since
40757246Sericit is locally connected, and hence a UUCP hostname) and the name of
40857246Sericthe class in which to store the host information.  Another SITECONFIG
40957246Sericline reads
41057246Seric
41157246Seric	SITECONFIG(uucp.ucbarpa, ucbarpa.Berkeley.EDU, W)
41257246Seric
41357246SericThis says that the file uucp.ucbarpa contains the list of UUCP sites
41457246Sericconnected to ucbarpa.Berkeley.EDU.  The $=W class will be used to
41557246Sericstore this list.  [The machine ucbarpa is gone now, but I've left
41657246Sericthis out-of-date configuration file around to demonstrate how you
41757246Sericmight do this.]
41857246Seric
41957246SericThe siteconfig file (e.g., siteconfig/uucp.ucbvax.m4) contains nothing
42057246Sericmore than a sequence of SITE macros describing connectivity.  For
42157246Sericexample:
42257246Seric
42357246Seric	SITE(cnmat)
42457246Seric	SITE(sgi olympus)
42557246Seric
42657246SericThe second example demonstrates that you can use two names on the
42757246Sericsame line; these are usually aliases for the same host (or are at
42857246Sericleast in the same company).
42957246Seric
43058087Seric
43157246Seric+-------------------+
43257246Seric| TWEAKING RULESETS |
43357246Seric+-------------------+
43457246Seric
43551268SericFor more complex configurations, you can define special rules.
43651268SericThe macro LOCAL_RULE_3 introduces rules that are used in canonicalizing
43751268Sericthe names.  Any modifications made here are reflected in the header.
43851268Seric
43951268SericA common use is to convert old UUCP addreses to SMTP addresses using
44051268Sericthe UUCPSMTP macro.  For example:
44151268Seric
44251268Seric	LOCAL_RULE_3
44351268Seric	UUCPSMTP(decvax,	decvax.dec.com)
44451268Seric	UUCPSMTP(research,	research.att.com)
44551268Seric
44651268Sericwill cause addresses of the form "decvax!user" and "research!user"
44751268Sericto be converted to "user@decvax.dec.com" and "user@research.att.com"
44851268Sericrespectively.
44951268Seric
45057246SericThis could also be used to look hosts in a database map:
45157246Seric
45257246Seric	LOCAL_RULE_3
45357246Seric	R$* < @ $+ > $*		$: $1 < @ $(hostmap $2 $) > $3
45457246Seric
45557246SericThis map would be defined in the LOCAL_CONFIG portion, as shown below.
45657246Seric
45751268SericSimilarly, LOCAL_RULE_0 can be used to introduce new parsing rules.
45851268SericFor example, new rules are needed to parse hostnames that you accept
45951309Sericvia MX records.  For example, you might have:
46051268Seric
46151309Seric	LOCAL_RULE_0
46251309Seric	R$+ < @ cnmat.Berkeley.EDU >	$#uucp $@ cnmat $: $1
46351309Seric
46451309SericYou would use this if you had installed an MX record for cnmat.Berkeley.EDU
46551309Sericpointing at this host; this rule catches the message and forwards it on
46651309Sericusing UUCP.
46751309Seric
46858681SericYou can also tweak rulesets 1 and 2 using LOCAL_RULE_1 and LOCAL_RULE_2.
46958681SericThese rulesets are normally empty.
47058681Seric
47157246SericA similar macro is LOCAL_CONFIG.  This introduces lines added after the
47257246Sericboilerplate option setting but before rulesets, and can be used to
47357945Sericdeclare local database maps or whatever.  For example:
47451268Seric
47557246Seric	LOCAL_CONFIG
47657246Seric	Khostmap hash /etc/hostmap.db
47757246Seric	Kyplocal nis -m hosts.byname
47851220Seric
47958087Seric
48057246Seric+---------------------------+
48157246Seric| MASQUERADING AND RELAYING |
48257246Seric+---------------------------+
48357246Seric
48457246SericYou can have your host masquerade as another using
48557246Seric
48657246Seric	MASQUERADE_AS(host.domain)
48757246Seric
48857246SericThis causes outgoing SMTP mail to be labelled as coming from the
48957246Sericindicated domain, rather than $j.  One normally masquerades as one
49057246Sericof your own subdomains (for example, it's unlikely that I would
49157246Sericchoose to masquerade as an MIT site).
49257246Seric
49364153SericThe masquerade name is not normally canonified, so it is important
49464153Sericthat it be your One True Name, that is, fully qualified and not a
49564153SericCNAME.
49664153Seric
49757246Sericthere are always users that need to be "exposed" -- that is, their
49857246Sericinternal site name should be displayed instead of the masquerade name.
49957246SericRoot is an example.  You can add users to this list using
50057246Seric
50157246Seric	EXPOSED_USER(usernames)
50257246Seric
50357246SericThis adds users to class E; you could also use something like
50457246Seric
50557246Seric	FE/etc/sendmail.cE
50657246Seric
50757246SericYou can also arrange to relay all unqualified names (that is, names
50857246Sericwithout @host) to a relay host.  For example, if you have a central
50957246Sericemail server, you might relay to that host so that users don't have
51057246Sericto have .forward files or aliases.  You can do this using
51157246Seric
51258071Seric	define(`LOCAL_RELAY', mailer:hostname)
51357246Seric
51458071SericThe ``mailer:'' can be omitted, in which case the mailer defaults to
51558071Seric"smtp".  There are some user names that you don't want relayed, perhaps
51658071Sericbecause of local aliases.  A common example is root, which may be
51758071Sericlocally aliased.  You can add entries to this list using
51857246Seric
51957246Seric	LOCAL_USER(usernames)
52057246Seric
52157246SericThis adds users to class L; you could also use something like
52257246Seric
52357246Seric	FL/etc/sendmail.cL
52457246Seric
52564153SericIf you want all incoming mail sent to a centralized hub, as for a
52664153Sericshared /var/spool/mail scheme, use
52757591Seric
52858071Seric	define(`MAIL_HUB', mailer:hostname)
52957591Seric
53058071SericAgain, ``mailer:'' defaults to "smtp".  If you define both LOCAL_RELAY
53158071Sericand MAIL_HUB, unqualified names and names in class L will be sent to
53258071Sericthe LOCAL_RELAY and other local names will be sent to MAIL_HUB.  For
53358071Sericexample, if are on machine mastodon.CS.Berkeley.EDU, the following
53458071Sericcombinations of settings will have the indicated effects:
53557591Seric
53657591Sericemail sent to....	eric			  eric@mastodon.CS.Berkeley.EDU
53757591Seric
53857591SericLOCAL_RELAY set to	mail.CS.Berkeley.EDU	  (delivered locally)
53957591Sericmail.CS.Berkeley.EDU
54057591Seric
54157591SericMAIL_HUB set to		mammoth.CS.Berkeley.EDU	  mammoth.CS.Berkeley.EDU
54257591Sericmammoth.CS.Berkeley.EDU
54357591Seric
54457591SericBoth LOCAL_RELAY and	mail.CS.Berkeley.EDU	  mammoth.CS.Berkeley.EDU
54557591SericMAIL_HUB set as above
54657591Seric
54764153SericIf you want all outgoing mail to go to a central relay site, define
54864153SericSMART_HOST as well.  Briefly:
54958071Seric
55064153Seric	LOCAL_RELAY applies to unqualifed names (e.g., "eric").
55164153Seric	MAIL_HUB applies to names qualified with the name of the
55264153Seric		local host (e.g., "eric@mastodon.CS.Berkeley.EDU").
55364153Seric	SMART_HOST applies to names qualified with other hosts.
55464153Seric
55564153SericHowever, beware that other relays (e.g., UUCP_RELAY, BITNET_RELAY, and
55664153SericFAX_RELAY) take precedence over SMART_HOST, so if you really want
55764153Sericabsolutely everything to go to a single central site you will need to
55864153Sericunset all the other relays -- or better yet, find or build a minimal
55964153Sericconfig file that does this.
56064153Seric
56164153Seric
56258071Seric+-------------------------------+
56358071Seric| NON-SMTP BASED CONFIGURATIONS |
56458071Seric+-------------------------------+
56558071Seric
56658071SericThese configuration files are designed primarily for use by SMTP-based
56758071Sericsites.  I don't pretend that they are well tuned for UUCP-only or
56858071SericUUCP-primarily nodes (the latter is defined as a small local net
56958071Sericconnected to the rest of the world via UUCP).  However, there is one
57058071Serichook to handle some special cases.
57158071Seric
57258071SericYou can define a ``smart host'' that understands a richer address syntax
57358071Sericusing:
57458071Seric
57558071Seric	define(`SMART_HOST', mailer:hostname)
57658071Seric
57764028SericIn this case, the ``mailer:'' defaults to "relay".  Any messages that
57858071Sericcan't be handled using the usual UUCP rules are passed to this host.
57958071Seric
58058071SericIf you are on a local SMTP-based net that connects to the outside
58158071Sericworld via UUCP, you can use LOCAL_NET_CONFIG to add appropriate rules.
58258071SericFor example:
58358071Seric
58458071Seric	define(`SMART_HOST', suucp:uunet)
58558071Seric	LOCAL_NET_CONFIG
58663761Seric	R$* < @ $* .$m. > $*	$#smtp $@ $2.$m. $: $1 < @ $2.$m. > $3
58758071Seric
58858071SericThis will cause all names that end in your domain name ($m) via
58958071SericSMTP; anything else will be sent via suucp (smart UUCP) to uunet.
59063761SericIf you have FEATURE(nocanonify), you may need to omit the dots after
59163761Sericthe $m.  If you are running a local DNS inside your domain which is
59263761Sericnot otherwise connected to the outside world, you probably want to
59363761Sericuse:
59458071Seric
59563761Seric	define(`SMART_HOST', smtp:fire.wall.com)
59663761Seric	LOCAL_NET_CONFIG
59763761Seric	R$* < @ $* . > $*	$#smtp $@ $2. $: $1 < @ $2. > $3
59858071Seric
59963761SericThat is, send directly only to things you found in your DNS lookup;
60063761Sericanything else goes through SMART_HOST.
60163761Seric
60264153SericIf you are not running DNS at all, it is important to use
60364153SericFEATURE(nodns) to avoid having sendmail queue everything waiting
60464153Sericfor the name server to come up.
60563761Seric
60664153Seric
60764259Seric+-----------+
60864259Seric| WHO AM I? |
60964259Seric+-----------+
61064259Seric
61164259SericNormally, the $j macro is automatically defined to be your fully
61264259Sericqualified domain name (FQDN).  Sendmail does this by getting your
61364259Serichost name using gethostname and then calling gethostbyname on the
61464259Sericresult.  For example, in some environments gethostname returns
61564259Sericonly the root of the host name (such as "foo"); gethostbyname is
61664259Sericsupposed to return the FQDN ("foo.bar.com").  In some (fairly rare)
61764259Sericcases, gethostbyname may fail to return the FQDN.  In this case
61864259Sericyou MUST define confDOMAIN_NAME to be your fully qualified domain
61964259Sericname.  This is usually done using:
62064259Seric
62164259Seric	Dmbar.com
62264259Seric	define(`confDOMAIN_NAME', `$w.$m')dnl
62364259Seric
62464259Seric
62564028Seric+--------------------+
62664028Seric| USING MAILERTABLES |
62764028Seric+--------------------+
62864028Seric
62964028SericTo use FEATURE(mailertable), you will have to create an external
63064028Sericdatabase containing the routing information for various domains.
63164028SericFor example, a mailertable file in text format might be:
63264028Seric
63364028Seric	.my.domain		xnet:%1.my.domain
63464028Seric	uuhost1.my.domain	suucp:uuhost1
63564028Seric	.bitnet			smtp:relay.bit.net
63664028Seric
63764028SericThis should normally be stored in /etc/mailertable.  The actual
63864028Sericdatabase version of the mailertable is built using:
63964028Seric
64064028Seric	makemap hash /etc/mailertable.db < /etc/mailertable
64164028Seric
64264028SericThe semantics are simple.  Any LHS entry that does not begin with
64364028Serica dot matches the full host name indicated.  LHS entries beginning
64464028Sericwith a dot match anything ending with that domain name -- that is,
64564028Sericthey can be thought of as having a leading "*" wildcard.  Matching
64664028Sericis done in order of most-to-least qualified -- for example, even
64764028Sericthough ".my.domain" is listed first in the above example, an entry
64864028Sericof "uuhost1.my.domain" will match the second entry since it is
64964028Sericmore explicit.
65064028Seric
65164028SericThe RHS should always be a "mailer:host" pair.  The mailer is the
65264028Sericconfiguration name of a mailer (that is, an `M' line in the
65364028Sericsendmail.cf file).  The "host" will be the hostname passed to
65464028Sericthat mailer.  In domain-based matches (that is, those with leading
65564028Sericdots) the "%1" may be used to interpolate the wildcarded part of
65664028Sericthe host name.  For example, the first line above sends everything
65764028Sericaddressed to "anything.my.domain" to that same host name, but using
65864028Sericthe (presumably experimental) xnet mailer.
65964028Seric
66064028Seric
66164153Seric+--------------------------------+
66264153Seric| USING USERDB TO MAP FULL NAMES |
66364153Seric+--------------------------------+
66464153Seric
66564153SericThe user database was not originally intended for mapping full names
66664153Sericto login names (e.g., Eric.Allman => eric), but some people are using
66764153Sericit that way.  (I would recommend that you set up aliases for this
66864153Sericpurpose instead -- since you can specify multiple alias files, this
66964153Sericis fairly easy.)  The intent was to locate the default maildrop at
67064153Serica site, but allow you to override this by sending to a specific host.
67164153Seric
67264153SericIf you decide to set up the user database in this fashion, it is
67364153Sericimperative that you also specify FEATURE(notsticky) -- otherwise,
67464153Serice-mail sent to Full.Name@local.host.name will be rejected.
67564153Seric
67664259SericTo build the internal form of the user databae, use:
67764153Seric
67864259Seric	makemap btree /usr/data/base.db < /usr/data/base.txt
67964259Seric
68064259Seric
68158363Seric+------------------+
68258363Seric| FlexFAX SOFTWARE |
68358363Seric+------------------+
68458363Seric
68558363SericSam Leffler's FlexFAX software is still in beta test -- but he expects a
68658363Sericpublic version out "later this week" [as of 3/1/93].  The following
68758363Sericblurb is direct from Sam:
68858363Seric
68958363Seric	$Header: /usr/people/sam/fax/RCS/HOWTO,v 1.7 93/02/08 09:00:55 sam Exp $
69058363Seric
69158363Seric	How To Obtain This Software (in case all you get is this file)
69258363Seric
69358363Seric	The source code is available for public ftp on
69458363Seric	    sgi.com			sgi/fax/v2.1beta.tar.Z
69558363Seric		(192.48.153.1)
69658363Seric
69758363Seric	You can also obtain inst'able images for Silicon Graphics machines from
69858363Seric	    sgi.com			sgi/fax/v2.1beta.inst.tar
69958363Seric		(192.48.153.1)
70058363Seric
70158363Seric	For example,
70258363Seric	    % ftp -n sgi.com
70358363Seric	    ....
70458363Seric	    ftp> user anonymous
70558363Seric	    ... <type in password>
70658363Seric	    ftp> cd sgi/fax
70758363Seric	    ftp> binary
70858363Seric	    ftp> get v2.1beta.tar.Z
70958363Seric
71058363Seric	If you cannot use FTP at all, there is a service called "ftpmail"
71158363Seric	available from gateekeeper.dec.com:  you can send e-mail to this
71258363Seric	machine and it will use FTP to retrieve files for you and send you the
71358363Seric	files back again via e-mail.  To find out more about the ftpmail
71458363Seric	service, send a message to "ftpmail@gatekeeper.dec.com" whose body
71558363Seric	consists of the single line "help".
71658363Seric
71758363Seric	Internal to Silicon Graphics there are inst'able images on the host
71858363Seric	flake.asd in the directory /d/dist.  Thus you can do something like:
71958363Seric
72058363Seric	    % inst -f flake.asd.sgi.com:/d/dist/flexfax
72158363Seric
72258363Seric	to install the software on your machine.
72358363Seric
72458363Seric	The external distributions come in a compressed or uncompressed tar
72558363Seric	file.  To extract the source distribution:
72658363Seric
72758363Seric	    % zcat v2.1beta.tar.Z | tar xf -
72858363Seric
72958363Seric	(uncompress and extract individual files in current directory).  To
73058363Seric	unpack and install the client portion of the inst'able distribution:
73158363Seric
73258363Seric	    % mkdir dist
73358363Seric	    % cd dist; tar xf ../v2.1beta.inst.tar; cd ..
73458363Seric	    % inst -f dist/flexfax
73558363Seric	    ...
73658363Seric	    inst> go
73758363Seric
73858363Seric	(Note, the dist subdirectory is because some versions of inst fail if
73958363Seric	the files are in the current directory.) Server binaries is also
74058363Seric	included in the inst'able images as flexfax.server.*.  It is not
74158363Seric	installed by default, so to get it also you need to extract the do:
74258363Seric
74358363Seric	    % inst -f flexfax
74458363Seric	    ...
74558363Seric	    inst> install flexfax.server.*
74658363Seric	    inst> go
74758363Seric
74858363Seric	The SGI binaries were built for Version 4.0.5 of the IRIX operating
74958363Seric	system.  They should work w/o problem on earlier versions of the
75058363Seric	system, but I have not fully tested this.  Also, note that to install a
75158363Seric	server on an SGI machine, you need to have installed the Display
75258363Seric	PostScript execution environment product (dps_eoe).  Otherwise, the fax
75358363Seric	server will not be able to convert PostScript to facsimile for
75458363Seric	transmission.
75558363Seric
75658363Seric	If you are working from the source distribution, look at the file README
75758363Seric	in the top of the source tree.  If you are working from the inst images,
75858363Seric	you need to run faxaddmodem to setup and configure your fax modem.  Do
75958363Seric	man faxaddmodem for more information.
76058363Seric
76158363SericAlso from Sam:
76258363Seric
76358363Seric	A mailing list for users of this software is located on sgi.com.
76458363Seric	If you want to join this mailing list or have a list-related request
76558363Seric	such as getting your name removed from it, send a request to
76658363Seric
76758363Seric	    flexfax-request@sgi.com
76858363Seric
76958363Seric	Submissions (including bug reports) should be directed to:
77058363Seric
77158363Seric	    flexfax@sgi.com
77258363Seric
77358363Seric
77457945Seric+--------------------------------+
77557945Seric| TWEAKING CONFIGURATION OPTIONS |
77657945Seric+--------------------------------+
77757945Seric
77857945SericThere are a large number of configuration options that don't normally
77957945Sericneed to be changed.  However, if you feel you need to tweak them, you
78057945Sericcan define the following M4 variables.  This list is shown in four
78157945Sericcolumns:  the name you define, the default value for that definition,
78257945Sericthe option or macro that is affected (either Ox for an option or Dx
78357945Sericfor a macro), and a brief description.  Greater detail of the semantics
78457945Sericcan be found in the Installation and Operations Guide.
78557945Seric
78663582SericSome options are likely to be deprecated in future versions -- that is,
78763582Sericthe option is only included to provide back-compatibility.  These are
78863582Sericmarked with "*".
78963582Seric
79057945SericM4 Variable Name	Default		Mac/Opt	Description
79157945SericconfMAILER_NAME		MAILER-DAEMON	Dn	The sender name used for
79257945Seric						internally generated
79357945Seric						outgoing messages.
79458681SericconfFROM_LINE		From $g  $d	Dl	The From_ line used when
79558681Seric						sending to files or programs.
79657945SericconfFROM_HEADER		$?x$x <$g>$|$g$.	The format of an internally
79757945Seric					Dq	generated From: address.
79857945SericconfOPERATORS		.:%@!^/[]	Do	Address operator characters.
79964153SericconfSMTP_LOGIN_MSG	$j Sendmail $v/$Z ready at $b
80057945Seric					De	The initial (spontaneous)
80157945Seric						SMTP greeting message.
80259743SericconfSEVEN_BIT_INPUT	False		O7	Force input to seven bits?
80357945SericconfALIAS_WAIT		10		Oa	Wait (in minutes) for alias
80457945Seric						file rebuild.
80558087SericconfMIN_FREE_BLOCKS	4		Ob	Minimum number of free blocks
80658087Seric						on queue filesystem to accept
80758087Seric						SMTP mail.
80857945SericconfBLANK_SUB		.		OB	Blank (space) substitution
80957945Seric						character.
81057945SericconfCON_EXPENSIVE	False		Oc	Connect immediately to
81157945Seric						mailers marked expensive?
81257945SericconfCHECKPOINT_INTERVAL	10		OC	Checkpoint queue files
81357945Seric						every N recipients.
81457945SericconfDELIVERY_MODE	background	Od	Default delivery mode.
81557945SericconfAUTO_REBUILD	False		OD	Automatically rebuild
81657945Seric						alias file if needed.
81757945SericconfERROR_MODE		(undefined)	Oe	Error message mode.
81857945SericconfERROR_MESSAGE	(undefined)	OE	Error message header/file.
81957945SericconfSAVE_FROM_LINES	False		Of	Save extra leading
82057945Seric						From_ lines.
82157945SericconfTEMP_FILE_MODE	0600		OF	Temporary file mode.
82257945SericconfDEF_GROUP_ID	1		Og	Default group id.
82357945SericconfMATCH_GECOS		False		OG	Match GECOS field.
82457945SericconfMAX_HOP		17		Oh	Maximum hop count.
82563582SericconfIGNORE_DOTS		False		Oi *	Ignore dot as terminator
82657945Seric						for incoming messages?
82757945SericconfBIND_OPTS		(empty)		OI	Default options for BIND.
82863582SericconfMIME_FORMAT_ERRORS	True		Oj *	Send error messages as MIME-
82959743Seric						encapsulated messages per
83059743Seric						RFC 1344.
83164153SericconfFORWARD_PATH	(undefined)	OJ	The colon-separated list of
83264153Seric						places to search for .forward
83364153Seric						files.
83457945SericconfMCI_CACHE_SIZE	2		Ok	Size of open connection cache.
83557945SericconfMCI_CACHE_TIMEOUT	5m		OK	Open connection cache timeout.
83663582SericconfUSE_ERRORS_TO	False		Ol *	Use the Errors-To: header to
83763582Seric						deliver error messages.  This
83863582Seric						should not be necessary because
83963582Seric						of general acceptance of the
84063582Seric						envelope/header distinction.
84157945SericconfLOG_LEVEL		9		OL	Log level.
84257945SericconfME_TOO		False		Om	Include sender in group
84357945Seric						expansions.
84457945SericconfCHECK_ALIASES	True		On	Check RHS of aliases when
84557945Seric						running newaliases.
84663582SericconfOLD_STYLE_HEADERS	True		Oo *	Assume that headers without
84757945Seric						special chars are old style.
84858859SericconfDAEMON_OPTIONS	(undefined)	OO	SMTP daemon options.
84958806SericconfPRIVACY_FLAGS	authwarnings	Op	Privacy flags.
85057945SericconfCOPY_ERRORS_TO	(undefined)	OP	Address for additional copies
85157945Seric						of all error messages.
85257945SericconfQUEUE_FACTOR	(undefined)	Oq	Slope of queue-only function
85358116SericconfREAD_TIMEOUT	(undefined)	Or	SMTP read timeouts.
85463582SericconfSAFE_QUEUE		True		Os *	Commit all messages to disk
85557945Seric						before forking.
85658806SericconfMESSAGE_TIMEOUT	5d/4h		OT	Timeout for messages before
85758806Seric						sending error/warning message.
85859317SericconfTIME_ZONE		USE_SYSTEM	Ot	Time zone info -- can be
85957945Seric						USE_SYSTEM to use the system's
86057945Seric						idea, USE_TZ to use the user's
86157945Seric						TZ envariable, or something
86257945Seric						else to force that value.
86357945SericconfDEF_USER_ID		1		Ou	Default user id.
86458718SericconfUSERDB_SPEC		(undefined)	OU	User database specification.
86558859SericconfFALLBACK_MX		(undefined)	OV	Fallback MX host.
86663857SericconfTRY_NULL_MX_LIST	False		Ow	If we are the best MX for a
86763857Seric						host and haven't made other
86863857Seric						arrangements, try connecting
86963857Seric						to the host directly; normally
87063857Seric						this would be a config error.
87157945SericconfQUEUE_LA		8		Ox	Load average at which queue-only
87257945Seric						function kicks in.
87357945SericconfREFUSE_LA		12		OX	Load average at which incoming
87457945Seric						SMTP connections are refused.
87563582SericconfWORK_RECIPIENT_FACTOR
87663582Seric			(undefined)	Oy	Cost of each recipient.
87763582SericconfSEPARATE_PROC	False		OY	Run all deliveries in a
87857945Seric						separate process.
87957945SericconfWORK_CLASS_FACTOR	(undefined)	Oz	Priority multiplier for class.
88057945SericconfWORK_TIME_FACTOR	(undefined)	OZ	Cost of each delivery attempt.
88158408SericconfCW_FILE		/etc/sendmail.cw	Name of file used to get the
88258408Seric					Fw	local additions to the $=w
88358408Seric						class.
88464153SericconfSMTP_MAILER		smtp		-	The mailer name used when
88563972Seric						SMTP connectivity is required.
88663972Seric						Either "smtp" or "esmtp".
88763999SericconfLOCAL_MAILER	local		-	The mailer name used when
88863999Seric						local connectivity is required.
88963999Seric						Almost always "local".
89064028SericconfRELAY_MAILER	relay		-	The default mailer name used
89164028Seric						for relaying any mail (e.g.,
89264028Seric						to a BITNET_RELAY, a
89364028Seric						SMART_HOST, or whatever).
89464028Seric						This can reasonably be "suucp"
89564028Seric						if you are on a UUCP-connected
89664028Seric						site.
89764259SericconfDOMAIN_NAME		(undefined)	Dj	If defined, sets $j.
89857945Seric
89958087Seric
90057246Seric+-----------+
90157246Seric| HIERARCHY |
90257246Seric+-----------+
90357246Seric
90451220SericWithin this directory are several subdirectories, to wit:
90551220Seric
90651220Sericm4		General support routines.  These are typically
90751220Seric		very important and should not be changed without
90857247Seric		very careful consideration.
90951220Seric
91051220Sericcf		The configuration files themselves.  They have
91151220Seric		".mc" suffixes, and must be run through m4 to
91251220Seric		become complete.  The resulting output should
91351220Seric		have a ".cf" suffix.
91451220Seric
91551220Sericostype		Definitions describing a particular operating
91651220Seric		system type.  These should always be referenced
91751220Seric		using the OSTYPE macro in the .mc file.  Examples
91851220Seric		include "bsd4.3", "bsd4.4", "sunos3.5", and
91951220Seric		"sunos4.1".
92051220Seric
92151220Sericdomain		Definitions describing a particular domain, referenced
92251220Seric		using the DOMAIN macro in the .mc file.  These are
92351220Seric		site dependent; for example, we contribute "cs.exposed.m4"
92451220Seric		and "cs.hidden.m4" which both describe hosts in the
92551220Seric		CS.Berkeley.EDU subdomain; the former displays the local
92651220Seric		hostname (e.g., mammoth.CS.Berkeley.EDU), whereas the
92751220Seric		latter does its best to hide the identity of the local
92851220Seric		workstation inside the CS subdomain.
92951220Seric
93051220Sericmailer		Descriptions of mailers.   These are referenced using
93151220Seric		the MAILER macro in the .mc file.
93251220Seric
93351220Sericsh		Shell files used when building the .cf file from the
93451220Seric		.mc file in the cf subdirectory.
93551220Seric
93651220Sericfeature		These hold special orthogonal features that you might
93751220Seric		want to include.  They should be referenced using
93851220Seric		the FEATURE macro.
93951220Seric
94051220Serichack		Local hacks.  These can be referenced using the HACK
94151220Seric		macro.  They shouldn't be of more than voyeuristic
94251220Seric		interest outside the .Berkeley.EDU domain, but who knows?
94351220Seric		We've all got our own peccadilloes.
94451220Seric
94551268Sericsiteconfig	Site configuration -- e.g., tables of locally connected
94651268Seric		UUCP sites.
94751220Seric
94851268Seric
94957246Seric+------------------------+
95057246Seric| ADMINISTRATIVE DETAILS |
95157246Seric+------------------------+
95251220Seric
95351220SericThe following sections detail usage of certain internal parts of the
95451220Sericsendmail.cf file.  Read them carefully if you are trying to modify
95551220Sericthe current model.  If you find the above descriptions adequate, these
95651220Sericshould be {boring, confusing, tedious, ridiculous} (pick one or more).
95751220Seric
95851220SericRULESETS (* means built in to sendmail)
95951220Seric
96051220Seric   0 *	Parsing
96151220Seric   1 *	Sender rewriting
96251220Seric   2 *	Recipient rewriting
96351220Seric   3 *	Canonicalization
96451220Seric   4 *	Post cleanup
96554839Seric   5 *	Local address rewrite (after aliasing)
96660539Seric  1x	mailer rules (sender qualification)
96760539Seric  2x	mailer rules (recipient qualification)
96860539Seric  90	Mailertable host stripping
96960892Seric  96	Bottom half of Ruleset 3 (ruleset 6 in old sendmail)
97060892Seric  97	Hook for recursive ruleset 0 call (ruleset 7 in old sendmail)
97163857Seric  98	Local part of ruleset 0 (ruleset 8 in old sendmail)
97251220Seric
97351220Seric
97451220SericMAILERS
97551220Seric
97651220Seric   0	local, prog	local and program mailers
97751220Seric   1	smtp		SMTP channel
97858087Seric   2	uucp		UNIX-to-UNIX Copy Program
97958087Seric   3	netnews		Network News delivery
98058363Seric   4	fax		Sam Leffler's FlexFAX software
98151220Seric
98251220Seric
98351220SericMACROS
98451220Seric
98551220Seric   A
98651220Seric   B	Bitnet Relay
98751220Seric   C	CSNET Relay
98854839Seric   D	The local domain -- usually not needed
98951220Seric   E
99058363Seric   F	FAX Relay
99151220Seric   G
99257591Seric   H	mail Hub (for mail clusters)
99351220Seric   I
99451220Seric   J
99551220Seric   K
99651220Seric   L
99751220Seric   M	Masquerade (who I claim to be)
99851220Seric   N
99951220Seric   O
100051220Seric   P
100151220Seric   Q
100251220Seric   R	Relay (for unqualified names)
100358071Seric   S	Smart Host
100451220Seric   T
100551309Seric   U	my UUCP name (if I have a UUCP connection)
100651309Seric   V	UUCP Relay (class V hosts)
100751220Seric   W	UUCP Relay (class W hosts)
100851220Seric   X	UUCP Relay (class X hosts)
100951309Seric   Y	UUCP Relay (all other hosts)
101051220Seric   Z	Version number
101151220Seric
101251220Seric
101351220SericCLASSES
101451220Seric
101551220Seric   A
101651220Seric   B
101751220Seric   C
101851220Seric   D
101957246Seric   E	addresses that should not seem to come from $M
102054839Seric   F	hosts we forward for
102151220Seric   G
102251220Seric   H
102351220Seric   I
102451220Seric   J
102551220Seric   K
102651220Seric   L	addresses that should not be forwarded to $R
102751220Seric   M
102851220Seric   N
102951220Seric   O	operators that indicate network operations (cannot be in local names)
103060211Seric   P	top level pseudo-domains: BITNET, FAX, UUCP, etc.
103151220Seric   Q
103251220Seric   R
103351220Seric   S
103451220Seric   T
103551220Seric   U	locally connected UUCP hosts
103651309Seric   V	UUCP hosts connected to relay $V
103751309Seric   W	UUCP hosts connected to relay $W
103851309Seric   X	UUCP hosts connected to relay $X
103951309Seric   Y	locally connected smart UUCP hosts
104064153Seric   Z	locally connected domain-ized UUCP hosts
104154839Seric   .	the class containing only a dot
104251220Seric
104351220Seric
104451220SericM4 DIVERSIONS
104551220Seric
104658071Seric   1	Local host detection and resolution
104758071Seric   2	Local Ruleset 3 additions
104858071Seric   3	Local Ruleset 0 additions
104951268Seric   4	UUCP Ruleset 0 additions
105051309Seric   5	locally interpreted names (overrides $R)
105154839Seric   6	local configuration (at top of file)
105251220Seric   7	mailer definitions
105354839Seric   8	special local name recognition (late in ruleset 3)
105458681Seric   9	special local rulesets (1 and 2)
1055