add MAILER(mail11) from Barb Dijker
[unix-history] / usr / src / usr.sbin / sendmail / cf / README
index b1b371f..ac79911 100644 (file)
@@ -4,16 +4,15 @@
 
                Eric Allman <eric@CS.Berkeley.EDU>
 
 
                Eric Allman <eric@CS.Berkeley.EDU>
 
-               @(#)README      8.21 (Berkeley) %G%
+               @(#)README      8.59 (Berkeley) %G%
 
 
 This document describes the sendmail configuration files being used
 
 
 This document describes the sendmail configuration files being used
-at Berkeley.  These use features in the new (R8) sendmail, and although
-there is an ``OLDSENDMAIL'' mode, they haven't really been tested on
-old versions of sendmail and cannot be expected to work well.
+at Berkeley.  These use features in the new (R8) sendmail; they will
+not work on other versions.
 
 These configuration files are probably not as general as previous
 
 These configuration files are probably not as general as previous
-versions, and don't handle as many of the wierd cases automagically.
+versions, and don't handle as many of the weird cases automagically.
 I was able to simplify by them for two reasons.  First, the network
 has become more consistent -- for example, at this point, everyone
 on the internet is supposed to be running a name server, so hacks to
 I was able to simplify by them for two reasons.  First, the network
 has become more consistent -- for example, at this point, everyone
 on the internet is supposed to be running a name server, so hacks to
@@ -23,8 +22,8 @@ a long-haul protocol.  I realize that this is not universal, but it
 does describe the vast majority of sites with which I am familiar,
 including those outside the US.
 
 does describe the vast majority of sites with which I am familiar,
 including those outside the US.
 
-Of course, the downside of this is that if you do live in a wierd
-world, things are going to get wierder for you.  I'm sorry about that,
+Of course, the downside of this is that if you do live in a weird
+world, things are going to get weirder for you.  I'm sorry about that,
 but at the time we at Berkeley had a problem, and it seemed like the
 right thing to do.
 
 but at the time we at Berkeley had a problem, and it seemed like the
 right thing to do.
 
@@ -66,31 +65,58 @@ to great effect.  But it should get you started.
 Configuration files are contained in the subdirectory "cf", with a
 suffix ".mc".  They must be run through "m4" to produce a ".cf" file.
 
 Configuration files are contained in the subdirectory "cf", with a
 suffix ".mc".  They must be run through "m4" to produce a ".cf" file.
 
-Let's examine a typical .mc file (cf/cs-exposed.mc):
+Let's examine a typical .mc file (cf/cs-hpux9.mc):
 
        divert(-1)
        #
        # Copyright (c) 1983 Eric P. Allman
 
        divert(-1)
        #
        # Copyright (c) 1983 Eric P. Allman
-       # Copyright (c) 1988 The Regents of the University of California.
-       # All rights reserved.
+       # Copyright (c) 1988, 1993
+       #       The Regents of the University of California.  All rights reserved.
        #
        #
-       # Redistribution and use in source and binary forms are permitted
-       # provided that the above copyright notice and this paragraph are
-       # duplicated in all such forms and that any documentation,
-       # advertising materials, and other materials related to such
-       # distribution and use acknowledge that the software was developed
-       # by the University of California, Berkeley.  The name of the
-       # University may not be used to endorse or promote products derived
-       # from this software without specific prior written permission.
-       # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-       # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-       # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+       # Redistribution and use in source and binary forms, with or without
+       # modification, are permitted provided that the following conditions
+       # are met:
+       # 1. Redistributions of source code must retain the above copyright
+       #    notice, this list of conditions and the following disclaimer.
+       # 2. Redistributions in binary form must reproduce the above copyright
+       #    notice, this list of conditions and the following disclaimer in
+       #    the documentation and/or other materials provided with the
+       #    distribution.
+       # 3. All advertising materials mentioning features or use of this
+       #    software #    must display the following acknowledgement:
+       #       This product includes software developed by the University of
+       #       California, Berkeley and its contributors.
+       # 4. Neither the name of the University nor the names of its
+       #    contributors may be used to endorse or promote products derived
+       #    from this software without specific prior written permission.
+       #
+       # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
+       # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+       # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+       # PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
+       # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
+       # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
+       # OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+       # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+       # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+       # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+       # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+       #
+
+       #
+       #  This is a Berkeley-specific configuration file for HP-UX 9.x.
+       #  It applies only the the Computer Science Division at Berkeley,
+       #  and should not be used elsewhere.   It is provided on the sendmail
+       #  distribution as a sample only.  To create your own configuration
+       #  file, create an appropriate domain file in ../domain, change the
+       #  `DOMAIN' macro below to reference that file, and copy the result
+       #  to a name of your own choosing.
        #
 
 The divert(-1) will delete the crud in the resulting output file.
        #
 
 The divert(-1) will delete the crud in the resulting output file.
-The copyright notice is what your lawyers require.  Our lawyers require
-the one that I've included in my files. A copyleft is a copyright by
-another name.
+The copyright notice can be replace by whatever your lawyers require;
+our lawyers require the one that I've included in my files.  A copyleft
+is a copyright by another name.
 
 The next line MUST be
 
 
 The next line MUST be
 
@@ -108,15 +134,22 @@ resulting file.  We use SCCS; you could use RCS, something else, or
 omit it completely.  This is not the same as the version id included
 in SMTP greeting messages -- this is defined in m4/version.m4.
 
 omit it completely.  This is not the same as the version id included
 in SMTP greeting messages -- this is defined in m4/version.m4.
 
-       DOMAIN(cs.exposed)
+       OSTYPE(hpux9)dnl
 
 
-This example exposes the host inside of the CS subdomain -- that is,
-it doesn't try to hide the name of the workstation to the outside
-world.  Changing this to DOMAIN(cs.hidden) would have made outgoing
-messages refer to "<username>@CS.Berkeley.EDU" instead of using the
-local hostname.  Internally this is effected by using
-"MASQUERADE_AS(CS.Berkeley.EDU)".
+You must specify an OSTYPE to properly configure things such as the
+pathname of the help and status files, the flags needed for the local
+mailer, and other important things.  If you omit it, you will get an
+error when you try to build the configuration.  Look at the ostype
+directory for the list of known operating system types.
 
 
+       DOMAIN(CS.Berkeley.EDU)dnl
+
+This example is specific to the Computer Science Division at Berkeley.
+You can use "DOMAIN(generic)" to get a sufficiently bland definition
+that may well work for you, or you can create a customized domain
+definition appropriate for your environment.
+
+       MAILER(local)
        MAILER(smtp)
 
 These describe the mailers used at the default CS site site.  The
        MAILER(smtp)
 
 These describe the mailers used at the default CS site site.  The
@@ -127,20 +160,25 @@ local mailer is always included automatically.
 | OSTYPE |
 +--------+
 
 | OSTYPE |
 +--------+
 
-Note that cf/cs-exposed.mc omits an OSTYPE macro -- this assumes
-default Computer Science Division environment.  There are several
-explicit environments available: bsd4.3, bsd4.4, hpux, irix, osf1,
-riscos4.5, sunos3.5, sunos4.1, and ultrix4.1.  These change things
-like the location of the alias file and queue directory.  Some of
-these files are identical to one another.
+You MUST define an operating system environment, or the configuration
+file build will puke.  There are several environments available; look
+at the "ostype" directory for the current list.  This macro changes
+things like the location of the alias file and queue directory.  Some
+of these files are identical to one another.
 
 
-Operating system definitions are easy to write.  They may define
-the following variables (everything defaults, so an ostype file
-may be empty).
+Operating system definitions are usually easy to write.  They may define
+the following variables (everything defaults, so an ostype file may be
+empty).  Unfortunately, the list of configuration-supported systems is
+not as broad as the list of source-supported systems, since many of
+the source contributors do not include corresponding ostype files.
 
 ALIAS_FILE             [/etc/aliases] The location of the text version
                        of the alias file(s).  It can be a comma-separated
 
 ALIAS_FILE             [/etc/aliases] The location of the text version
                        of the alias file(s).  It can be a comma-separated
-                       list of names.
+                       list of names (but be sure you quote values with
+                       commas in them -- for example, use
+                               define(`ALIAS_FILE', `a,b')
+                       to get "a" and "b" both listed as alias files;
+                       otherwise the define() primitive only sees "a").
 HELP_FILE              [/usr/lib/sendmail.hf] The name of the file
                        containing information printed in response to
                        the SMTP HELP command.
 HELP_FILE              [/usr/lib/sendmail.hf] The name of the file
                        containing information printed in response to
                        the SMTP HELP command.
@@ -153,30 +191,71 @@ LOCAL_MAILER_FLAGS        [rmn] The flags used by the local mailer.  The
                        flags lsDFM are always included.
 LOCAL_MAILER_ARGS      [mail -d $u] The arguments passed to deliver local
                        mail.
                        flags lsDFM are always included.
 LOCAL_MAILER_ARGS      [mail -d $u] The arguments passed to deliver local
                        mail.
+LOCAL_MAILER_MAX       [undefined] If defined, the maximum size of local
+                       mail that you are willing to accept.
+LOCAL_MAILER_CHARSET   [undefined] If defined, messages containing 8-bit data
+                       that ARRIVE from an address that resolves to the
+                       local mailer and which are converted to MIME will be
+                       labelled with this character set.
 LOCAL_SHELL_PATH       [/bin/sh] The shell used to deliver piped email.
 LOCAL_SHELL_FLAGS      [eu] The flags used by the shell mailer.  The
                        flags lsDFM are always included.
 LOCAL_SHELL_ARGS       [sh -c $u] The arguments passed to deliver "prog"
                        mail.
 LOCAL_SHELL_PATH       [/bin/sh] The shell used to deliver piped email.
 LOCAL_SHELL_FLAGS      [eu] The flags used by the shell mailer.  The
                        flags lsDFM are always included.
 LOCAL_SHELL_ARGS       [sh -c $u] The arguments passed to deliver "prog"
                        mail.
+LOCAL_SHELL_DIR                [$z:/] The directory search path in which the
+                       shell should run.
 USENET_MAILER_PATH     [/usr/lib/news/inews] The name of the program
                        used to submit news.
 USENET_MAILER_FLAGS    [rlsDFMmn] The mailer flags for the usenet mailer.
 USENET_MAILER_ARGS     [-m -h -n] The command line arguments for the
                        usenet mailer.
 USENET_MAILER_PATH     [/usr/lib/news/inews] The name of the program
                        used to submit news.
 USENET_MAILER_FLAGS    [rlsDFMmn] The mailer flags for the usenet mailer.
 USENET_MAILER_ARGS     [-m -h -n] The command line arguments for the
                        usenet mailer.
+USENET_MAILER_MAX      [100000] The maximum size of messages that will
+                       be accepted by the usenet mailer.
 SMTP_MAILER_FLAGS      [undefined] Flags added to SMTP mailer.  Default
 SMTP_MAILER_FLAGS      [undefined] Flags added to SMTP mailer.  Default
-                       flags are `mDFMUX' (and `a' for esmtp mailer).
+                       flags are `mDFMUX' for all SMTP-based mailers; the
+                       "esmtp" mailer adds `a' and "smtp8" adds `8'.
+SMTP_MAILER_MAX                [undefined] The maximum size of messages that will
+                       be transported using the smtp, smtp8, or esmtp
+                       mailers.
+SMTP_MAILER_ARGS       [IPC $h] The arguments passed to the smtp mailer.
+                       About the only reason you would want to change this
+                       would be to change the default port.
+ESMTP_MAILER_ARGS      [IPC $h] The arguments passed to the esmtp mailer.
+SMTP8_MAILER_ARGS      [IPC $h] The arguments passed to the smtp8 mailer.
+RELAY_MAILER_ARGS      [IPC $h] The arguments passed to the relay mailer.
+SMTP_MAILER_CHARSET    [undefined] If defined, messages containing 8-bit data
+                       that ARRIVE from an address that resolves to one of
+                       the SMTP mailers and which are converted to MIME will
+                       be labelled with this character set.
 UUCP_MAILER_FLAGS      [undefined] Flags added to UUCP mailer.  Default
 UUCP_MAILER_FLAGS      [undefined] Flags added to UUCP mailer.  Default
-                       flags are `DFMhuU' (and `m' for suucp mailer, minus
-                       `U' for uucp-dom mailer).
-UUCP_MAILER_ARGS       [uux - -r -z -a$f -gC $h!rmail ($u)] The arguments
+                       flags are `DFMhuU' (and `m' for uucp-new mailer,
+                       minus `U' for uucp-dom mailer).
+UUCP_MAILER_ARGS       [uux - -r -z -a$g -gC $h!rmail ($u)] The arguments
                        passed to the UUCP mailer.
                        passed to the UUCP mailer.
-UUCP_MAX_SIZE          [100000] The maximum size message accepted for
+UUCP_MAILER_MAX                [100000] The maximum size message accepted for
                        transmission by the UUCP mailers.
                        transmission by the UUCP mailers.
-HOSTMAP_SPEC           [dbm -o /etc/hostmap] The value for the builtin
-                       hostmap key definition.  You can redefine this
-                       to change the class, flags, and filename of
-                       the hostmap.  The default flag (-o) makes this
-                       map optional.
+UUCP_MAILER_CHARSET    [undefined] If defined, messages containing 8-bit data
+                       that ARRIVE from an address that resolves to one of
+                       the UUCP mailers and which are converted to MIME will
+                       be labelled with this character set.
+FAX_MAILER_PATH                [/usr/local/lib/fax/mailfax] The program used to
+                       submit FAX messages.
+FAX_MAILER_MAX         [100000] The maximum size message accepted for
+                       transmission by FAX.
+POP_MAILER_PATH                [/usr/lib/mh/spop] The pathname of the POP mailer.
+POP_MAILER_FLAGS       [Penu] Flags added to POP mailer.  Flags "lsDFM"
+                       are always added.
+POP_MAILER_ARGS                [pop $u] The arguments passed to the POP mailer.
+PROCMAIL_MAILER_FLAGS  [Shu] Flags added to Procmail mailer.  Flags
+                       ``DFMmn'' are always set.
+PROCMAIL_MAILER_ARGS   [procmail -m $h $f $u] The arguments passed to
+                       the Procmail mailer.
+PROCMAIL_MAILER_MAX    [undefined] If set, the maximum size message that
+                       will be accepted by the procmail mailer.
+MAIL11_MAILER_PATH     [/usr/etc/mail11] The path to the mail11 mailer.
+MAIL11_MAILER_FLAGS    [nsFx] Flags for the mail11 mailer.
+MAIL11_MAILER_ARGS     [mail11 $g $x $h $u] Arguments passed to the mail11
+                       mailer.
 
 +---------+
 | DOMAINS |
 
 +---------+
 | DOMAINS |
@@ -187,21 +266,28 @@ file, referenced by the DOMAIN macro.  For example, our Berkeley
 domain file includes definitions for several internal distinguished
 hosts:
 
 domain file includes definitions for several internal distinguished
 hosts:
 
-UUCP_RELAY     The host that will forward UUCP-addressed email.
+UUCP_RELAY     The host that will accept UUCP-addressed email.
                If not defined, all UUCP sites must be directly
                connected.
                If not defined, all UUCP sites must be directly
                connected.
-BITNET_RELAY   The host that will forward BITNET-addressed email.
+BITNET_RELAY   The host that will accept BITNET-addressed email.
                If not defined, the .BITNET pseudo-domain won't work.
                If not defined, the .BITNET pseudo-domain won't work.
-LOCAL_RELAY    The site that will handle unqualified names -- that
-               is, names with out an @domain extension.  If not set,
-               they are assumed to belong on this machine.  This
-               allows you to have a central site to store a
+DECNET_RELAY   The host that will accept DECNET-addressed email.
+               If not defined, the .DECNET pseudo-domain and addresses
+               of the form node::user will not work.
+FAX_RELAY      The host that will accept mail to the .FAX pseudo-domain.
+               The "fax" mailer overrides this value.
+LOCAL_RELAY    DEPRECATED.  The site that will handle unqualified
+               names -- that is, names with out an @domain extension.
+               If not set, they are assumed to belong on this machine.
+               This allows you to have a central site to store a
                company- or department-wide alias database.  This
                company- or department-wide alias database.  This
-               only works at small sites, and there are better
-               methods.
+               only works at small sites, and only with some user
+               agents.
+LUSER_RELAY    The site that will handle lusers -- that is, apparently
+               local names that aren't local accounts or aliases.
 
 
-Each of these can be either ``mailer:hostname'' (in which case the
-mailer is the internal mailer name, such as ``suucp'' and the hostname
+Any of these can be either ``mailer:hostname'' (in which case the
+mailer is the internal mailer name, such as ``uucp-new'' and the hostname
 is the name of the host as appropriate for that mailer) or just a
 ``hostname'', in which case a default mailer type (usually ``relay'',
 a variant on SMTP) is used.  WARNING: if you have a wildcard MX
 is the name of the host as appropriate for that mailer) or just a
 ``hostname'', in which case a default mailer type (usually ``relay'',
 a variant on SMTP) is used.  WARNING: if you have a wildcard MX
@@ -235,23 +321,29 @@ smtp              The Simple Mail Transport Protocol mailer.  This does
                not hide hosts behind a gateway or another other
                such hack; it assumes a world where everyone is
                running the name server.  This file actually defines
                not hide hosts behind a gateway or another other
                such hack; it assumes a world where everyone is
                running the name server.  This file actually defines
-               three mailers: "smtp" for regular (old-style) SMTP to
+               four mailers: "smtp" for regular (old-style) SMTP to
                other servers, "esmtp" for extended SMTP to other
                other servers, "esmtp" for extended SMTP to other
-               servers, and "relay" for transmission to our
-               RELAY_HOST or MAILER_HUB.
+               servers, "smtp8" to do SMTP to other servers without
+               converting 8-bit data to MIME (essentially, this is
+               your statement that you know the other end is 8-bit
+               clean even if it doesn't say so), and "relay" for
+               transmission to our RELAY_HOST, LUSER_RELAY, or
+               MAILER_HUB.
 
 uucp           The Unix-to-Unix Copy Program mailer.  Actually, this
 
 uucp           The Unix-to-Unix Copy Program mailer.  Actually, this
-               defines two mailers, "uucp" and "suucp".  The latter
-               is for when you know that the UUCP mailer at the other
-               end can handle multiple recipients in one transfer.
-               When you invoke this, sendmail looks for all names in
+               defines two mailers, "uucp-old" (a.k.a. "uucp") and
+               "uucp-new" (a.k.a. "suucp").  The latter is for when you
+               know that the UUCP mailer at the other end can handle
+               multiple recipients in one transfer.  If the smtp mailer
+               is also included in your configuration, two other mailers
+               ("uucp-dom" and "uucp-uudom") are also defined [warning:
+               you MUST specify MAILER(smtp) before MAILER(uucp)].  When you
+               include the uucp mailer, sendmail looks for all names in
                the $=U class and sends them to the uucp-old mailer; all
                names in the $=Y class are sent to uucp-new; and all
                names in the $=Z class are sent to uucp-uudom.  Note that
                this is a function of what version of rmail runs on
                the receiving end, and hence may be out of your control.
                the $=U class and sends them to the uucp-old mailer; all
                names in the $=Y class are sent to uucp-new; and all
                names in the $=Z class are sent to uucp-uudom.  Note that
                this is a function of what version of rmail runs on
                the receiving end, and hence may be out of your control.
-               If smtp is defined, it also defines "uucp-dom" and
-               "uucp-uudom" mailers that use domain-style rewriting.
                See the section below describing UUCP mailers in more
                detail.
 
                See the section below describing UUCP mailers in more
                detail.
 
@@ -267,6 +359,36 @@ fax                Facsimile transmission.  This is experimental and based
 
 pop            Post Office Protocol.
 
 
 pop            Post Office Protocol.
 
+procmail       An interface to procmail (does not come with sendmail).
+               This is designed to be used in mailertables.  For example,
+               a common question is "how do I forward all mail for a given
+               domain to a single person?".  If you have this mailer
+               defined, you could set up a mailertable reading:
+
+                       host.com        procmail:/etc/procmailrcs/host.com
+
+               with the file /etc/procmailrcs/host.com reading:
+
+                       :0      # forward mail for host.com
+                       ! -oi -f $1 person@other.host
+
+               This would arrange for (anything)@host.com to be sent
+               to person@other.host.  Within the procmail script, $1 is
+               the name of the sender and $2 is the name of the recipient.
+               If you use this with FEATURE(local_procmail), the FEATURE
+               should be listed first.
+
+mail11         The DECnet mail11 mailer, useful only if you have the mail11
+               program from gatekeeper.dec.com:/pub/DEC/gwtools (and
+               DECnet, of course).
+
+The local mailer accepts addresses of the form "user+detail", where
+the "+detail" is not used for mailbox matching but is available
+to certain local mail programs (in particular, see FEATURE(local_procmail)).
+For example, "eric", "eric+sendmail", and "eric+sww" all indicate
+the same user, but additional arguments <null>, "sendmail", and "sww"
+may be provided for use in sorting mail.
+
 
 +----------+
 | FEATURES |
 
 +----------+
 | FEATURES |
@@ -308,11 +430,14 @@ nocanonify        Don't pass addresses to $[ ... $] for canonification.
                turn off the usual resolver options that do a similar
                thing.
 
                turn off the usual resolver options that do a similar
                thing.
 
-notsticky      By default, email sent to "user@local.host" are marked
+stickyhost     If set, email sent to "user@local.host" are marked
                as "sticky" -- that is, the local addresses aren't
                matched against UDB and don't go through ruleset 5.
                as "sticky" -- that is, the local addresses aren't
                matched against UDB and don't go through ruleset 5.
-               This features disables this treatment.  It would
-               normally be used on network gateway machines.
+               This is used if you want a set up where "user" is
+               not necessarily the same as "user@local.host", e.g.,
+               to make a distinct domain-wide namespace.  Prior to
+               8.7 this was the default, and notsticky was used to
+               turn this off.
 
 mailertable    Include a "mailer table" which can be used to override
                routing for particular domains.  The argument of the
 
 mailertable    Include a "mailer table" which can be used to override
                routing for particular domains.  The argument of the
@@ -329,12 +454,15 @@ mailertable       Include a "mailer table" which can be used to override
                reflected into the message header.
 
 domaintable    Include a "domain table" which can be used to provide
                reflected into the message header.
 
 domaintable    Include a "domain table" which can be used to provide
-               full domains on unqualified (single word) hosts.  The
-               argument of the FEATURE may be the key definition.  If
-               none is specified, the definition used is:
+               domain name mapping.  Use of this should really be
+               limited to your own domains.  It may be useful if you
+               change names (e.g., your company changes names from
+               oldname.com to newname.com).  The argument of the
+               FEATURE may be the key definition.  If none is specified,
+               the definition used is:
                        hash -o /etc/domaintable
                        hash -o /etc/domaintable
-               The key in this table is the unqualified host name; the
-               value is the fully qualified domain.  Anything in the
+               The key in this table is the domain name; the value is
+               the new (fully qualified) domain.  Anything in the
                domaintable is reflected into headers; that is, this
                is done in ruleset 3.
 
                domaintable is reflected into headers; that is, this
                is done in ruleset 3.
 
@@ -388,6 +516,26 @@ nullclient This is a special case -- it creates a stripped down
                defaults to the name of the hub machine).  No mailers
                should be defined.  No aliasing or forwarding is done.
 
                defaults to the name of the hub machine).  No mailers
                should be defined.  No aliasing or forwarding is done.
 
+local_procmail Use procmail as the local mailer.  This mailer can
+               make use of the "user+indicator@local.host" syntax;
+               normally the +indicator is just tossed, but by default
+               it is passed as the -a argument to procmail.  The
+               argument to this feature is the pathname of procmail,
+               which defaults to /usr/local/bin/procmail.
+
+bestmx_is_local        Accept mail as though locally addressed for any host that
+               lists us as the best possible MX record.  This generates
+               additional DNS traffic, but should be OK for low to
+               medium traffic hosts.
+
+smrsh          Use the SendMail Restricted SHell (smrsh) provided
+               with the distribution instead of /bin/sh for mailing
+               to programs.  This improves the ability of the local
+               system administrator to control what gets run via
+               e-mail.  If an argument is provided it is used as the
+               pathname to smrsh; otherwise, /usr/local/etc/smrsh is
+               assumed.
+
 
 +-------+
 | HACKS |
 
 +-------+
 | HACKS |
@@ -406,10 +554,32 @@ subdomains.
 | SITE CONFIGURATION |
 +--------------------+
 
 | SITE CONFIGURATION |
 +--------------------+
 
+    *****************************************************
+    * This section is really obsolete, and is preserved        *
+    * only for back compatibility.  You should plan on *
+    * using mailertables for new installations.          In    *
+    * particular, it doesn't work for the newer forms  *
+    * of UUCP mailers, such as uucp-uudom.             *
+    *****************************************************
+
 Complex sites will need more local configuration information, such as
 lists of UUCP hosts they speak with directly.  This can get a bit more
 tricky.  For an example of a "complex" site, see cf/ucbvax.mc.
 
 Complex sites will need more local configuration information, such as
 lists of UUCP hosts they speak with directly.  This can get a bit more
 tricky.  For an example of a "complex" site, see cf/ucbvax.mc.
 
+If your host is known by several different names, you need to augment
+the $=w class.  This is a list of names by which you are known, and
+anything sent to an address using a host name in this list will be
+treated as local mail.  You can do this in two ways: either create
+the file /etc/sendmail.cw containing a list of your aliases (one per
+line), and use ``FEATURE(use_cw_file)'' in the .mc file, or add the
+line:
+
+       Cw alias.host.name
+
+at the end of that file.  See the ``vangogh.mc'' file for an example.
+Be sure you use the fully-qualified name of the host, rather than a
+short name.
+
 The SITECONFIG macro allows you to indirectly reference site-dependent
 configuration information stored in the siteconfig subdirectory.  For
 example, the line
 The SITECONFIG macro allows you to indirectly reference site-dependent
 configuration information stored in the siteconfig subdirectory.  For
 example, the line
@@ -418,18 +588,26 @@ example, the line
 
 reads the file uucp.ucbvax for local connection information.  The
 second parameter is the local name (in this case just "ucbvax" since
 
 reads the file uucp.ucbvax for local connection information.  The
 second parameter is the local name (in this case just "ucbvax" since
-it is locally connected, and hence a UUCP hostname) and the name of
-the class in which to store the host information.  Another SITECONFIG
-line reads
+it is locally connected, and hence a UUCP hostname).  The third
+parameter is the name of both a macro to store the local name (in
+this case, $U) and the name of the class (e.g., $=U) in which to store
+the host information read from the file.  Another SITECONFIG line reads
 
        SITECONFIG(uucp.ucbarpa, ucbarpa.Berkeley.EDU, W)
 
 This says that the file uucp.ucbarpa contains the list of UUCP sites
 connected to ucbarpa.Berkeley.EDU.  The $=W class will be used to
 
        SITECONFIG(uucp.ucbarpa, ucbarpa.Berkeley.EDU, W)
 
 This says that the file uucp.ucbarpa contains the list of UUCP sites
 connected to ucbarpa.Berkeley.EDU.  The $=W class will be used to
-store this list.  [The machine ucbarpa is gone now, but I've left
+store this list, and $W is defined to be ucbarpa.Berkeley.EDU, that
+is, the name of the relay to which the hosts listed in uucp.ucbarpa
+are connected.  [The machine ucbarpa is gone now, but I've left
 this out-of-date configuration file around to demonstrate how you
 might do this.]
 
 this out-of-date configuration file around to demonstrate how you
 might do this.]
 
+Note that the case of SITECONFIG with a third parameter of ``U'' is
+special; the second parameter is assumed to be the UUCP name of the
+local site, rather than the name of a remote site, and the UUCP name
+is entered into $=w (the list of local hostnames) as $U.UUCP.
+
 The siteconfig file (e.g., siteconfig/uucp.ucbvax.m4) contains nothing
 more than a sequence of SITE macros describing connectivity.  For
 example:
 The siteconfig file (e.g., siteconfig/uucp.ucbvax.m4) contains nothing
 more than a sequence of SITE macros describing connectivity.  For
 example:
@@ -483,7 +661,8 @@ The four mailers are:
 
     uucp-dom
        This UUCP mailer keeps everything as domain addresses.
 
     uucp-dom
        This UUCP mailer keeps everything as domain addresses.
-       Basically, it uses the SMTP mailer rewriting rules.
+       Basically, it uses the SMTP mailer rewriting rules.  This mailer
+       is only included if MAILER(smtp) is also specified.
 
        Unfortunately, a lot of UUCP mailer transport agents require
        bangified addresses in the envelope, although you can use
 
        Unfortunately, a lot of UUCP mailer transport agents require
        bangified addresses in the envelope, although you can use
@@ -497,7 +676,8 @@ The four mailers are:
        local hostname, unless there is no host name on the address
        at all (e.g., "wolf") or the host component is a UUCP host name
        instead of a domain name ("somehost!wolf" instead of
        local hostname, unless there is no host name on the address
        at all (e.g., "wolf") or the host component is a UUCP host name
        instead of a domain name ("somehost!wolf" instead of
-       "some.dom.ain!wolf").
+       "some.dom.ain!wolf").  This is also included only if MAILER(smtp)
+       is also specified.
 
 Examples:
 
 
 Examples:
 
@@ -547,7 +727,7 @@ will cause addresses of the form "decvax!user" and "research!user"
 to be converted to "user@decvax.dec.com" and "user@research.att.com"
 respectively.
 
 to be converted to "user@decvax.dec.com" and "user@research.att.com"
 respectively.
 
-This could also be used to look hosts in a database map:
+This could also be used to look up hosts in a database map:
 
        LOCAL_RULE_3
        R$* < @ $+ > $*         $: $1 < @ $(hostmap $2 $) > $3
 
        LOCAL_RULE_3
        R$* < @ $+ > $*         $: $1 < @ $(hostmap $2 $) > $3
@@ -559,7 +739,7 @@ For example, new rules are needed to parse hostnames that you accept
 via MX records.  For example, you might have:
 
        LOCAL_RULE_0
 via MX records.  For example, you might have:
 
        LOCAL_RULE_0
-       R$+ < @ cnmat.Berkeley.EDU >    $#uucp $@ cnmat $: $1
+       R$+ <@ host.dom.ain.>   $#uucp $@ cnmat $: $1 < @ host.dom.ain.>
 
 You would use this if you had installed an MX record for cnmat.Berkeley.EDU
 pointing at this host; this rule catches the message and forwards it on
 
 You would use this if you had installed an MX record for cnmat.Berkeley.EDU
 pointing at this host; this rule catches the message and forwards it on
@@ -585,9 +765,9 @@ You can have your host masquerade as another using
 
        MASQUERADE_AS(host.domain)
 
 
        MASQUERADE_AS(host.domain)
 
-This causes outgoing SMTP mail to be labelled as coming from the
+This causes outgoing SMTP mail to be labeled as coming from the
 indicated domain, rather than $j.  One normally masquerades as one
 indicated domain, rather than $j.  One normally masquerades as one
-of your own subdomains (for example, it's unlikely that I would
+of one's own subdomains (for example, it's unlikely that I would
 choose to masquerade as an MIT site).
 
 The masquerade name is not normally canonified, so it is important
 choose to masquerade as an MIT site).
 
 The masquerade name is not normally canonified, so it is important
@@ -628,21 +808,28 @@ shared /var/spool/mail scheme, use
        define(`MAIL_HUB', mailer:hostname)
 
 Again, ``mailer:'' defaults to "smtp".  If you define both LOCAL_RELAY
        define(`MAIL_HUB', mailer:hostname)
 
 Again, ``mailer:'' defaults to "smtp".  If you define both LOCAL_RELAY
-and MAIL_HUB, unqualified names and names in class L will be sent to
-the LOCAL_RELAY and other local names will be sent to MAIL_HUB.  For
-example, if are on machine mastodon.CS.Berkeley.EDU, the following
-combinations of settings will have the indicated effects:
+and MAIL_HUB _AND_ you have FEATURE(stickyhost), unqualified names will
+be sent to the LOCAL_RELAY and other local names will be sent to MAIL_HUB.
+Names in $=L will be delivered locally, so you MUST have aliases or
+.forward files for them.
+
+For example, if are on machine mastodon.CS.Berkeley.EDU and you have
+FEATURE(stickyhost), the following combinations of settings will have the
+indicated effects:
 
 email sent to....      eric                      eric@mastodon.CS.Berkeley.EDU
 
 LOCAL_RELAY set to     mail.CS.Berkeley.EDU      (delivered locally)
 
 email sent to....      eric                      eric@mastodon.CS.Berkeley.EDU
 
 LOCAL_RELAY set to     mail.CS.Berkeley.EDU      (delivered locally)
-mail.CS.Berkeley.EDU
+mail.CS.Berkeley.EDU     (no local aliasing)       (aliasing done)
 
 MAIL_HUB set to                mammoth.CS.Berkeley.EDU   mammoth.CS.Berkeley.EDU
 
 MAIL_HUB set to                mammoth.CS.Berkeley.EDU   mammoth.CS.Berkeley.EDU
-mammoth.CS.Berkeley.EDU
+mammoth.CS.Berkeley.EDU          (aliasing done)           (aliasing done)
 
 Both LOCAL_RELAY and   mail.CS.Berkeley.EDU      mammoth.CS.Berkeley.EDU
 
 Both LOCAL_RELAY and   mail.CS.Berkeley.EDU      mammoth.CS.Berkeley.EDU
-MAIL_HUB set as above
+MAIL_HUB set as above    (no local aliasing)       (aliasing done)
+
+If you do not have FEATURE(stickyhost) set, then LOCAL_RELAY and
+MAIL_HUB act identically, with MAIL_HUB taking precedence.
 
 If you want all outgoing mail to go to a central relay site, define
 SMART_HOST as well.  Briefly:
 
 If you want all outgoing mail to go to a central relay site, define
 SMART_HOST as well.  Briefly:
@@ -652,11 +839,11 @@ SMART_HOST as well.  Briefly:
                local host (e.g., "eric@mastodon.CS.Berkeley.EDU").
        SMART_HOST applies to names qualified with other hosts.
 
                local host (e.g., "eric@mastodon.CS.Berkeley.EDU").
        SMART_HOST applies to names qualified with other hosts.
 
-However, beware that other relays (e.g., UUCP_RELAY, BITNET_RELAY, and
-FAX_RELAY) take precedence over SMART_HOST, so if you really want
-absolutely everything to go to a single central site you will need to
-unset all the other relays -- or better yet, find or build a minimal
-config file that does this.
+However, beware that other relays (e.g., UUCP_RELAY, BITNET_RELAY,
+DECNET_RELAY, and FAX_RELAY) take precedence over SMART_HOST, so if you
+really want absolutely everything to go to a single central site you will
+need to unset all the other relays -- or better yet, find or build a
+minimal config file that does this.
 
 
 +-------------------------------+
 
 
 +-------------------------------+
@@ -757,6 +944,21 @@ the host name.  For example, the first line above sends everything
 addressed to "anything.my.domain" to that same host name, but using
 the (presumably experimental) xnet mailer.
 
 addressed to "anything.my.domain" to that same host name, but using
 the (presumably experimental) xnet mailer.
 
+In some cases you may want to temporarily turn off MX records,
+particularly on gateways.  For example, you may want to MX
+everything in a domain to one machine that then forwards it
+directly.  To do this, you might use the DNS configuration:
+
+       *.domain.       IN      MX      0       relay.machine
+
+and on relay.machine use the mailertable:
+
+       .domain         smtp:[gateway.domain]
+
+The [square brackets] turn off MX records for this host only.
+If you didn't do this, the mailertable would use the MX record
+again, which would give you an MX loop.
+
 
 +--------------------------------+
 | USING USERDB TO MAP FULL NAMES |
 
 +--------------------------------+
 | USING USERDB TO MAP FULL NAMES |
@@ -770,13 +972,82 @@ is fairly easy.)  The intent was to locate the default maildrop at
 a site, but allow you to override this by sending to a specific host.
 
 If you decide to set up the user database in this fashion, it is
 a site, but allow you to override this by sending to a specific host.
 
 If you decide to set up the user database in this fashion, it is
-imperative that you also specify FEATURE(notsticky) -- otherwise,
+imperative that you not use FEATURE(stickyhost) -- otherwise,
 e-mail sent to Full.Name@local.host.name will be rejected.
 
 e-mail sent to Full.Name@local.host.name will be rejected.
 
-To build the internal form of the user databae, use:
+To build the internal form of the user database, use:
 
        makemap btree /usr/data/base.db < /usr/data/base.txt
 
 
        makemap btree /usr/data/base.db < /usr/data/base.txt
 
+As a general rule, I am adamantly opposed to using full names as
+e-mail addresses, since they are not in any sense unique.  For example,
+the Unix software-development community has two Andy Tannenbaums,
+at least two well-known Peter Deutsches, and at one time Bell Labs
+had two Stephen R. Bournes with offices along the same hallway.
+Which one will be forced to suffer the indignity of being
+Stephen_R_Bourne_2?  The less famous of the two, or the one that
+was hired later?
+
+Finger should handle full names (and be fuzzy).  Mail should use
+handles, and not be fuzzy.  [Not that I expect anyone to pay any
+attention to my opinions.]
+
+
++--------------------------------+
+| MISCELLANEOUS SPECIAL FEATURES |
++--------------------------------+
+
+Plussed users
+       Sometimes it is convenient to merge configuration on a
+       centralized mail machine, for example, to forward all
+       root mail to a mail server.  In this case it might be
+       useful to be able to treat the root addresses as a class
+       of addresses with subtle differences.  You can do this
+       using plussed users.  For example, a client might include
+       the alias:
+
+               root:  root+client1@server
+
+       On the server, this will match an alias for "root+client1".
+       If that is not found, the alias "root+*" will be tried,
+       then "root".
+
+
++----------------+
+| SECURITY NOTES |
++----------------+
+
+A lot of sendmail security comes down to you.  Sendmail 8 is much
+more careful about checking for security problems than previous
+versions, but there are some things that you still need to watch
+for.  In particular:
+
+* Make sure the aliases file isn't writable except by trusted
+  system personnel.  This includes both the text and database
+  version.
+
+* Make sure that other files that sendmail reads, such as the
+  mailertable, is only writable by trusted system personnel.
+
+* The queue directory should not be world writable PARTICULARLY
+  if your system allows "file giveaways" (that is, if a non-root
+  user can chown any file they own to any other user).
+
+* If your system allows file giveaways, DO NOT create a publically
+  writable directory for forward files.  This will allow anyone
+  to steal anyone else's e-mail.  Instead, create a script that
+  copies the .forward file from users' home directories once a
+  night (if you want the non-NFS-mounted forward directory).
+
+* If your system allows file giveaways, you'll find that
+  sendmail is much less trusting of :include: files -- in
+  particular, you'll have to have /SENDMAIL/ANY/SHELL/ in
+  /etc/shells before they will be trusted (that is, before
+  files and programs listed in them will be honored).
+
+In general, file giveaways are a mistake -- if you can turn them
+off I recommend you do so.
+
 
 +------------------+
 | FlexFAX SOFTWARE |
 
 +------------------+
 | FlexFAX SOFTWARE |
@@ -927,115 +1198,180 @@ be ``double quoted, like this phrase'' to avoid having the comma
 confuse things.  This is common for alias file definitions and for
 the read timeout.
 
 confuse things.  This is common for alias file definitions and for
 the read timeout.
 
-M4 Variable Name       Default         Mac/Opt Description
-================       =======         ======= ===========
-confMAILER_NAME                MAILER-DAEMON   Dn      The sender name used for
-                                               internally generated
-                                               outgoing messages.
-confFROM_LINE          From $g  $d     Dl      The From_ line used when
-                                               sending to files or programs.
-confFROM_HEADER                $?x$x <$g>$|$g$.        The format of an internally
-                                       Dq      generated From: address.
-confOPERATORS          .:%@!^/[]       Do      Address operator characters.
-confSMTP_LOGIN_MSG     $j Sendmail $v/$Z ready at $b
-                                       De      The initial (spontaneous)
-                                               SMTP greeting message.
-confSEVEN_BIT_INPUT    False           O7      Force input to seven bits?
-confALIAS_WAIT         10              Oa      Wait (in minutes) for alias
-                                               file rebuild.
-confMIN_FREE_BLOCKS    4               Ob      Minimum number of free blocks
-                                               on queue filesystem to accept
-                                               SMTP mail.
-confBLANK_SUB          .               OB      Blank (space) substitution
-                                               character.
-confCON_EXPENSIVE      False           Oc      Avoid connecting immediately
-                                               to mailers marked expensive?
-confCHECKPOINT_INTERVAL        10              OC      Checkpoint queue files
-                                               every N recipients.
-confDELIVERY_MODE      background      Od      Default delivery mode.
-confAUTO_REBUILD       False           OD      Automatically rebuild
-                                               alias file if needed.
-confERROR_MODE         (undefined)     Oe      Error message mode.
-confERROR_MESSAGE      (undefined)     OE      Error message header/file.
-confSAVE_FROM_LINES    False           Of      Save extra leading
-                                               From_ lines.
-confTEMP_FILE_MODE     0600            OF      Temporary file mode.
-confDEF_GROUP_ID       1               Og      Default group id.
-confMATCH_GECOS                False           OG      Match GECOS field.
-confMAX_HOP            17              Oh      Maximum hop count.
-confIGNORE_DOTS                False           Oi *    Ignore dot as terminator
-                                               for incoming messages?
-confBIND_OPTS          (empty)         OI      Default options for BIND.
-confMIME_FORMAT_ERRORS True            Oj *    Send error messages as MIME-
-                                               encapsulated messages per
-                                               RFC 1344.
-confFORWARD_PATH       (undefined)     OJ      The colon-separated list of
-                                               places to search for .forward
-                                               files.
-confMCI_CACHE_SIZE     2               Ok      Size of open connection cache.
-confMCI_CACHE_TIMEOUT  5m              OK      Open connection cache timeout.
-confUSE_ERRORS_TO      False           Ol *    Use the Errors-To: header to
-                                               deliver error messages.  This
-                                               should not be necessary because
-                                               of general acceptance of the
-                                               envelope/header distinction.
-confLOG_LEVEL          9               OL      Log level.
-confME_TOO             False           Om      Include sender in group
-                                               expansions.
-confCHECK_ALIASES      True            On      Check RHS of aliases when
-                                               running newaliases.
-confOLD_STYLE_HEADERS  True            Oo *    Assume that headers without
-                                               special chars are old style.
-confDAEMON_OPTIONS     (undefined)     OO      SMTP daemon options.
-confPRIVACY_FLAGS      authwarnings    Op      Privacy flags.
-confCOPY_ERRORS_TO     (undefined)     OP      Address for additional copies
-                                               of all error messages.
-confQUEUE_FACTOR       (undefined)     Oq      Slope of queue-only function
-confREAD_TIMEOUT       (undefined)     Or      SMTP read timeouts.
-confSAFE_QUEUE         True            Os *    Commit all messages to disk
-                                               before forking.
-confMESSAGE_TIMEOUT    5d/4h           OT      Timeout for messages before
-                                               sending error/warning message.
-confTIME_ZONE          USE_SYSTEM      Ot      Time zone info -- can be
-                                               USE_SYSTEM to use the system's
-                                               idea, USE_TZ to use the user's
-                                               TZ envariable, or something
-                                               else to force that value.
-confDEF_USER_ID                1               Ou      Default user id.
-confUSERDB_SPEC                (undefined)     OU      User database specification.
-confFALLBACK_MX                (undefined)     OV      Fallback MX host.
-confTRY_NULL_MX_LIST   False           Ow      If we are the best MX for a
-                                               host and haven't made other
-                                               arrangements, try connecting
-                                               to the host directly; normally
-                                               this would be a config error.
-confQUEUE_LA           8               Ox      Load average at which queue-only
-                                               function kicks in.
-confREFUSE_LA          12              OX      Load average at which incoming
-                                               SMTP connections are refused.
+M4 Variable Name       Configuration   Description & [Default]
+================       =============   =======================
+confMAILER_NAME                $n macro        [MAILER-DAEMON] The sender name used
+                                       for internally generated outgoing
+                                       messages.
+confFROM_LINE          $l macro        [From $g  $d] The From_ line used
+                                       when sending to files or programs.
+confFROM_HEADER                $q macro        [$?x$x <$g>$|$g$.] The format of an 
+                                       internally generated From: address.
+confOPERATORS          $o macro        [.:%@!^/[]+] Address operator
+                                       characters.
+confSMTP_LOGIN_MSG     $e macro        [$j Sendmail $v/$Z; $b]
+                                       The initial (spontaneous) SMTP
+                                       greeting message.  The word "ESMTP"
+                                       will be inserted between the first and
+                                       second words to convince other
+                                       sendmails to try to speak ESMTP.
+confDOMAIN_NAME                $j macro        If defined, sets $j.  This should
+                                       only be done if your system cannot
+                                       determine your local domain name,
+                                       and then it should be set to
+                                       $w.Foo.COM, where Foo.COM is your
+                                       domain name.
+confRECEIVED_HEADER    Received:
+      [.$?_($?s$|from $.$_) $.by $j ($v/$Z)$?r with $r$. id $i$?u for $u$.; $b]
+                                       The format of the Received: header
+                                       in messages passed through this host.
+                                       It is unwise to try to change this.
+confCW_FILE            Fw class        [/etc/sendmail.cw] Name of file used
+                                       to get the local additions to the $=w
+                                       class.
+confSMTP_MAILER                -               [smtp] The mailer name used when
+                                       SMTP connectivity is required.
+                                       One of "smtp", "smtp8", or "esmtp".
+confLOCAL_MAILER       -               [local] The mailer name used when
+                                       local connectivity is required.
+                                       Almost always "local".
+confRELAY_MAILER       -               [relay] The default mailer name used
+                                       for relaying any mail (e.g., to a
+                                       BITNET_RELAY, a SMART_HOST, or
+                                       whatever).  This can reasonably be
+                                       "uucp-new" if you are on a
+                                       UUCP-connected site.
+confSEVEN_BIT_INPUT    SevenBitInput   [False] Force input to seven bits?
+confEIGHT_BIT_HANDLING EightBitMode    [pass8] 8-bit data handling
+confALIAS_WAIT         AliasWait       [10m] Time to wait for alias file
+                                       rebuild until you get bored and
+                                       decide that the apparently pending
+                                       rebuild failed.
+confMIN_FREE_BLOCKS    MinFreeBlocks   [100] Minimum number of free blocks on
+                                       queue filesystem to accept SMTP mail.
+                                       (Prior to 8.7 this was minfree/maxsize,
+                                       where minfree was the number of free
+                                       blocks and maxsize was the maximum
+                                       message size.  Use confMAX_MESSAGE_SIZE
+                                       for the second value now.)
+confMAX_MESSAGE_SIZE   MaxMessageSize  The maximum size of messages that will
+                                       be accepted (in bytes).
+confBLANK_SUB          BlankSub        [.] Blank (space) substitution
+                                       character.
+confCON_EXPENSIVE      HoldExpensive   [False] Avoid connecting immediately
+                                       to mailers marked expensive?
+confCHECKPOINT_INTERVAL        CheckpointInterval
+                                       Checkpoint queue files every N
+                                       recipients.
+confDELIVERY_MODE      DeliveryMode    [background] Default delivery mode.
+confAUTO_REBUILD       AutoRebuildAliases
+                                       Automatically rebuild alias
+                                       file if needed.
+confERROR_MODE         ErrorMode       Error message mode.
+confERROR_MESSAGE      ErrorHeader     Error message header/file.
+confSAVE_FROM_LINES    SafeFromLine    Save extra leading From_ lines.
+confTEMP_FILE_MODE     TempFileMode    [0600] Temporary file mode.
+confMATCH_GECOS                MatchGECOS      Match GECOS field.
+confMAX_HOP            MaxHopCount     Maximum hop count.
+confIGNORE_DOTS*       IgnoreDots      Ignore dot as terminator for incoming
+                                       messages?
+confBIND_OPTS          ResolverOptions Default options for DNS resolver.
+confMIME_FORMAT_ERRORS*        SendMimeErrors  [True] Send error messages as MIME-
+                                       encapsulated messages per RFC 1344.
+confFORWARD_PATH       ForwardPath     [$z/.forward.$w:$z/.forward]
+                                       The colon-separated list of places to
+                                       search for .forward files.  N.B.: see
+                                       the Security Notes section.
+confMCI_CACHE_SIZE     ConnectionCacheSize
+                                       [2] Size of open connection cache.
+confMCI_CACHE_TIMEOUT  ConnectionCacheTimeout
+                                       [5m] Open connection cache timeout.
+confUSE_ERRORS_TO*     UserErrorsTo    [False] Use the Errors-To: header to deliver
+                                       error messages.  This should not be
+                                       necessary because of general acceptance
+                                       of the envelope/header distinction.
+confLOG_LEVEL          LogLevel        [9] Log level.
+confME_TOO             MeToo           Include sender in group expansions.
+confCHECK_ALIASES      CheckAliases    [True] Check RHS of aliases when
+                                       running newaliases.
+confOLD_STYLE_HEADERS* OldStyleHeaders [True] Assume that headers without
+                                       special chars are old style.
+confDAEMON_OPTIONS     DaemonPortOptions
+                                       SMTP daemon options.
+confPRIVACY_FLAGS      PrivacyOptions  [authwarnings] Privacy flags.
+confCOPY_ERRORS_TO     PostmasterCopy  Address for additional copies of all
+                                       error messages.
+confQUEUE_FACTOR       QueueFactor     Slope of queue-only function.
+confDONT_PRUNE_ROUTES  DontPruneRoutes Don't prune down route-addr syntax
+                                       addresses to the minimum possible.
+confSAFE_QUEUE*                SuperSafe       [True] Commit all messages to disk
+                                       before forking.
+confTIME_ZONE          TimeZoneSpec    [USE_SYSTEM] Time zone info -- can be
+                                       USE_SYSTEM to use the system's idea,
+                                       USE_TZ to use the user's TZ envariable,
+                                       or something else to force that value.
+confDEF_USER_ID                DefaultUser     [1:1] Default user id.
+confUSERDB_SPEC                UserDatabaseSpec
+                                       User database specification.
+confFALLBACK_MX                FallbackMXhost  Fallback MX host.
+confTRY_NULL_MX_LIST   TryNullMXList   If we are the best MX for a host and
+                                       haven't made other arrangements, try
+                                       connecting to the host directly;
+                                       normally this would be a config error.
+confQUEUE_LA           QueueLA         Load average at which queue-only
+                                       function kicks in.
+confREFUSE_LA          RefuseLA        Load average at which incoming
+                                       SMTP connections are refused.
 confWORK_RECIPIENT_FACTOR
 confWORK_RECIPIENT_FACTOR
-                       (undefined)     Oy      Cost of each recipient.
-confSEPARATE_PROC      False           OY      Run all deliveries in a
-                                               separate process.
-confWORK_CLASS_FACTOR  (undefined)     Oz      Priority multiplier for class.
-confWORK_TIME_FACTOR   (undefined)     OZ      Cost of each delivery attempt.
-confCW_FILE            /etc/sendmail.cw        Name of file used to get the
-                                       Fw      local additions to the $=w
-                                               class.
-confSMTP_MAILER                smtp            -       The mailer name used when
-                                               SMTP connectivity is required.
-                                               Either "smtp" or "esmtp".
-confLOCAL_MAILER       local           -       The mailer name used when
-                                               local connectivity is required.
-                                               Almost always "local".
-confRELAY_MAILER       relay           -       The default mailer name used
-                                               for relaying any mail (e.g.,
-                                               to a BITNET_RELAY, a
-                                               SMART_HOST, or whatever).
-                                               This can reasonably be "suucp"
-                                               if you are on a UUCP-connected
-                                               site.
-confDOMAIN_NAME                (undefined)     Dj      If defined, sets $j.
+                       RecipientFactor Cost of each recipient.
+confSEPARATE_PROC      ForkEachJob     Run all deliveries in a separate
+                                       process.
+confWORK_CLASS_FACTOR  ClassFactor     Priority multiplier for class.
+confWORK_TIME_FACTOR   RetryFactor     Cost of each delivery attempt.
+confQUEUE_SORT_ORDER   QueueSortOrder  Queue sort algorithm: Priority or Host.
+confMIN_QUEUE_AGE      MinQueueAge     The minimum amount of time a job
+                                       must sit in the queue between queue
+                                       runs.  This allows you to set the
+                                       queue run interval low for better
+                                       resposiveness without trying all
+                                       jobs in each run.
+confDEF_CHAR_SET       DefaultCharSet  When converting unlabelled 8 bit
+                                       input to MIME, the character set to
+                                       use by default.
+confSERVICE_SWITCH_FILE        ServiceSwitchFile
+                                       The file to use for the service switch
+                                       on systems that do not have a system-
+                                       defined switch.
+confDIAL_DELAY         DialDelay       If a connection fails, wait this long
+                                       and try again.  This is to allow
+                                       "dial on demand" connections to have
+                                       enough time to complete a connection.
+confNO_RCPT_ACTION     NoRecipientAction
+                                       What to do if there are no legal
+                                       recipient fields (To:, Cc: or Bcc:)
+                                       in the message.  Legal values can
+                                       be "none" to just leave the
+                                       nonconforming message as is, "add-to"
+                                       to add a To: header with all the
+                                       known recipients (which may expose
+                                       blind recipients), "add-apparently-to"
+                                       to do the same but use Apparently-To:
+                                       instead of To:, "add-bcc" to add an
+                                       empty Bcc: header, or
+                                       "add-to-undisclosed" to add the header
+                                       ``To: undisclosed-recipients:;''.
+                                       Default is "none".
+confSAFE_FILE_ENV      SafeFileEnvironment
+                                       If set, sendmail will do a chroot()
+                                       into this directory before writing
+                                       files.
+confCOLON_OK_IN_ADDR   ColonOkInAddr   If set, colons are treated as a regular
+                                       character in addresses.  If not set,
+                                       they are treated as the introducer to
+                                       the RFC 822 "group" syntax.  Colons are
+                                       handled properly in route-addrs.  This
+                                       option defaults on for V5 and lower
+                                       configuration files.
 
 
 +-----------+
 
 
 +-----------+
@@ -1061,12 +1397,8 @@ ostype           Definitions describing a particular operating
 
 domain         Definitions describing a particular domain, referenced
                using the DOMAIN macro in the .mc file.  These are
 
 domain         Definitions describing a particular domain, referenced
                using the DOMAIN macro in the .mc file.  These are
-               site dependent; for example, we contribute "cs.exposed.m4"
-               and "cs.hidden.m4" which both describe hosts in the
-               CS.Berkeley.EDU subdomain; the former displays the local
-               hostname (e.g., mammoth.CS.Berkeley.EDU), whereas the
-               latter does its best to hide the identity of the local
-               workstation inside the CS subdomain.
+               site dependent; for example, "CS.Berkeley.EDU.m4"
+               describes hosts in the CS.Berkeley.EDU subdomain.
 
 mailer         Descriptions of mailers.   These are referenced using
                the MAILER macro in the .mc file.
 
 mailer         Descriptions of mailers.   These are referenced using
                the MAILER macro in the .mc file.
@@ -1081,7 +1413,7 @@ feature           These hold special orthogonal features that you might
 hack           Local hacks.  These can be referenced using the HACK
                macro.  They shouldn't be of more than voyeuristic
                interest outside the .Berkeley.EDU domain, but who knows?
 hack           Local hacks.  These can be referenced using the HACK
                macro.  They shouldn't be of more than voyeuristic
                interest outside the .Berkeley.EDU domain, but who knows?
-               We've all got our own peccadilloes.
+               We've all got our own peccadillos.
 
 siteconfig     Site configuration -- e.g., tables of locally connected
                UUCP sites.
 
 siteconfig     Site configuration -- e.g., tables of locally connected
                UUCP sites.
@@ -1125,13 +1457,14 @@ MAILERS
    2   uucp-*          UNIX-to-UNIX Copy Program
    3   netnews         Network News delivery
    4   fax             Sam Leffler's FlexFAX software
    2   uucp-*          UNIX-to-UNIX Copy Program
    3   netnews         Network News delivery
    4   fax             Sam Leffler's FlexFAX software
+   5   mail11          DECnet mailer
 
 
 MACROS
 
    A
    B   Bitnet Relay
 
 
 MACROS
 
    A
    B   Bitnet Relay
-   C
+   C   DECnet Relay
    D   The local domain -- usually not needed
    E
    F   FAX Relay
    D   The local domain -- usually not needed
    E
    F   FAX Relay
@@ -1140,7 +1473,7 @@ MACROS
    I
    J
    K
    I
    J
    K
-   L
+   L   Luser Relay
    M   Masquerade (who I claim to be)
    N
    O
    M   Masquerade (who I claim to be)
    N
    O
@@ -1174,7 +1507,7 @@ CLASSES
    M
    N
    O   operators that indicate network operations (cannot be in local names)
    M
    N
    O   operators that indicate network operations (cannot be in local names)
-   P   top level pseudo-domains: BITNET, FAX, UUCP, etc.
+   P   top level pseudo-domains: BITNET, DECNET, FAX, UUCP, etc.
    Q
    R
    S
    Q
    R
    S
@@ -1197,5 +1530,5 @@ M4 DIVERSIONS
    5   locally interpreted names (overrides $R)
    6   local configuration (at top of file)
    7   mailer definitions
    5   locally interpreted names (overrides $R)
    6   local configuration (at top of file)
    7   mailer definitions
-   8   special local name recognition (late in ruleset 3)
+   8
    9   special local rulesets (1 and 2)
    9   special local rulesets (1 and 2)