xref: /csrg-svn/usr.sbin/sendmail/cf/README (revision 58526)
151220Seric
251220Seric
357246Seric		NEW SENDMAIL CONFIGURATION FILES
451220Seric
557246Seric		Eric Allman <eric@CS.Berkeley.EDU>
651220Seric
7*58526Seric		@(#)README	6.12 (Berkeley) 03/06/93
851220Seric
951220Seric
1057246SericThis document describes the sendmail configuration files being used
1157246Sericat Berkeley.  These use features in the new (R6) sendmail, and although
1257246Sericthere is an ``OLDSENDMAIL'' mode, they haven't really been tested on
1357247Sericold versions of sendmail and cannot be expected to work well.
1451220Seric
1557246SericThese configuration files are probably not as general as previous
1657246Sericversions, and don't handle as many of the wierd cases automagically.
1757246SericI was able to simplify by them for two reasons.  First, the network
1857246Serichas become more consistent -- for example, at this point, everyone
1957246Sericon the internet is supposed to be running a name server, so hacks to
2057246Serichandle NIC-registered hosts can go away.  Second, I assumed that a
2157246Sericsubdomain would be running SMTP internally -- UUCP is presumed to be
2257246Serica long-haul protocol.  I realize that this is not universal, but it
2357246Sericdoes describe the vast majority of sites with which I am familiar,
2457246Sericincluding those outside the US.
2551220Seric
2657246SericOf course, the downside of this is that if you do live in a wierd
2757246Sericworld, things are going to get wierder for you.  I'm sorry about that,
2857246Sericbut at the time we at Berkeley had a problem, and it seemed like the
2957246Sericright thing to do.
3051220Seric
3157247SericThis package requires a post-V7 version of m4; if you are running the
3257247Seric4.2bsd, SysV.2, or 7th Edition version, I suggest finding a friend with
3357247Serica newer version.  You can m4-expand on their system, then run locally.
3457247SericSunOS's /usr/5bin/m4 or BSD-Net/2's m4 both work.  GNU m4 (which is a
3557247Sericlanguage unto itself) also works, but I don't intend to work so hard
3657247Sericto keep this up in the future.  [Note to GNU folks:  the construct
3757246Seric"define(`FOO')" should work without my having to add a null value.]
3851220Seric
3958284SericIF YOU DON'T HAVE A BERKELEY MAKE, don't despair!  Just run
4058284Seric"m4 foo.mc > foo.cf" -- that should be all you need.
4158284Seric
4258284SericTo get started, you may want to look at tcpproto.mc (for TCP-only
4358284Sericsites) and uucpproto.m4 (for UUCP-only sites).  Others are versions
4458284Sericthat we use at Berkeley, although not all are in current use.  For
4558284Sericexample, ucbarpa has gone away, but I've left ucbarpa.mc in because
4658284Sericit demonstrates some interesting techniques.
4758284Seric
4857246SericI'm not pretending that this README describes everything that these
4957246Sericconfiguration files can do; clever people can probably tweak them
5057246Sericto great effect.  But it should get you started.
5157246Seric
5258087Seric
5357246Seric+--------------------------+
5457246Seric| INTRODUCTION AND EXAMPLE |
5557246Seric+--------------------------+
5657246Seric
5757246SericConfiguration files are contained in the subdirectory "cf", with a
5857246Sericsuffix ".mc".  They must be run through "m4" to produce a ".cf" file.
5957246Seric
6051220SericLet's examine a typical .mc file (cf/cs-exposed.mc):
6151220Seric
6251220Seric	divert(-1)
6351220Seric	#
6451220Seric	# Copyright (c) 1983 Eric P. Allman
6551220Seric	# Copyright (c) 1988 The Regents of the University of California.
6651220Seric	# All rights reserved.
6751220Seric	#
6851220Seric	# Redistribution and use in source and binary forms are permitted
6951220Seric	# provided that the above copyright notice and this paragraph are
7051220Seric	# duplicated in all such forms and that any documentation,
7151220Seric	# advertising materials, and other materials related to such
7251220Seric	# distribution and use acknowledge that the software was developed
7351220Seric	# by the University of California, Berkeley.  The name of the
7451220Seric	# University may not be used to endorse or promote products derived
7551220Seric	# from this software without specific prior written permission.
7651220Seric	# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
7751220Seric	# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
7851220Seric	# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
7951220Seric	#
8051220Seric
8157246SericThe divert(-1) will delete the crud in the resulting output file.
8257247SericThe copyright notice is what your lawyers require.  Our lawyers require
8357246Sericthe one that I've included in my files. A copyleft is a copyright by
8457246Sericanother name.
8551220Seric
8657246SericThe next line MUST be
8757246Seric
8851220Seric	include(`../m4/cf.m4')
8951220Seric
9057246SericThis will pull in the M4 macros you will need to make sense of
9157246Sericeverything else.  As the saying goes, don't think about it, just
9257246Sericdo it.  If you don't do it, don't bother reading the rest of this
9357246Sericfile.
9451220Seric
9556778Seric	VERSIONID(`<SCCS or RCS version id>')
9651220Seric
9751220SericVERSIONID is a macro that stuffs the version information into the
9851220Sericresulting file.  We use SCCS; you could use RCS, something else, or
9957246Sericomit it completely.  This is not the same as the version id included
10057246Sericin SMTP greeting messages -- this is defined in m4/version.m4.
10151220Seric
10251268Seric	DOMAIN(cs.exposed)
10351220Seric
10451220SericThis example exposes the host inside of the CS subdomain -- that is,
10551220Sericit doesn't try to hide the name of the workstation to the outside
10651220Sericworld.  Changing this to DOMAIN(cs.hidden) would have made outgoing
10751220Sericmessages refer to "<username>@CS.Berkeley.EDU" instead of using the
10857246Sericlocal hostname.  Internaly this is effected by using
10957246Seric"MASQUERADE_AS(CS.Berkeley.EDU)".
11051220Seric
11151268Seric	MAILER(smtp)
11251220Seric
11351309SericThese describe the mailers used at the default CS site site.  The
11451309Sericlocal mailer is always included automatically.
11551220Seric
11658087Seric
11757246Seric+--------+
11857246Seric| OSTYPE |
11957246Seric+--------+
12057246Seric
12151220SericNote that cf/cs-exposed.mc omits an OSTYPE macro -- this assumes
12251220Sericdefault Computer Science Division environment.  There are several
12357247Sericexplicit environments available: bsd4.3, bsd4.4, hpux, irix, osf1,
12457247Sericriscos4.5, sunos3.5, sunos4.1, and ultrix4.1.  These change things
12557247Sericlike the location of the alias file and queue directory.  Some of
12657247Sericthese files are identical to one another.
12751220Seric
12857246SericOperating system definitions are easy to write.  They may define
12957246Sericthe following variables (everything defaults, so an ostype file
13057246Sericmay be empty).
13151220Seric
13257246SericALIAS_FILE		[/etc/aliases] The location of the text version
13357246Seric			of the alias file.
13457246SericHELP_FILE		[/usr/lib/sendmail.hf] The name of the file
13557246Seric			containing information printed in response to
13657246Seric			the SMTP HELP command.
13757246SericQUEUE_DIR		[/var/spool/mqueue] The directory containing
13857246Seric			queue files.
13957246SericSTATUS_FILE		[/etc/sendmail.st] The file containing status
14057246Seric			information.
14158087SericLOCAL_MAILER_PATH	[/bin/mail] The program used to deliver local mail.
14257246SericLOCAL_MAILER_FLAGS	[rn] The flags used by the local mailer.  The
14357246Seric			flags lsDFMm are always included.
14458087SericLOCAL_SHELL_PATH	[/bin/sh] The shell used to deliver piped email.
14558087SericUSENET_MAILER_PATH	[/usr/lib/news/inews] The name of the program
14658087Seric			used to submit news.
14758087SericUSENET_MAILER_FLAGS	[rlsDFMmn] The mailer flags for the usenet mailer.
14858087SericUSENET_MAILER_ARGS	[-m -h -n] The command line arguments for the
14958087Seric			usenet mailer.
15057246SericHOSTMAP_SPEC		[dbm -o /etc/hostmap] The value for the builtin
15157246Seric			hostmap key definition.  You can redefine this
15257246Seric			to change the class, flags, and filename of
15357246Seric			the hostmap.  The default flag (-o) makes this
15457246Seric			map optional.
15557246Seric
15657246SericIn addition, the following boolean flags may be defined -- the value
15757246Sericis ignored.
15857246Seric
15957246SericNEED_DOMAIN		If set, the $j macro is defined as $w.$D.
16057246Seric			If not set, $j is defined as $w.  If this is
16157246Seric			set, the domain must be defined using the line
16257246Seric			DD<domainname> (probably in the domain file,
16357246Seric			but possibly in the .mc file).  You will only
16457246Seric			need this if you define your system hostname
16557246Seric			without a domain (type "hostname" -- if it
16658087Seric			has no dots in the output, you qualify) AND
16758087Seric			if you are not running the nameserver AND if
16858087Seric			the first (canonical) name in /etc/hosts for
16958087Seric			your machine has no domain -- OR if you are
17058087Seric			running Ultrix or OSF/1 sendmail.  Either of
17158087Seric			these is probably a mistake.
17257246Seric
17357246Seric+---------+
17457246Seric| DOMAINS |
17557246Seric+---------+
17657246Seric
17757246SericYou will probably want to collect domain-dependent defines into one
17857246Sericfile, referenced by the DOMAIN macro.  For example, our Berkeley
17957246Sericdomain file includes definitions for several internal distinguished
18057246Serichosts:
18157246Seric
18257246SericUUCP_RELAY	The host that will forward UUCP-addressed email.
18357246Seric		If not defined, all UUCP sites must be directly
18457246Seric		connected.
18557246SericBITNET_RELAY	The host that will forward BITNET-addressed email.
18657246Seric		If not defined, the .BITNET pseudo-domain won't work.
18757246SericCSNET_RELAY	The host that will forward CSNET-addressed email.
18857246Seric		If not defined, the .CSNET pseudo-domain won't work.
18957246SericLOCAL_RELAY	The site that will handle unqualified names -- that
19057246Seric		is, names with out an @domain extension.  If not set,
19157246Seric		they are assumed to belong on this machine.  This
19257246Seric		allows you to have a central site to store a
19357246Seric		company- or department-wide alias database.  This
19457246Seric		only works at small sites, and there are better
19557246Seric		methods.
19657246Seric
19757246SericThe domain file can also be used to define a domain name, if needed
19857982Seric(using "DD<domain>") and set certain site-wide features.  If all hosts
19957982Sericat your site masquerade behind one email name, you could also use
20057982SericMASQUERADE_AS here.
20157246Seric
20258408SericYou do not have to define a domain -- in particular, if you are a
20358408Sericsingle machine sitting off somewhere, it is probably more work than
20458408Sericit's worth.  This is just a mechanism for combining "domain dependent
20558408Sericknowledge" into one place.
20658408Seric
20757246Seric+---------+
20857246Seric| MAILERS |
20957246Seric+---------+
21057246Seric
21151220SericThere are fewer mailers supported in this version than the previous
21251220Sericversion, owing mostly to a simpler world.
21351220Seric
21451220Sericlocal		The local and prog mailers.  You will almost always
21551220Seric		need these; the only exception is if you relay ALL
21657247Seric		your mail to another site.  This mailer is included
21757247Seric		automatically.
21851220Seric
21951220Sericsmtp		The Simple Mail Transport Protocol mailer.  This does
22051220Seric		not hide hosts behind a gateway or another other
22151220Seric		such hack; it assumes a world where everyone is
22251220Seric		running the name server.
22351220Seric
22451220Sericuucp		The Unix-to-Unix Copy Program mailer.  Actually, this
22551220Seric		defines two mailers, "uucp" and "suucp".  The latter
22651220Seric		is for when you know that the UUCP mailer at the other
22751220Seric		end can handle multiple recipients in one transfer.
22857246Seric		When you invoke this, sendmail looks for all names in
22957246Seric		the $=U class and sends them to the uucp mailer; all
23057246Seric		names in the $=Y class are sent to suucp.  Note that
23157246Seric		this is a function of what version of rmail runs on
23257246Seric		the receiving end, and hence may be out of your control.
23351220Seric
23458087Sericusenet		Usenet (network news) delivery.  If this is specified,
23558087Seric		an extra rule is added to ruleset 0 that forwards all
23658087Seric		local email for users named ``group.usenet'' to the
23758087Seric		``inews'' program.  Note that this works for all groups,
23858087Seric		and may be considered a security problem.
23958087Seric
24058363Sericfax		Facsimile transmission.  This is experimental and based
24158363Seric		on Sam Leffler's FlexFAX software.  For more information,
24258363Seric		see below.
24358087Seric
24458363Seric
24557246Seric+----------+
24657246Seric| FEATURES |
24757246Seric+----------+
24851268Seric
24957246SericSpecial features can be requested using the "FEATURE" macro.  For
25057246Sericexample, the .mc line:
25157246Seric
25257246Seric	FEATURE(use_cw_file)
25357246Seric
25457246Serictells sendmail that you want to have it read an /etc/sendmail.cw
25557246Sericfile to get values for class $=w.  Available features are:
25657246Seric
25757246Sericuse_cw_file	Read the file /etc/sendmail.cw file to get alternate
25857246Seric		names for this host.  This might be used if you were
25957246Seric		on a host that MXed for a dynamic set of other
26057246Seric		hosts.  If the set is static, just including the line
26157246Seric		"Cw<name1> <name2> ..." is probably superior.
26258408Seric		The actual filename can be overridden by redefining
26358408Seric		confCW_FILE.
26458087Sericredirect	Reject all mail addressed to "address.REDIRECT" with
26558087Seric		a ``551 User not local; please try <address>'' message.
26658087Seric		If this is set, you can alias people who have left
26758087Seric		to their new address with ".REDIRECT" appended.
26858284Sericnouucp		Don't do anything special with UUCP addresses at all.
269*58526Sericnotsticky	By default, email sent to "user@local.host" are marked
270*58526Seric		as "sticky" -- that is, the local addresses aren't
271*58526Seric		matched against UDB and don't go through ruleset 5.
272*58526Seric		This features disables this treatment.  It would
273*58526Seric		normally be used on network gateway machines.
27457246Seric
27557246SericOther FEATUREs should be defined, but I was trying to keep these
27657246Sericconfig files fairly lean and mean.
27757246Seric
27858087Seric
27957246Seric+-------+
28057246Seric| HACKS |
28157246Seric+-------+
28257246Seric
28357246SericSome things just can't be called features.  To make this clear,
28457247Sericthey go in the hack subdirectory and are referenced using the HACK
28557246Sericmacro.  These will tend to be site-dependent.  The release
28657246Sericincludes the Berkeley-dependent "cssubdomain" hack (that makes
28757246Sericsendmail accept local names in either Berkeley.EDU or CS.Berkeley.EDU;
28857246Sericthis is intended as a short-term aid while we move hosts into
28957246Sericsubdomains.
29057246Seric
29158087Seric
29257246Seric+--------------------+
29357246Seric| SITE CONFIGURATION |
29457246Seric+--------------------+
29557246Seric
29657246SericComplex sites will need more local configuration information, such as
29757246Sericlists of UUCP hosts they speak with directly.  This can get a bit more
29857246Serictricky.  For an example of a "complex" site, see cf/ucbvax.mc.
29957246Seric
30057246SericThe SITECONFIG macro allows you to indirectly reference site-dependent
30157246Sericconfiguration information stored in the siteconfig subdirectory.  For
30257246Sericexample, the line
30357246Seric
30457246Seric	SITECONFIG(uucp.ucbvax, ucbvax, U)
30557246Seric
30657246Sericreads the file uucp.ucbvax for local connection information.  The
30757246Sericsecond parameter is the local name (in this case just "ucbvax" since
30857246Sericit is locally connected, and hence a UUCP hostname) and the name of
30957246Sericthe class in which to store the host information.  Another SITECONFIG
31057246Sericline reads
31157246Seric
31257246Seric	SITECONFIG(uucp.ucbarpa, ucbarpa.Berkeley.EDU, W)
31357246Seric
31457246SericThis says that the file uucp.ucbarpa contains the list of UUCP sites
31557246Sericconnected to ucbarpa.Berkeley.EDU.  The $=W class will be used to
31657246Sericstore this list.  [The machine ucbarpa is gone now, but I've left
31757246Sericthis out-of-date configuration file around to demonstrate how you
31857246Sericmight do this.]
31957246Seric
32057246SericThe siteconfig file (e.g., siteconfig/uucp.ucbvax.m4) contains nothing
32157246Sericmore than a sequence of SITE macros describing connectivity.  For
32257246Sericexample:
32357246Seric
32457246Seric	SITE(cnmat)
32557246Seric	SITE(sgi olympus)
32657246Seric
32757246SericThe second example demonstrates that you can use two names on the
32857246Sericsame line; these are usually aliases for the same host (or are at
32957246Sericleast in the same company).
33057246Seric
33158087Seric
33257246Seric+-------------------+
33357246Seric| TWEAKING RULESETS |
33457246Seric+-------------------+
33557246Seric
33651268SericFor more complex configurations, you can define special rules.
33751268SericThe macro LOCAL_RULE_3 introduces rules that are used in canonicalizing
33851268Sericthe names.  Any modifications made here are reflected in the header.
33951268Seric
34051268SericA common use is to convert old UUCP addreses to SMTP addresses using
34151268Sericthe UUCPSMTP macro.  For example:
34251268Seric
34351268Seric	LOCAL_RULE_3
34451268Seric	UUCPSMTP(decvax,	decvax.dec.com)
34551268Seric	UUCPSMTP(research,	research.att.com)
34651268Seric
34751268Sericwill cause addresses of the form "decvax!user" and "research!user"
34851268Sericto be converted to "user@decvax.dec.com" and "user@research.att.com"
34951268Sericrespectively.
35051268Seric
35157246SericThis could also be used to look hosts in a database map:
35257246Seric
35357246Seric	LOCAL_RULE_3
35457246Seric	R$* < @ $+ > $*		$: $1 < @ $(hostmap $2 $) > $3
35557246Seric
35657246SericThis map would be defined in the LOCAL_CONFIG portion, as shown below.
35757246Seric
35851268SericSimilarly, LOCAL_RULE_0 can be used to introduce new parsing rules.
35951268SericFor example, new rules are needed to parse hostnames that you accept
36051309Sericvia MX records.  For example, you might have:
36151268Seric
36251309Seric	LOCAL_RULE_0
36351309Seric	R$+ < @ cnmat.Berkeley.EDU >	$#uucp $@ cnmat $: $1
36451309Seric
36551309SericYou would use this if you had installed an MX record for cnmat.Berkeley.EDU
36651309Sericpointing at this host; this rule catches the message and forwards it on
36751309Sericusing UUCP.
36851309Seric
36957246SericA similar macro is LOCAL_CONFIG.  This introduces lines added after the
37057246Sericboilerplate option setting but before rulesets, and can be used to
37157945Sericdeclare local database maps or whatever.  For example:
37251268Seric
37357246Seric	LOCAL_CONFIG
37457246Seric	Khostmap hash /etc/hostmap.db
37557246Seric	Kyplocal nis -m hosts.byname
37651220Seric
37758087Seric
37857246Seric+---------------------------+
37957246Seric| MASQUERADING AND RELAYING |
38057246Seric+---------------------------+
38157246Seric
38257246SericYou can have your host masquerade as another using
38357246Seric
38457246Seric	MASQUERADE_AS(host.domain)
38557246Seric
38657246SericThis causes outgoing SMTP mail to be labelled as coming from the
38757246Sericindicated domain, rather than $j.  One normally masquerades as one
38857246Sericof your own subdomains (for example, it's unlikely that I would
38957246Sericchoose to masquerade as an MIT site).
39057246Seric
39157246Sericthere are always users that need to be "exposed" -- that is, their
39257246Sericinternal site name should be displayed instead of the masquerade name.
39357246SericRoot is an example.  You can add users to this list using
39457246Seric
39557246Seric	EXPOSED_USER(usernames)
39657246Seric
39757246SericThis adds users to class E; you could also use something like
39857246Seric
39957246Seric	FE/etc/sendmail.cE
40057246Seric
40157246SericYou can also arrange to relay all unqualified names (that is, names
40257246Sericwithout @host) to a relay host.  For example, if you have a central
40357246Sericemail server, you might relay to that host so that users don't have
40457246Sericto have .forward files or aliases.  You can do this using
40557246Seric
40658071Seric	define(`LOCAL_RELAY', mailer:hostname)
40757246Seric
40858071SericThe ``mailer:'' can be omitted, in which case the mailer defaults to
40958071Seric"smtp".  There are some user names that you don't want relayed, perhaps
41058071Sericbecause of local aliases.  A common example is root, which may be
41158071Sericlocally aliased.  You can add entries to this list using
41257246Seric
41357246Seric	LOCAL_USER(usernames)
41457246Seric
41557246SericThis adds users to class L; you could also use something like
41657246Seric
41757246Seric	FL/etc/sendmail.cL
41857246Seric
41957591SericIf you want all mail sent to a centralized hub, as for a shared
42057591Seric/var/spool/mail scheme, use
42157591Seric
42258071Seric	define(`MAIL_HUB', mailer:hostname)
42357591Seric
42458071SericAgain, ``mailer:'' defaults to "smtp".  If you define both LOCAL_RELAY
42558071Sericand MAIL_HUB, unqualified names and names in class L will be sent to
42658071Sericthe LOCAL_RELAY and other local names will be sent to MAIL_HUB.  For
42758071Sericexample, if are on machine mastodon.CS.Berkeley.EDU, the following
42858071Sericcombinations of settings will have the indicated effects:
42957591Seric
43057591Sericemail sent to....	eric			  eric@mastodon.CS.Berkeley.EDU
43157591Seric
43257591SericLOCAL_RELAY set to	mail.CS.Berkeley.EDU	  (delivered locally)
43357591Sericmail.CS.Berkeley.EDU
43457591Seric
43557591SericMAIL_HUB set to		mammoth.CS.Berkeley.EDU	  mammoth.CS.Berkeley.EDU
43657591Sericmammoth.CS.Berkeley.EDU
43757591Seric
43857591SericBoth LOCAL_RELAY and	mail.CS.Berkeley.EDU	  mammoth.CS.Berkeley.EDU
43957591SericMAIL_HUB set as above
44057591Seric
44158071Seric
44258071Seric+-------------------------------+
44358071Seric| NON-SMTP BASED CONFIGURATIONS |
44458071Seric+-------------------------------+
44558071Seric
44658071SericThese configuration files are designed primarily for use by SMTP-based
44758071Sericsites.  I don't pretend that they are well tuned for UUCP-only or
44858071SericUUCP-primarily nodes (the latter is defined as a small local net
44958071Sericconnected to the rest of the world via UUCP).  However, there is one
45058071Serichook to handle some special cases.
45158071Seric
45258071SericYou can define a ``smart host'' that understands a richer address syntax
45358071Sericusing:
45458071Seric
45558071Seric	define(`SMART_HOST', mailer:hostname)
45658071Seric
45758071SericIn this case, the ``mailer:'' defaults to "suucp".  Any messages that
45858071Sericcan't be handled using the usual UUCP rules are passed to this host.
45958071Seric
46058071SericIf you are on a local SMTP-based net that connects to the outside
46158071Sericworld via UUCP, you can use LOCAL_NET_CONFIG to add appropriate rules.
46258071SericFor example:
46358071Seric
46458071Seric	define(`SMART_HOST', suucp:uunet)
46558071Seric	LOCAL_NET_CONFIG
46658071Seric	R$* < @ $* .$m > $*	$#smtp $@ $2.$m $: $1 < @ $2.$m > $3
46758071Seric
46858071SericThis will cause all names that end in your domain name ($m) via
46958071SericSMTP; anything else will be sent via suucp (smart UUCP) to uunet.
47058071Seric
47158071Seric
47258363Seric+------------------+
47358363Seric| FlexFAX SOFTWARE |
47458363Seric+------------------+
47558363Seric
47658363SericSam Leffler's FlexFAX software is still in beta test -- but he expects a
47758363Sericpublic version out "later this week" [as of 3/1/93].  The following
47858363Sericblurb is direct from Sam:
47958363Seric
48058363Seric	$Header: /usr/people/sam/fax/RCS/HOWTO,v 1.7 93/02/08 09:00:55 sam Exp $
48158363Seric
48258363Seric	How To Obtain This Software (in case all you get is this file)
48358363Seric
48458363Seric	The source code is available for public ftp on
48558363Seric	    sgi.com			sgi/fax/v2.1beta.tar.Z
48658363Seric		(192.48.153.1)
48758363Seric
48858363Seric	You can also obtain inst'able images for Silicon Graphics machines from
48958363Seric	    sgi.com			sgi/fax/v2.1beta.inst.tar
49058363Seric		(192.48.153.1)
49158363Seric
49258363Seric	For example,
49358363Seric	    % ftp -n sgi.com
49458363Seric	    ....
49558363Seric	    ftp> user anonymous
49658363Seric	    ... <type in password>
49758363Seric	    ftp> cd sgi/fax
49858363Seric	    ftp> binary
49958363Seric	    ftp> get v2.1beta.tar.Z
50058363Seric
50158363Seric	If you cannot use FTP at all, there is a service called "ftpmail"
50258363Seric	available from gateekeeper.dec.com:  you can send e-mail to this
50358363Seric	machine and it will use FTP to retrieve files for you and send you the
50458363Seric	files back again via e-mail.  To find out more about the ftpmail
50558363Seric	service, send a message to "ftpmail@gatekeeper.dec.com" whose body
50658363Seric	consists of the single line "help".
50758363Seric
50858363Seric	Internal to Silicon Graphics there are inst'able images on the host
50958363Seric	flake.asd in the directory /d/dist.  Thus you can do something like:
51058363Seric
51158363Seric	    % inst -f flake.asd.sgi.com:/d/dist/flexfax
51258363Seric
51358363Seric	to install the software on your machine.
51458363Seric
51558363Seric	The external distributions come in a compressed or uncompressed tar
51658363Seric	file.  To extract the source distribution:
51758363Seric
51858363Seric	    % zcat v2.1beta.tar.Z | tar xf -
51958363Seric
52058363Seric	(uncompress and extract individual files in current directory).  To
52158363Seric	unpack and install the client portion of the inst'able distribution:
52258363Seric
52358363Seric	    % mkdir dist
52458363Seric	    % cd dist; tar xf ../v2.1beta.inst.tar; cd ..
52558363Seric	    % inst -f dist/flexfax
52658363Seric	    ...
52758363Seric	    inst> go
52858363Seric
52958363Seric	(Note, the dist subdirectory is because some versions of inst fail if
53058363Seric	the files are in the current directory.) Server binaries is also
53158363Seric	included in the inst'able images as flexfax.server.*.  It is not
53258363Seric	installed by default, so to get it also you need to extract the do:
53358363Seric
53458363Seric	    % inst -f flexfax
53558363Seric	    ...
53658363Seric	    inst> install flexfax.server.*
53758363Seric	    inst> go
53858363Seric
53958363Seric	The SGI binaries were built for Version 4.0.5 of the IRIX operating
54058363Seric	system.  They should work w/o problem on earlier versions of the
54158363Seric	system, but I have not fully tested this.  Also, note that to install a
54258363Seric	server on an SGI machine, you need to have installed the Display
54358363Seric	PostScript execution environment product (dps_eoe).  Otherwise, the fax
54458363Seric	server will not be able to convert PostScript to facsimile for
54558363Seric	transmission.
54658363Seric
54758363Seric	If you are working from the source distribution, look at the file README
54858363Seric	in the top of the source tree.  If you are working from the inst images,
54958363Seric	you need to run faxaddmodem to setup and configure your fax modem.  Do
55058363Seric	man faxaddmodem for more information.
55158363Seric
55258363SericAlso from Sam:
55358363Seric
55458363Seric	A mailing list for users of this software is located on sgi.com.
55558363Seric	If you want to join this mailing list or have a list-related request
55658363Seric	such as getting your name removed from it, send a request to
55758363Seric
55858363Seric	    flexfax-request@sgi.com
55958363Seric
56058363Seric	Submissions (including bug reports) should be directed to:
56158363Seric
56258363Seric	    flexfax@sgi.com
56358363Seric
56458363Seric
56557945Seric+--------------------------------+
56657945Seric| TWEAKING CONFIGURATION OPTIONS |
56757945Seric+--------------------------------+
56857945Seric
56957945SericThere are a large number of configuration options that don't normally
57057945Sericneed to be changed.  However, if you feel you need to tweak them, you
57157945Sericcan define the following M4 variables.  This list is shown in four
57257945Sericcolumns:  the name you define, the default value for that definition,
57357945Sericthe option or macro that is affected (either Ox for an option or Dx
57457945Sericfor a macro), and a brief description.  Greater detail of the semantics
57557945Sericcan be found in the Installation and Operations Guide.
57657945Seric
57757945SericM4 Variable Name	Default		Mac/Opt	Description
57857945SericconfMAILER_NAME		MAILER-DAEMON	Dn	The sender name used for
57957945Seric						internally generated
58057945Seric						outgoing messages.
58157945SericconfFROM_LINE		From $?<$<$|$g$.  $d	The From_ line used when
58257945Seric					Dl	sending to files or programs.
58357945SericconfFROM_HEADER		$?x$x <$g>$|$g$.	The format of an internally
58457945Seric					Dq	generated From: address.
58557945SericconfOPERATORS		.:%@!^/[]	Do	Address operator characters.
58657945SericconfSTMP_LOGIN_MSG	$j Sendmail $v/$Z ready at $b
58757945Seric					De	The initial (spontaneous)
58857945Seric						SMTP greeting message.
58957945SericconfEIGHT_BIT_INPUT	False		O8	Use 8-bit input?
59057945SericconfALIAS_WAIT		10		Oa	Wait (in minutes) for alias
59157945Seric						file rebuild.
59258087SericconfMIN_FREE_BLOCKS	4		Ob	Minimum number of free blocks
59358087Seric						on queue filesystem to accept
59458087Seric						SMTP mail.
59557945SericconfBLANK_SUB		.		OB	Blank (space) substitution
59657945Seric						character.
59757945SericconfCON_EXPENSIVE	False		Oc	Connect immediately to
59857945Seric						mailers marked expensive?
59957945SericconfCHECKPOINT_INTERVAL	10		OC	Checkpoint queue files
60057945Seric						every N recipients.
60157945SericconfDELIVERY_MODE	background	Od	Default delivery mode.
60257945SericconfAUTO_REBUILD	False		OD	Automatically rebuild
60357945Seric						alias file if needed.
60457945SericconfERROR_MODE		(undefined)	Oe	Error message mode.
60557945SericconfERROR_MESSAGE	(undefined)	OE	Error message header/file.
60657945SericconfSAVE_FROM_LINES	False		Of	Save extra leading
60757945Seric						From_ lines.
60857945SericconfTEMP_FILE_MODE	0600		OF	Temporary file mode.
60957945SericconfDEF_GROUP_ID	1		Og	Default group id.
61057945SericconfMATCH_GECOS		False		OG	Match GECOS field.
61157945SericconfMAX_HOP		17		Oh	Maximum hop count.
61257945SericconfIGNORE_DOTS		False		Oi	Ignore dot as terminator
61357945Seric						for incoming messages?
61457945SericconfBIND_OPTS		(empty)		OI	Default options for BIND.
61557945SericconfMCI_CACHE_SIZE	2		Ok	Size of open connection cache.
61657945SericconfMCI_CACHE_TIMEOUT	5m		OK	Open connection cache timeout.
61757945SericconfLOG_LEVEL		9		OL	Log level.
61857945SericconfME_TOO		False		Om	Include sender in group
61957945Seric						expansions.
62057945SericconfCHECK_ALIASES	True		On	Check RHS of aliases when
62157945Seric						running newaliases.
62257945SericconfOLD_STYLE_HEADERS	True		Oo	Assume that headers without
62357945Seric						special chars are old style.
62458087SericconfPRIVACY_FLAGS	public		Op	Privacy flags.
62557945SericconfCOPY_ERRORS_TO	(undefined)	OP	Address for additional copies
62657945Seric						of all error messages.
62757945SericconfQUEUE_FACTOR	(undefined)	Oq	Slope of queue-only function
62858116SericconfREAD_TIMEOUT	(undefined)	Or	SMTP read timeouts.
62957945SericconfSAFE_QUEUE		True		Os	Commit all messages to disk
63057945Seric						before forking.
63158484SericconfMESSAGE_TIMEOUT	5d		OT	Timeout for messages before
63257945Seric						sending error message.
63357945SericconfTIME_ZONE		USE_SYSTEM	Oz	Time zone info -- can be
63457945Seric						USE_SYSTEM to use the system's
63557945Seric						idea, USE_TZ to use the user's
63657945Seric						TZ envariable, or something
63757945Seric						else to force that value.
63857945SericconfDEF_USER_ID		1		Ou	Default user id.
63957945SericconfNO_WILDCARD_MX	False		Ow	No wildcard MX records matches
64057945Seric						our domain.
64157945SericconfQUEUE_LA		8		Ox	Load average at which queue-only
64257945Seric						function kicks in.
64357945SericconfREFUSE_LA		12		OX	Load average at which incoming
64457945Seric						SMTP connections are refused.
64557945SericconfSEPARATE_PROC	False		Oy	Run all deliveries in a
64657945Seric						separate process.
64757945SericconfWORK_RECIPIENT_FACTOR
64857945Seric			(undefined)	OY	Cost of each recipient.
64957945SericconfWORK_CLASS_FACTOR	(undefined)	Oz	Priority multiplier for class.
65057945SericconfWORK_TIME_FACTOR	(undefined)	OZ	Cost of each delivery attempt.
65158408SericconfCW_FILE		/etc/sendmail.cw	Name of file used to get the
65258408Seric					Fw	local additions to the $=w
65358408Seric						class.
65457945Seric
65558087Seric
65657246Seric+-----------+
65757246Seric| HIERARCHY |
65857246Seric+-----------+
65957246Seric
66051220SericWithin this directory are several subdirectories, to wit:
66151220Seric
66251220Sericm4		General support routines.  These are typically
66351220Seric		very important and should not be changed without
66457247Seric		very careful consideration.
66551220Seric
66651220Sericcf		The configuration files themselves.  They have
66751220Seric		".mc" suffixes, and must be run through m4 to
66851220Seric		become complete.  The resulting output should
66951220Seric		have a ".cf" suffix.
67051220Seric
67151220Sericostype		Definitions describing a particular operating
67251220Seric		system type.  These should always be referenced
67351220Seric		using the OSTYPE macro in the .mc file.  Examples
67451220Seric		include "bsd4.3", "bsd4.4", "sunos3.5", and
67551220Seric		"sunos4.1".
67651220Seric
67751220Sericdomain		Definitions describing a particular domain, referenced
67851220Seric		using the DOMAIN macro in the .mc file.  These are
67951220Seric		site dependent; for example, we contribute "cs.exposed.m4"
68051220Seric		and "cs.hidden.m4" which both describe hosts in the
68151220Seric		CS.Berkeley.EDU subdomain; the former displays the local
68251220Seric		hostname (e.g., mammoth.CS.Berkeley.EDU), whereas the
68351220Seric		latter does its best to hide the identity of the local
68451220Seric		workstation inside the CS subdomain.
68551220Seric
68651220Sericmailer		Descriptions of mailers.   These are referenced using
68751220Seric		the MAILER macro in the .mc file.
68851220Seric
68951220Sericsh		Shell files used when building the .cf file from the
69051220Seric		.mc file in the cf subdirectory.
69151220Seric
69251220Sericfeature		These hold special orthogonal features that you might
69351220Seric		want to include.  They should be referenced using
69451220Seric		the FEATURE macro.
69551220Seric
69651220Serichack		Local hacks.  These can be referenced using the HACK
69751220Seric		macro.  They shouldn't be of more than voyeuristic
69851220Seric		interest outside the .Berkeley.EDU domain, but who knows?
69951220Seric		We've all got our own peccadilloes.
70051220Seric
70151268Sericsiteconfig	Site configuration -- e.g., tables of locally connected
70251268Seric		UUCP sites.
70351220Seric
70451268Seric
70557246Seric+------------------------+
70657246Seric| ADMINISTRATIVE DETAILS |
70757246Seric+------------------------+
70851220Seric
70951220SericThe following sections detail usage of certain internal parts of the
71051220Sericsendmail.cf file.  Read them carefully if you are trying to modify
71151220Sericthe current model.  If you find the above descriptions adequate, these
71251220Sericshould be {boring, confusing, tedious, ridiculous} (pick one or more).
71351220Seric
71451220SericRULESETS (* means built in to sendmail)
71551220Seric
71651220Seric   0 *	Parsing
71751220Seric   1 *	Sender rewriting
71851220Seric   2 *	Recipient rewriting
71951220Seric   3 *	Canonicalization
72051220Seric   4 *	Post cleanup
72154839Seric   5 *	Local address rewrite (after aliasing)
72251220Seric   6	Bottom half of Ruleset 3
72357247Seric   7	Hook for recursive ruleset 0 call
72457247Seric   8
72557247Seric   9
72651220Seric
72751220Seric
72851220SericMAILERS
72951220Seric
73051220Seric   0	local, prog	local and program mailers
73151220Seric   1	smtp		SMTP channel
73258087Seric   2	uucp		UNIX-to-UNIX Copy Program
73358087Seric   3	netnews		Network News delivery
73458363Seric   4	fax		Sam Leffler's FlexFAX software
73551220Seric
73651220Seric
73751220SericMACROS
73851220Seric
73951220Seric   A
74051220Seric   B	Bitnet Relay
74151220Seric   C	CSNET Relay
74254839Seric   D	The local domain -- usually not needed
74351220Seric   E
74458363Seric   F	FAX Relay
74551220Seric   G
74657591Seric   H	mail Hub (for mail clusters)
74751220Seric   I
74851220Seric   J
74951220Seric   K
75051220Seric   L
75151220Seric   M	Masquerade (who I claim to be)
75251220Seric   N
75351220Seric   O
75451220Seric   P
75551220Seric   Q
75651220Seric   R	Relay (for unqualified names)
75758071Seric   S	Smart Host
75851220Seric   T
75951309Seric   U	my UUCP name (if I have a UUCP connection)
76051309Seric   V	UUCP Relay (class V hosts)
76151220Seric   W	UUCP Relay (class W hosts)
76251220Seric   X	UUCP Relay (class X hosts)
76351309Seric   Y	UUCP Relay (all other hosts)
76451220Seric   Z	Version number
76551220Seric
76651220Seric
76751220SericCLASSES
76851220Seric
76951220Seric   A
77051220Seric   B
77151220Seric   C
77251220Seric   D
77357246Seric   E	addresses that should not seem to come from $M
77454839Seric   F	hosts we forward for
77551220Seric   G
77651220Seric   H
77751220Seric   I
77851220Seric   J
77951220Seric   K
78051220Seric   L	addresses that should not be forwarded to $R
78151220Seric   M
78251220Seric   N
78351220Seric   O	operators that indicate network operations (cannot be in local names)
78451220Seric   P
78551220Seric   Q
78651220Seric   R
78751220Seric   S
78851220Seric   T
78951220Seric   U	locally connected UUCP hosts
79051309Seric   V	UUCP hosts connected to relay $V
79151309Seric   W	UUCP hosts connected to relay $W
79251309Seric   X	UUCP hosts connected to relay $X
79351309Seric   Y	locally connected smart UUCP hosts
79451220Seric   Z
79554839Seric   .	the class containing only a dot
79651220Seric
79751220Seric
79851220SericM4 DIVERSIONS
79951220Seric
80058071Seric   1	Local host detection and resolution
80158071Seric   2	Local Ruleset 3 additions
80258071Seric   3	Local Ruleset 0 additions
80351268Seric   4	UUCP Ruleset 0 additions
80451309Seric   5	locally interpreted names (overrides $R)
80554839Seric   6	local configuration (at top of file)
80651220Seric   7	mailer definitions
80754839Seric   8	special local name recognition (late in ruleset 3)
80858087Seric   9	special local name recognition (late in ruleset 0)
809