151220Seric 251220Seric 357246Seric NEW SENDMAIL CONFIGURATION FILES 451220Seric 557246Seric Eric Allman <eric@CS.Berkeley.EDU> 651220Seric 7*65218Seric @(#)README 8.19 (Berkeley) 12/27/93 851220Seric 951220Seric 1057246SericThis document describes the sendmail configuration files being used 1163857Sericat Berkeley. These use features in the new (R8) sendmail, and although 1257246Sericthere is an ``OLDSENDMAIL'' mode, they haven't really been tested on 1357247Sericold versions of sendmail and cannot be expected to work well. 1451220Seric 1557246SericThese configuration files are probably not as general as previous 1657246Sericversions, and don't handle as many of the wierd cases automagically. 1757246SericI was able to simplify by them for two reasons. First, the network 1857246Serichas become more consistent -- for example, at this point, everyone 1957246Sericon the internet is supposed to be running a name server, so hacks to 2057246Serichandle NIC-registered hosts can go away. Second, I assumed that a 2157246Sericsubdomain would be running SMTP internally -- UUCP is presumed to be 2257246Serica long-haul protocol. I realize that this is not universal, but it 2357246Sericdoes describe the vast majority of sites with which I am familiar, 2457246Sericincluding those outside the US. 2551220Seric 2657246SericOf course, the downside of this is that if you do live in a wierd 2757246Sericworld, things are going to get wierder for you. I'm sorry about that, 2857246Sericbut at the time we at Berkeley had a problem, and it seemed like the 2957246Sericright thing to do. 3051220Seric 3157247SericThis package requires a post-V7 version of m4; if you are running the 3257247Seric4.2bsd, SysV.2, or 7th Edition version, I suggest finding a friend with 3357247Serica newer version. You can m4-expand on their system, then run locally. 3465002SericSunOS's /usr/5bin/m4 or BSD-Net/2's m4 both work. GNU m4 version 1.1 3565002Sericalso works. Unfortunately, I'm told that the M4 on BSDI 1.0 doesn't 3665002Sericwork -- you'll have to use a Net/2 or GNU version. 3751220Seric 3858284SericIF YOU DON'T HAVE A BERKELEY MAKE, don't despair! Just run 3964371Seric"m4 foo.mc > foo.cf" -- that should be all you need. There is also 4064371Serica fairly crude (but functional) Makefile.dist that works on the 4164371Sericold version of make. 4258284Seric 4358284SericTo get started, you may want to look at tcpproto.mc (for TCP-only 4464324Sericsites), uucpproto.mc (for UUCP-only sites), and clientproto.mc (for 4564324Sericclusters of clients using a single mail host). Others are versions 4658284Sericthat we use at Berkeley, although not all are in current use. For 4758284Sericexample, ucbarpa has gone away, but I've left ucbarpa.mc in because 4858284Sericit demonstrates some interesting techniques. 4958284Seric 5057246SericI'm not pretending that this README describes everything that these 5157246Sericconfiguration files can do; clever people can probably tweak them 5257246Sericto great effect. But it should get you started. 5357246Seric 5458087Seric 5557246Seric+--------------------------+ 5657246Seric| INTRODUCTION AND EXAMPLE | 5757246Seric+--------------------------+ 5857246Seric 5957246SericConfiguration files are contained in the subdirectory "cf", with a 6057246Sericsuffix ".mc". They must be run through "m4" to produce a ".cf" file. 6157246Seric 6251220SericLet's examine a typical .mc file (cf/cs-exposed.mc): 6351220Seric 6451220Seric divert(-1) 6551220Seric # 6651220Seric # Copyright (c) 1983 Eric P. Allman 6751220Seric # Copyright (c) 1988 The Regents of the University of California. 6851220Seric # All rights reserved. 6951220Seric # 7051220Seric # Redistribution and use in source and binary forms are permitted 7151220Seric # provided that the above copyright notice and this paragraph are 7251220Seric # duplicated in all such forms and that any documentation, 7351220Seric # advertising materials, and other materials related to such 7451220Seric # distribution and use acknowledge that the software was developed 7551220Seric # by the University of California, Berkeley. The name of the 7651220Seric # University may not be used to endorse or promote products derived 7751220Seric # from this software without specific prior written permission. 7851220Seric # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 7951220Seric # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 8051220Seric # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 8151220Seric # 8251220Seric 8357246SericThe divert(-1) will delete the crud in the resulting output file. 8457247SericThe copyright notice is what your lawyers require. Our lawyers require 8557246Sericthe one that I've included in my files. A copyleft is a copyright by 8657246Sericanother name. 8751220Seric 8857246SericThe next line MUST be 8957246Seric 9051220Seric include(`../m4/cf.m4') 9151220Seric 9257246SericThis will pull in the M4 macros you will need to make sense of 9357246Sericeverything else. As the saying goes, don't think about it, just 9457246Sericdo it. If you don't do it, don't bother reading the rest of this 9557246Sericfile. 9651220Seric 9756778Seric VERSIONID(`<SCCS or RCS version id>') 9851220Seric 9951220SericVERSIONID is a macro that stuffs the version information into the 10051220Sericresulting file. We use SCCS; you could use RCS, something else, or 10157246Sericomit it completely. This is not the same as the version id included 10257246Sericin SMTP greeting messages -- this is defined in m4/version.m4. 10351220Seric 10451268Seric DOMAIN(cs.exposed) 10551220Seric 10651220SericThis example exposes the host inside of the CS subdomain -- that is, 10751220Sericit doesn't try to hide the name of the workstation to the outside 10851220Sericworld. Changing this to DOMAIN(cs.hidden) would have made outgoing 10951220Sericmessages refer to "<username>@CS.Berkeley.EDU" instead of using the 11063857Sericlocal hostname. Internally this is effected by using 11157246Seric"MASQUERADE_AS(CS.Berkeley.EDU)". 11251220Seric 11351268Seric MAILER(smtp) 11451220Seric 11551309SericThese describe the mailers used at the default CS site site. The 11651309Sericlocal mailer is always included automatically. 11751220Seric 11858087Seric 11957246Seric+--------+ 12057246Seric| OSTYPE | 12157246Seric+--------+ 12257246Seric 12351220SericNote that cf/cs-exposed.mc omits an OSTYPE macro -- this assumes 12451220Sericdefault Computer Science Division environment. There are several 12557247Sericexplicit environments available: bsd4.3, bsd4.4, hpux, irix, osf1, 12657247Sericriscos4.5, sunos3.5, sunos4.1, and ultrix4.1. These change things 12757247Sericlike the location of the alias file and queue directory. Some of 12857247Sericthese files are identical to one another. 12951220Seric 13057246SericOperating system definitions are easy to write. They may define 13157246Sericthe following variables (everything defaults, so an ostype file 13257246Sericmay be empty). 13351220Seric 13457246SericALIAS_FILE [/etc/aliases] The location of the text version 13559761Seric of the alias file(s). It can be a comma-separated 13659761Seric list of names. 13757246SericHELP_FILE [/usr/lib/sendmail.hf] The name of the file 13857246Seric containing information printed in response to 13957246Seric the SMTP HELP command. 14057246SericQUEUE_DIR [/var/spool/mqueue] The directory containing 14157246Seric queue files. 14257246SericSTATUS_FILE [/etc/sendmail.st] The file containing status 14357246Seric information. 14458087SericLOCAL_MAILER_PATH [/bin/mail] The program used to deliver local mail. 14564153SericLOCAL_MAILER_FLAGS [rmn] The flags used by the local mailer. The 14664153Seric flags lsDFM are always included. 14763761SericLOCAL_MAILER_ARGS [mail -d $u] The arguments passed to deliver local 14863761Seric mail. 14958087SericLOCAL_SHELL_PATH [/bin/sh] The shell used to deliver piped email. 15063791SericLOCAL_SHELL_FLAGS [eu] The flags used by the shell mailer. The 15163791Seric flags lsDFM are always included. 15263791SericLOCAL_SHELL_ARGS [sh -c $u] The arguments passed to deliver "prog" 15363791Seric mail. 15458087SericUSENET_MAILER_PATH [/usr/lib/news/inews] The name of the program 15558087Seric used to submit news. 15658087SericUSENET_MAILER_FLAGS [rlsDFMmn] The mailer flags for the usenet mailer. 15758087SericUSENET_MAILER_ARGS [-m -h -n] The command line arguments for the 15858087Seric usenet mailer. 15963857SericSMTP_MAILER_FLAGS [undefined] Flags added to SMTP mailer. Default 16063857Seric flags are `mDFMUX' (and `a' for esmtp mailer). 16163857SericUUCP_MAILER_FLAGS [undefined] Flags added to UUCP mailer. Default 16263857Seric flags are `DFMhuU' (and `m' for suucp mailer, minus 16363857Seric `U' for uucp-dom mailer). 16463761SericUUCP_MAILER_ARGS [uux - -r -z -a$f -gC $h!rmail ($u)] The arguments 16563761Seric passed to the UUCP mailer. 16663791SericUUCP_MAX_SIZE [100000] The maximum size message accepted for 16763791Seric transmission by the UUCP mailers. 16857246SericHOSTMAP_SPEC [dbm -o /etc/hostmap] The value for the builtin 16957246Seric hostmap key definition. You can redefine this 17057246Seric to change the class, flags, and filename of 17157246Seric the hostmap. The default flag (-o) makes this 17257246Seric map optional. 17357246Seric 17457246Seric+---------+ 17557246Seric| DOMAINS | 17657246Seric+---------+ 17757246Seric 17857246SericYou will probably want to collect domain-dependent defines into one 17957246Sericfile, referenced by the DOMAIN macro. For example, our Berkeley 18057246Sericdomain file includes definitions for several internal distinguished 18157246Serichosts: 18257246Seric 18357246SericUUCP_RELAY The host that will forward UUCP-addressed email. 18457246Seric If not defined, all UUCP sites must be directly 18564028Seric connected. 18657246SericBITNET_RELAY The host that will forward BITNET-addressed email. 18757246Seric If not defined, the .BITNET pseudo-domain won't work. 18857246SericLOCAL_RELAY The site that will handle unqualified names -- that 18957246Seric is, names with out an @domain extension. If not set, 19057246Seric they are assumed to belong on this machine. This 19157246Seric allows you to have a central site to store a 19257246Seric company- or department-wide alias database. This 19357246Seric only works at small sites, and there are better 19464028Seric methods. 19557246Seric 19664028SericEach of these can be either ``mailer:hostname'' (in which case the 19764028Sericmailer is the internal mailer name, such as ``suucp'' and the hostname 19864028Sericis the name of the host as appropriate for that mailer) or just a 19964028Seric``hostname'', in which case a default mailer type (usually ``relay'', 20064153Serica variant on SMTP) is used. WARNING: if you have a wildcard MX 20164153Sericrecord matching your domain, you probably want to define these to 20264153Serichave a trailing dot so that you won't get the mail diverted back 20364153Sericto yourself. 20464028Seric 20557246SericThe domain file can also be used to define a domain name, if needed 20657982Seric(using "DD<domain>") and set certain site-wide features. If all hosts 20757982Sericat your site masquerade behind one email name, you could also use 20857982SericMASQUERADE_AS here. 20957246Seric 21058408SericYou do not have to define a domain -- in particular, if you are a 21158408Sericsingle machine sitting off somewhere, it is probably more work than 21258408Sericit's worth. This is just a mechanism for combining "domain dependent 21358408Sericknowledge" into one place. 21458408Seric 21557246Seric+---------+ 21657246Seric| MAILERS | 21757246Seric+---------+ 21857246Seric 21951220SericThere are fewer mailers supported in this version than the previous 22051220Sericversion, owing mostly to a simpler world. 22151220Seric 22251220Sericlocal The local and prog mailers. You will almost always 22351220Seric need these; the only exception is if you relay ALL 22457247Seric your mail to another site. This mailer is included 22557247Seric automatically. 22651220Seric 22751220Sericsmtp The Simple Mail Transport Protocol mailer. This does 22851220Seric not hide hosts behind a gateway or another other 22951220Seric such hack; it assumes a world where everyone is 23063761Seric running the name server. This file actually defines 23163761Seric three mailers: "smtp" for regular (old-style) SMTP to 23263761Seric other servers, "esmtp" for extended SMTP to other 23363761Seric servers, and "relay" for transmission to our 23463761Seric RELAY_HOST or MAILER_HUB. 23551220Seric 23651220Sericuucp The Unix-to-Unix Copy Program mailer. Actually, this 23751220Seric defines two mailers, "uucp" and "suucp". The latter 23851220Seric is for when you know that the UUCP mailer at the other 23951220Seric end can handle multiple recipients in one transfer. 24057246Seric When you invoke this, sendmail looks for all names in 241*65218Seric the $=U class and sends them to the uucp-old mailer; all 242*65218Seric names in the $=Y class are sent to uucp-new; and all 243*65218Seric names in the $=Z class are sent to uucp-uudom. Note that 24457246Seric this is a function of what version of rmail runs on 24557246Seric the receiving end, and hence may be out of your control. 246*65218Seric If smtp is defined, it also defines "uucp-dom" and 247*65218Seric "uucp-uudom" mailers that use domain-style rewriting. 248*65218Seric See the section below describing UUCP mailers in more 249*65218Seric detail. 25051220Seric 25158087Sericusenet Usenet (network news) delivery. If this is specified, 25258087Seric an extra rule is added to ruleset 0 that forwards all 25358087Seric local email for users named ``group.usenet'' to the 25458087Seric ``inews'' program. Note that this works for all groups, 25558087Seric and may be considered a security problem. 25658087Seric 25758363Sericfax Facsimile transmission. This is experimental and based 25858363Seric on Sam Leffler's FlexFAX software. For more information, 25958363Seric see below. 26058087Seric 26165148Sericpop Post Office Protocol. 26258363Seric 26365148Seric 26457246Seric+----------+ 26557246Seric| FEATURES | 26657246Seric+----------+ 26751268Seric 26857246SericSpecial features can be requested using the "FEATURE" macro. For 26957246Sericexample, the .mc line: 27057246Seric 27157246Seric FEATURE(use_cw_file) 27257246Seric 27357246Serictells sendmail that you want to have it read an /etc/sendmail.cw 27458782Sericfile to get values for class $=w. The FEATURE may contain a single 27558782Sericoptional parameter -- for example: 27657246Seric 27758782Seric FEATURE(mailertable, dbm /usr/lib/mailertable) 27858782Seric 27958782SericAvailable features are: 28058782Seric 28157246Sericuse_cw_file Read the file /etc/sendmail.cw file to get alternate 28257246Seric names for this host. This might be used if you were 28357246Seric on a host that MXed for a dynamic set of other 28457246Seric hosts. If the set is static, just including the line 28557246Seric "Cw<name1> <name2> ..." is probably superior. 28658408Seric The actual filename can be overridden by redefining 28758408Seric confCW_FILE. 28864324Seric 28958087Sericredirect Reject all mail addressed to "address.REDIRECT" with 29058087Seric a ``551 User not local; please try <address>'' message. 29158087Seric If this is set, you can alias people who have left 29258087Seric to their new address with ".REDIRECT" appended. 29364324Seric 29458284Sericnouucp Don't do anything special with UUCP addresses at all. 29564324Seric 29659080Sericnocanonify Don't pass addresses to $[ ... $] for canonification. 29759080Seric This would generally only be used by sites that only 29859080Seric act as mail gateways or which have user agents that do 29964028Seric full canonification themselves. You may also want to 30064028Seric use "define(`confBIND_OPTS',`-DNSRCH -DEFNAMES')" to 30164028Seric turn off the usual resolver options that do a similar 30264028Seric thing. 30364324Seric 30458526Sericnotsticky By default, email sent to "user@local.host" are marked 30558526Seric as "sticky" -- that is, the local addresses aren't 30658526Seric matched against UDB and don't go through ruleset 5. 30758526Seric This features disables this treatment. It would 30858526Seric normally be used on network gateway machines. 30964324Seric 31058782Sericmailertable Include a "mailer table" which can be used to override 31158782Seric routing for particular domains. The argument of the 31258782Seric FEATURE may be the key definition. If none is specified, 31358782Seric the definition used is: 31464164Seric hash -o /etc/mailertable 31563761Seric Keys in this database are fully qualified domain names 31663761Seric or partial domains preceded by a dot -- for example, 31763761Seric "vangogh.CS.Berkeley.EDU" or ".CS.Berkeley.EDU". 31863761Seric Values must be of the form: 31958782Seric mailer:domain 32063761Seric where "mailer" is the internal mailer name, and "domain" 32163761Seric is where to send the message. These maps are not 32263761Seric reflected into the message header. 32364324Seric 32463761Sericdomaintable Include a "domain table" which can be used to provide 32563761Seric full domains on unqualified (single word) hosts. The 32663761Seric argument of the FEATURE may be the key definition. If 32763761Seric none is specified, the definition used is: 32864164Seric hash -o /etc/domaintable 32963761Seric The key in this table is the unqualified host name; the 33063761Seric value is the fully qualified domain. Anything in the 33163761Seric domaintable is reflected into headers; that is, this 33263761Seric is done in ruleset 3. 33364324Seric 33459034Sericbitdomain Look up bitnet hosts in a table to try to turn them into 33559034Seric internet addresses. The table can be built using the 33664153Seric bitdomain program contributed by John Gardiner Myers. 33759034Seric The argument of the FEATURE may be the key definition; if 33859034Seric none is specified, the definition used is: 33964164Seric hash -o /etc/bitdomain.db 34059034Seric Keys are the bitnet hostname; values are the corresponding 34159034Seric internet hostname. 34264324Seric 34359037Sericuucpdomain Similar feature for UUCP hosts. The default map definition 34459037Seric is: 34564164Seric hash -o /etc/uudomain.db 34659037Seric At the moment there is no automagic tool to build this 34759037Seric database. 34864324Seric 34960263Sericalways_add_domain 35060263Seric Include the local host domain even on locally delivered 35160263Seric mail. Normally it is not added unless it is already 35260263Seric present. 35364324Seric 35463761Sericallmasquerade If masquerading is enabled (using MASQUERADE_AS), this 35563761Seric feature will cause recipient addresses to also masquerade 35663761Seric as being from the masquerade host. Normally they get 35763761Seric the local hostname. Although this may be right for 35863761Seric ordinary users, it can break local aliases. For example, 35963761Seric if you send to "localalias", the originating sendmail will 36063761Seric find that alias and send to all members, but send the 36163761Seric message with "To: localalias@masqueradehost". Since that 36263761Seric alias likely does not exist, replies will fail. Use this 36363761Seric feature ONLY if you can guarantee that the ENTIRE 36463761Seric namespace on your masquerade host supersets all the 36563761Seric local entries. 36664324Seric 36764153Sericnodns We aren't running DNS at our site (for example, 36864153Seric we are UUCP-only connected). It's hard to consider 36964153Seric this a "feature", but hey, it had to go somewhere. 37057246Seric 37164324Sericnullclient This is a special case -- it creates a stripped down 37264324Seric configuration file containing nothing but support for 37364394Seric forwarding all mail to a central hub via a local 37464394Seric SMTP-based network. The argument is the name of that 37564394Seric hub. 37664394Seric 37764394Seric The only other feature that should be used in conjunction 37864394Seric with this one is "nocanonify" (this causes addresses to 37964394Seric be sent unqualified via the SMTP connection; normally 38064394Seric they are qualifed with the masquerade name, which 38164394Seric defaults to the name of the hub machine). No mailers 38264394Seric should be defined. No aliasing or forwarding is done. 38357246Seric 38464324Seric 38557246Seric+-------+ 38657246Seric| HACKS | 38757246Seric+-------+ 38857246Seric 38957246SericSome things just can't be called features. To make this clear, 39057247Sericthey go in the hack subdirectory and are referenced using the HACK 39157246Sericmacro. These will tend to be site-dependent. The release 39257246Sericincludes the Berkeley-dependent "cssubdomain" hack (that makes 39357246Sericsendmail accept local names in either Berkeley.EDU or CS.Berkeley.EDU; 39457246Sericthis is intended as a short-term aid while we move hosts into 39557246Sericsubdomains. 39657246Seric 39758087Seric 39857246Seric+--------------------+ 39957246Seric| SITE CONFIGURATION | 40057246Seric+--------------------+ 40157246Seric 40257246SericComplex sites will need more local configuration information, such as 40357246Sericlists of UUCP hosts they speak with directly. This can get a bit more 40457246Serictricky. For an example of a "complex" site, see cf/ucbvax.mc. 40557246Seric 40657246SericThe SITECONFIG macro allows you to indirectly reference site-dependent 40757246Sericconfiguration information stored in the siteconfig subdirectory. For 40857246Sericexample, the line 40957246Seric 41057246Seric SITECONFIG(uucp.ucbvax, ucbvax, U) 41157246Seric 41257246Sericreads the file uucp.ucbvax for local connection information. The 41357246Sericsecond parameter is the local name (in this case just "ucbvax" since 41457246Sericit is locally connected, and hence a UUCP hostname) and the name of 41557246Sericthe class in which to store the host information. Another SITECONFIG 41657246Sericline reads 41757246Seric 41857246Seric SITECONFIG(uucp.ucbarpa, ucbarpa.Berkeley.EDU, W) 41957246Seric 42057246SericThis says that the file uucp.ucbarpa contains the list of UUCP sites 42157246Sericconnected to ucbarpa.Berkeley.EDU. The $=W class will be used to 42257246Sericstore this list. [The machine ucbarpa is gone now, but I've left 42357246Sericthis out-of-date configuration file around to demonstrate how you 42457246Sericmight do this.] 42557246Seric 42657246SericThe siteconfig file (e.g., siteconfig/uucp.ucbvax.m4) contains nothing 42757246Sericmore than a sequence of SITE macros describing connectivity. For 42857246Sericexample: 42957246Seric 43057246Seric SITE(cnmat) 43157246Seric SITE(sgi olympus) 43257246Seric 43357246SericThe second example demonstrates that you can use two names on the 43457246Sericsame line; these are usually aliases for the same host (or are at 43557246Sericleast in the same company). 43657246Seric 43758087Seric 438*65218Seric+--------------------+ 439*65218Seric| USING UUCP MAILERS | 440*65218Seric+--------------------+ 441*65218Seric 442*65218SericIt's hard to get UUCP mailers right because of the extremely ad hoc 443*65218Sericnature of UUCP addressing. These config files are really designed 444*65218Sericfor domain-based addressing, even for UUCP sites. 445*65218Seric 446*65218SericThere are four UUCP mailers available. The choice of which one to 447*65218Sericuse is partly a matter of local preferences and what is running at 448*65218Sericthe other end of your UUCP connection. Unlike good protocols that 449*65218Sericdefine what will go over the wire, UUCP uses the policy that you 450*65218Sericshould do what is right for the other end; if they change, you have 451*65218Sericto change. This makes it hard to do the right thing, and discourages 452*65218Sericpeople from updating their software. In general, if you can avoid 453*65218SericUUCP, please do. 454*65218Seric 455*65218SericThe major choice is whether to go for a domainized scheme or a 456*65218Sericnon-domainized scheme. This depends entirely on what the other 457*65218Sericend will recognize. If at all possible, you should encourage the 458*65218Sericother end to go to a domain-based system -- non-domainized addresses 459*65218Sericdon't work entirely properly. 460*65218Seric 461*65218SericThe four mailers are: 462*65218Seric 463*65218Seric uucp-old (obsolete name: "uucp") 464*65218Seric This is the oldest, the worst (but the closest to UUCP) way of 465*65218Seric sending messages accros UUCP connections. It does bangify 466*65218Seric everything and prepends $U (your UUCP name) to the sender's 467*65218Seric address (which can already be a bang path itself). It can 468*65218Seric only send to one address at a time, so it spends a lot of 469*65218Seric time copying duplicates of messages. Avoid this if at all 470*65218Seric possible. 471*65218Seric 472*65218Seric uucp-new (obsolete name: "suucp") 473*65218Seric The same as above, except that it assumes that in one rmail 474*65218Seric command you can specify several recipients. It still has a 475*65218Seric lot of other problems. 476*65218Seric 477*65218Seric uucp-dom 478*65218Seric This UUCP mailer keeps everything as domain addresses. 479*65218Seric Basically, it uses the SMTP mailer rewriting rules. 480*65218Seric 481*65218Seric Unfortunately, a lot of UUCP mailer transport agents require 482*65218Seric bangified addresses in the envelope, although you can use 483*65218Seric domain-based addresses in the message header. (The envelope 484*65218Seric shows up as the From_ line on UNIX mail.) So.... 485*65218Seric 486*65218Seric uucp-uudom 487*65218Seric This is a cross between uucp-new (for the envelope addresses) 488*65218Seric and uucp-dom (for the header addresses). It bangifies the 489*65218Seric envelope sender (From_ line in messages) without adding the 490*65218Seric local hostname, unless there is no host name on the address 491*65218Seric at all (e.g., "wolf") or the host component is a UUCP host name 492*65218Seric instead of a domain name ("somehost!wolf" instead of 493*65218Seric "some.dom.ain!wolf"). 494*65218Seric 495*65218SericExamples: 496*65218Seric 497*65218SericWe are on host grasp.insa-lyon.fr (UUCP host name "grasp"). The 498*65218Sericfollowing summarizes the sender rewriting for various mailers. 499*65218Seric 500*65218SericMailer sender rewriting in the envelope 501*65218Seric------ ------ ------------------------- 502*65218Sericuucp-{old,new} wolf grasp!wolf 503*65218Sericuucp-dom wolf wolf@grasp.insa-lyon.fr 504*65218Sericuucp-uudom wolf grasp.insa-lyon.fr!wolf 505*65218Seric 506*65218Sericuucp-{old,new} wolf@fr.net grasp!fr.net!wolf 507*65218Sericuucp-dom wolf@fr.net wolf@fr.net 508*65218Sericuucp-uudom wolf@fr.net fr.net!wolf 509*65218Seric 510*65218Sericuucp-{old,new} somehost!wolf grasp!somehost!wolf 511*65218Sericuucp-dom somehost!wolf somehost!wolf@grasp.insa-lyon.fr 512*65218Sericuucp-uudom somehost!wolf grasp.insa-lyon.fr!somehost!wolf 513*65218Seric 514*65218SericIf you are using one of the domainized UUCP mailers, you really want 515*65218Sericto convert all UUCP addresses to domain format -- otherwise, it will 516*65218Sericdo it for you (and probably not the way you expected). For example, 517*65218Sericif you have the address foo!bar!baz (and you are not sending to foo), 518*65218Sericthe heuristics will add the @uucp.relay.name or @local.host.name to 519*65218Sericthis address. However, if you map foo to foo.host.name first, it 520*65218Sericwill not add the local hostname. You can do this using the uucpdomain 521*65218Sericfeature. 522*65218Seric 523*65218Seric 52457246Seric+-------------------+ 52557246Seric| TWEAKING RULESETS | 52657246Seric+-------------------+ 52757246Seric 52851268SericFor more complex configurations, you can define special rules. 52951268SericThe macro LOCAL_RULE_3 introduces rules that are used in canonicalizing 53051268Sericthe names. Any modifications made here are reflected in the header. 53151268Seric 53251268SericA common use is to convert old UUCP addreses to SMTP addresses using 53351268Sericthe UUCPSMTP macro. For example: 53451268Seric 53551268Seric LOCAL_RULE_3 53651268Seric UUCPSMTP(decvax, decvax.dec.com) 53751268Seric UUCPSMTP(research, research.att.com) 53851268Seric 53951268Sericwill cause addresses of the form "decvax!user" and "research!user" 54051268Sericto be converted to "user@decvax.dec.com" and "user@research.att.com" 54151268Sericrespectively. 54251268Seric 54357246SericThis could also be used to look hosts in a database map: 54457246Seric 54557246Seric LOCAL_RULE_3 54657246Seric R$* < @ $+ > $* $: $1 < @ $(hostmap $2 $) > $3 54757246Seric 54857246SericThis map would be defined in the LOCAL_CONFIG portion, as shown below. 54957246Seric 55051268SericSimilarly, LOCAL_RULE_0 can be used to introduce new parsing rules. 55151268SericFor example, new rules are needed to parse hostnames that you accept 55251309Sericvia MX records. For example, you might have: 55351268Seric 55451309Seric LOCAL_RULE_0 55551309Seric R$+ < @ cnmat.Berkeley.EDU > $#uucp $@ cnmat $: $1 55651309Seric 55751309SericYou would use this if you had installed an MX record for cnmat.Berkeley.EDU 55851309Sericpointing at this host; this rule catches the message and forwards it on 55951309Sericusing UUCP. 56051309Seric 56158681SericYou can also tweak rulesets 1 and 2 using LOCAL_RULE_1 and LOCAL_RULE_2. 56258681SericThese rulesets are normally empty. 56358681Seric 56457246SericA similar macro is LOCAL_CONFIG. This introduces lines added after the 56557246Sericboilerplate option setting but before rulesets, and can be used to 56657945Sericdeclare local database maps or whatever. For example: 56751268Seric 56857246Seric LOCAL_CONFIG 56957246Seric Khostmap hash /etc/hostmap.db 57057246Seric Kyplocal nis -m hosts.byname 57151220Seric 57258087Seric 57357246Seric+---------------------------+ 57457246Seric| MASQUERADING AND RELAYING | 57557246Seric+---------------------------+ 57657246Seric 57757246SericYou can have your host masquerade as another using 57857246Seric 57957246Seric MASQUERADE_AS(host.domain) 58057246Seric 58157246SericThis causes outgoing SMTP mail to be labelled as coming from the 58257246Sericindicated domain, rather than $j. One normally masquerades as one 58357246Sericof your own subdomains (for example, it's unlikely that I would 58457246Sericchoose to masquerade as an MIT site). 58557246Seric 58664153SericThe masquerade name is not normally canonified, so it is important 58764153Sericthat it be your One True Name, that is, fully qualified and not a 58864153SericCNAME. 58964153Seric 59057246Sericthere are always users that need to be "exposed" -- that is, their 59157246Sericinternal site name should be displayed instead of the masquerade name. 59257246SericRoot is an example. You can add users to this list using 59357246Seric 59457246Seric EXPOSED_USER(usernames) 59557246Seric 59657246SericThis adds users to class E; you could also use something like 59757246Seric 59857246Seric FE/etc/sendmail.cE 59957246Seric 60057246SericYou can also arrange to relay all unqualified names (that is, names 60157246Sericwithout @host) to a relay host. For example, if you have a central 60257246Sericemail server, you might relay to that host so that users don't have 60357246Sericto have .forward files or aliases. You can do this using 60457246Seric 60558071Seric define(`LOCAL_RELAY', mailer:hostname) 60657246Seric 60758071SericThe ``mailer:'' can be omitted, in which case the mailer defaults to 60858071Seric"smtp". There are some user names that you don't want relayed, perhaps 60958071Sericbecause of local aliases. A common example is root, which may be 61058071Sericlocally aliased. You can add entries to this list using 61157246Seric 61257246Seric LOCAL_USER(usernames) 61357246Seric 61457246SericThis adds users to class L; you could also use something like 61557246Seric 61657246Seric FL/etc/sendmail.cL 61757246Seric 61864153SericIf you want all incoming mail sent to a centralized hub, as for a 61964153Sericshared /var/spool/mail scheme, use 62057591Seric 62158071Seric define(`MAIL_HUB', mailer:hostname) 62257591Seric 62358071SericAgain, ``mailer:'' defaults to "smtp". If you define both LOCAL_RELAY 62458071Sericand MAIL_HUB, unqualified names and names in class L will be sent to 62558071Sericthe LOCAL_RELAY and other local names will be sent to MAIL_HUB. For 62658071Sericexample, if are on machine mastodon.CS.Berkeley.EDU, the following 62758071Sericcombinations of settings will have the indicated effects: 62857591Seric 62957591Sericemail sent to.... eric eric@mastodon.CS.Berkeley.EDU 63057591Seric 63157591SericLOCAL_RELAY set to mail.CS.Berkeley.EDU (delivered locally) 63257591Sericmail.CS.Berkeley.EDU 63357591Seric 63457591SericMAIL_HUB set to mammoth.CS.Berkeley.EDU mammoth.CS.Berkeley.EDU 63557591Sericmammoth.CS.Berkeley.EDU 63657591Seric 63757591SericBoth LOCAL_RELAY and mail.CS.Berkeley.EDU mammoth.CS.Berkeley.EDU 63857591SericMAIL_HUB set as above 63957591Seric 64064153SericIf you want all outgoing mail to go to a central relay site, define 64164153SericSMART_HOST as well. Briefly: 64258071Seric 64364153Seric LOCAL_RELAY applies to unqualifed names (e.g., "eric"). 64464153Seric MAIL_HUB applies to names qualified with the name of the 64564153Seric local host (e.g., "eric@mastodon.CS.Berkeley.EDU"). 64664153Seric SMART_HOST applies to names qualified with other hosts. 64764153Seric 64864153SericHowever, beware that other relays (e.g., UUCP_RELAY, BITNET_RELAY, and 64964153SericFAX_RELAY) take precedence over SMART_HOST, so if you really want 65064153Sericabsolutely everything to go to a single central site you will need to 65164153Sericunset all the other relays -- or better yet, find or build a minimal 65264153Sericconfig file that does this. 65364153Seric 65464153Seric 65558071Seric+-------------------------------+ 65658071Seric| NON-SMTP BASED CONFIGURATIONS | 65758071Seric+-------------------------------+ 65858071Seric 65958071SericThese configuration files are designed primarily for use by SMTP-based 66058071Sericsites. I don't pretend that they are well tuned for UUCP-only or 66158071SericUUCP-primarily nodes (the latter is defined as a small local net 66258071Sericconnected to the rest of the world via UUCP). However, there is one 66358071Serichook to handle some special cases. 66458071Seric 66558071SericYou can define a ``smart host'' that understands a richer address syntax 66658071Sericusing: 66758071Seric 66858071Seric define(`SMART_HOST', mailer:hostname) 66958071Seric 67064028SericIn this case, the ``mailer:'' defaults to "relay". Any messages that 67158071Sericcan't be handled using the usual UUCP rules are passed to this host. 67258071Seric 67358071SericIf you are on a local SMTP-based net that connects to the outside 67458071Sericworld via UUCP, you can use LOCAL_NET_CONFIG to add appropriate rules. 67558071SericFor example: 67658071Seric 67758071Seric define(`SMART_HOST', suucp:uunet) 67858071Seric LOCAL_NET_CONFIG 67963761Seric R$* < @ $* .$m. > $* $#smtp $@ $2.$m. $: $1 < @ $2.$m. > $3 68058071Seric 68158071SericThis will cause all names that end in your domain name ($m) via 68258071SericSMTP; anything else will be sent via suucp (smart UUCP) to uunet. 68363761SericIf you have FEATURE(nocanonify), you may need to omit the dots after 68463761Sericthe $m. If you are running a local DNS inside your domain which is 68563761Sericnot otherwise connected to the outside world, you probably want to 68663761Sericuse: 68758071Seric 68863761Seric define(`SMART_HOST', smtp:fire.wall.com) 68963761Seric LOCAL_NET_CONFIG 69063761Seric R$* < @ $* . > $* $#smtp $@ $2. $: $1 < @ $2. > $3 69158071Seric 69263761SericThat is, send directly only to things you found in your DNS lookup; 69363761Sericanything else goes through SMART_HOST. 69463761Seric 69564153SericIf you are not running DNS at all, it is important to use 69664153SericFEATURE(nodns) to avoid having sendmail queue everything waiting 69764153Sericfor the name server to come up. 69863761Seric 69964153Seric 70064259Seric+-----------+ 70164259Seric| WHO AM I? | 70264259Seric+-----------+ 70364259Seric 70464259SericNormally, the $j macro is automatically defined to be your fully 70564259Sericqualified domain name (FQDN). Sendmail does this by getting your 70664259Serichost name using gethostname and then calling gethostbyname on the 70764259Sericresult. For example, in some environments gethostname returns 70864259Sericonly the root of the host name (such as "foo"); gethostbyname is 70964259Sericsupposed to return the FQDN ("foo.bar.com"). In some (fairly rare) 71064259Sericcases, gethostbyname may fail to return the FQDN. In this case 71164259Sericyou MUST define confDOMAIN_NAME to be your fully qualified domain 71264259Sericname. This is usually done using: 71364259Seric 71464259Seric Dmbar.com 71564259Seric define(`confDOMAIN_NAME', `$w.$m')dnl 71664259Seric 71764259Seric 71864028Seric+--------------------+ 71964028Seric| USING MAILERTABLES | 72064028Seric+--------------------+ 72164028Seric 72264028SericTo use FEATURE(mailertable), you will have to create an external 72364028Sericdatabase containing the routing information for various domains. 72464028SericFor example, a mailertable file in text format might be: 72564028Seric 72664028Seric .my.domain xnet:%1.my.domain 72764028Seric uuhost1.my.domain suucp:uuhost1 72864028Seric .bitnet smtp:relay.bit.net 72964028Seric 73064028SericThis should normally be stored in /etc/mailertable. The actual 73164028Sericdatabase version of the mailertable is built using: 73264028Seric 73364028Seric makemap hash /etc/mailertable.db < /etc/mailertable 73464028Seric 73564028SericThe semantics are simple. Any LHS entry that does not begin with 73664028Serica dot matches the full host name indicated. LHS entries beginning 73764028Sericwith a dot match anything ending with that domain name -- that is, 73864028Sericthey can be thought of as having a leading "*" wildcard. Matching 73964028Sericis done in order of most-to-least qualified -- for example, even 74064028Sericthough ".my.domain" is listed first in the above example, an entry 74164028Sericof "uuhost1.my.domain" will match the second entry since it is 74264028Sericmore explicit. 74364028Seric 74464028SericThe RHS should always be a "mailer:host" pair. The mailer is the 74564028Sericconfiguration name of a mailer (that is, an `M' line in the 74664028Sericsendmail.cf file). The "host" will be the hostname passed to 74764028Sericthat mailer. In domain-based matches (that is, those with leading 74864028Sericdots) the "%1" may be used to interpolate the wildcarded part of 74964028Sericthe host name. For example, the first line above sends everything 75064028Sericaddressed to "anything.my.domain" to that same host name, but using 75164028Sericthe (presumably experimental) xnet mailer. 75264028Seric 75364028Seric 75464153Seric+--------------------------------+ 75564153Seric| USING USERDB TO MAP FULL NAMES | 75664153Seric+--------------------------------+ 75764153Seric 75864153SericThe user database was not originally intended for mapping full names 75964153Sericto login names (e.g., Eric.Allman => eric), but some people are using 76064153Sericit that way. (I would recommend that you set up aliases for this 76164153Sericpurpose instead -- since you can specify multiple alias files, this 76264153Sericis fairly easy.) The intent was to locate the default maildrop at 76364153Serica site, but allow you to override this by sending to a specific host. 76464153Seric 76564153SericIf you decide to set up the user database in this fashion, it is 76664153Sericimperative that you also specify FEATURE(notsticky) -- otherwise, 76764153Serice-mail sent to Full.Name@local.host.name will be rejected. 76864153Seric 76964259SericTo build the internal form of the user databae, use: 77064153Seric 77164259Seric makemap btree /usr/data/base.db < /usr/data/base.txt 77264259Seric 77364259Seric 77458363Seric+------------------+ 77558363Seric| FlexFAX SOFTWARE | 77658363Seric+------------------+ 77758363Seric 77858363SericSam Leffler's FlexFAX software is still in beta test -- but he expects a 77958363Sericpublic version out "later this week" [as of 3/1/93]. The following 78058363Sericblurb is direct from Sam: 78158363Seric 78264498Seric $Header: /usr/people/sam/fax/RCS/HOWTO,v 1.14 93/05/24 11:42:16 sam Exp $ 78358363Seric 78458363Seric How To Obtain This Software (in case all you get is this file) 78564498Seric -------------------------------------------------------------- 78658363Seric The source code is available for public ftp on 78764498Seric sgi.com sgi/fax/v2.1.src.tar.Z 78858363Seric (192.48.153.1) 78958363Seric 79058363Seric You can also obtain inst'able images for Silicon Graphics machines from 79164498Seric sgi.com sgi/fax/v2.1.inst.tar 79258363Seric (192.48.153.1) 79358363Seric 79458363Seric For example, 79558363Seric % ftp -n sgi.com 79658363Seric .... 79758363Seric ftp> user anonymous 79858363Seric ... <type in password> 79958363Seric ftp> cd sgi/fax 80058363Seric ftp> binary 80164498Seric ftp> get v2.1.src.tar.Z 80258363Seric 80364498Seric In general, the latest version of the 2.1 release of the software is 80464498Seric always available as "v2.1.src.tar.Z" or "v2.1.inst.tar" in the ftp 80564498Seric directory. This file is a link to the appropriate released version (so 80664498Seric don't waste your time retrieving the linked file as well!) Any files of 80764498Seric the form v2.1.*.patch are shell scripts that can be used to patch older 80864498Seric versions of the source code. For example, the file v2.1.0.patch would 80964498Seric contain patches to update v2.1.0.tar.Z. (Note to beta testers: this is 81064498Seric different than the naming conventions used during beta testing.) Patch 81164498Seric files only work to go between consecutive versions, so if you are 81264498Seric multiple versions behind the latest release, you will need to apply 81364498Seric each patch file between your current version and the latest. 81464498Seric 81564498Seric 81664498Seric Obtaining the Software by Electronic Mail 81764498Seric ----------------------------------------- 81864498Seric Do not send me requests for the software; they will be ignored (without 81964498Seric response). If you cannot use FTP at all, there is a service called 82064498Seric "ftpmail" available from gatekeeper.dec.com: you can send e-mail to 82164498Seric this machine and it will use FTP to retrieve files for you and send you 82264498Seric the files back again via e-mail. To find out more about the ftpmail 82358363Seric service, send a message to "ftpmail@gatekeeper.dec.com" whose body 82458363Seric consists of the single line "help". 82558363Seric 82664498Seric 82764498Seric Obtaining the Software Within Silicon Graphics 82864498Seric ---------------------------------------------- 82958363Seric Internal to Silicon Graphics there are inst'able images on the host 83064498Seric flake.asd in the directory /usr/dist. Thus you can do something like: 83158363Seric 83264498Seric % inst -f flake.asd.sgi.com:/usr/dist/flexfax 83358363Seric 83464498Seric to install the latest version of the software on your machine. 83558363Seric 83664498Seric 83764498Seric What to do Once You've Retrieved Stuff 83864498Seric -------------------------------------- 83958363Seric The external distributions come in a compressed or uncompressed tar 84058363Seric file. To extract the source distribution: 84158363Seric 84264498Seric % zcat v2.1.src.tar.Z | tar xf - 84358363Seric 84458363Seric (uncompress and extract individual files in current directory). To 84558363Seric unpack and install the client portion of the inst'able distribution: 84658363Seric 84758363Seric % mkdir dist 84864498Seric % cd dist; tar xf ../v2.1.inst.tar; cd .. 84958363Seric % inst -f dist/flexfax 85058363Seric ... 85158363Seric inst> go 85258363Seric 85358363Seric (Note, the dist subdirectory is because some versions of inst fail if 85464498Seric the files are in the current directory.) Server binaries are also 85564498Seric included in the inst'able images as flexfax.server.*. They are not 85664498Seric installed by default, so to get them also you need to do: 85758363Seric 85858363Seric % inst -f flexfax 85958363Seric ... 86058363Seric inst> install flexfax.server.* 86158363Seric inst> go 86258363Seric 86364498Seric The SGI binaries were built for Version 4.0.5H of the IRIX operating 86458363Seric system. They should work w/o problem on earlier versions of the 86558363Seric system, but I have not fully tested this. Also, note that to install a 86658363Seric server on an SGI machine, you need to have installed the Display 86758363Seric PostScript execution environment product (dps_eoe). Otherwise, the fax 86858363Seric server will not be able to convert PostScript to facsimile for 86958363Seric transmission. 87058363Seric 87164498Seric If you are working from the source distribution, look at the file 87264498Seric README in the top of the source tree. If you are working from the inst 87364498Seric images, the subsystem flexfax.man.readme contains the README file and 87464498Seric other useful pieces of information--the installed files are placed in 87564498Seric the directory /usr/local/doc/flexfax). Basically you will need to run 87664498Seric the faxaddmodem script to setup and configure your fax modem. Consult 87764498Seric the README file and the manual page for faxaddmodem for information. 87858363Seric 87958363Seric 88064498Seric FlexFAX Mail List 88164498Seric ----------------- 88258363Seric A mailing list for users of this software is located on sgi.com. 88358363Seric If you want to join this mailing list or have a list-related request 88458363Seric such as getting your name removed from it, send a request to 88558363Seric 88664498Seric majordomo@whizzer.wpd.sgi.com 88758363Seric 88864498Seric For example, to subscribe, send the line "subscribe flexfax" in 88964498Seric the body of your message. The line "help" will return a list of 89064498Seric the commands understood by the mailing list management software. 89164498Seric 89258363Seric Submissions (including bug reports) should be directed to: 89358363Seric 89458363Seric flexfax@sgi.com 89558363Seric 89664498Seric When corresponding about this software please always specify what 89764498Seric version you have, what system you're running on, and, if the problem is 89864498Seric specific to your modem, identify the modem and firmware revision. 89958363Seric 90064498Seric 90157945Seric+--------------------------------+ 90257945Seric| TWEAKING CONFIGURATION OPTIONS | 90357945Seric+--------------------------------+ 90457945Seric 90557945SericThere are a large number of configuration options that don't normally 90657945Sericneed to be changed. However, if you feel you need to tweak them, you 90757945Sericcan define the following M4 variables. This list is shown in four 90857945Sericcolumns: the name you define, the default value for that definition, 90957945Sericthe option or macro that is affected (either Ox for an option or Dx 91057945Sericfor a macro), and a brief description. Greater detail of the semantics 91157945Sericcan be found in the Installation and Operations Guide. 91257945Seric 91363582SericSome options are likely to be deprecated in future versions -- that is, 91463582Sericthe option is only included to provide back-compatibility. These are 91563582Sericmarked with "*". 91663582Seric 91765002SericRemember that these options are M4 variables, and hence may need to 91865002Sericbe quoted. In particular, arguments with commas will usually have to 91965002Sericbe ``double quoted, like this phrase'' to avoid having the comma 92065002Sericconfuse things. This is common for alias file definitions and for 92165002Sericthe read timeout. 92265002Seric 92357945SericM4 Variable Name Default Mac/Opt Description 92465002Seric================ ======= ======= =========== 92557945SericconfMAILER_NAME MAILER-DAEMON Dn The sender name used for 92657945Seric internally generated 92757945Seric outgoing messages. 92858681SericconfFROM_LINE From $g $d Dl The From_ line used when 92958681Seric sending to files or programs. 93057945SericconfFROM_HEADER $?x$x <$g>$|$g$. The format of an internally 93157945Seric Dq generated From: address. 93257945SericconfOPERATORS .:%@!^/[] Do Address operator characters. 93364153SericconfSMTP_LOGIN_MSG $j Sendmail $v/$Z ready at $b 93457945Seric De The initial (spontaneous) 93557945Seric SMTP greeting message. 93659743SericconfSEVEN_BIT_INPUT False O7 Force input to seven bits? 93757945SericconfALIAS_WAIT 10 Oa Wait (in minutes) for alias 93857945Seric file rebuild. 93958087SericconfMIN_FREE_BLOCKS 4 Ob Minimum number of free blocks 94058087Seric on queue filesystem to accept 94158087Seric SMTP mail. 94257945SericconfBLANK_SUB . OB Blank (space) substitution 94357945Seric character. 94457945SericconfCON_EXPENSIVE False Oc Connect immediately to 94557945Seric mailers marked expensive? 94657945SericconfCHECKPOINT_INTERVAL 10 OC Checkpoint queue files 94757945Seric every N recipients. 94857945SericconfDELIVERY_MODE background Od Default delivery mode. 94957945SericconfAUTO_REBUILD False OD Automatically rebuild 95057945Seric alias file if needed. 95157945SericconfERROR_MODE (undefined) Oe Error message mode. 95257945SericconfERROR_MESSAGE (undefined) OE Error message header/file. 95357945SericconfSAVE_FROM_LINES False Of Save extra leading 95457945Seric From_ lines. 95557945SericconfTEMP_FILE_MODE 0600 OF Temporary file mode. 95657945SericconfDEF_GROUP_ID 1 Og Default group id. 95757945SericconfMATCH_GECOS False OG Match GECOS field. 95857945SericconfMAX_HOP 17 Oh Maximum hop count. 95963582SericconfIGNORE_DOTS False Oi * Ignore dot as terminator 96057945Seric for incoming messages? 96157945SericconfBIND_OPTS (empty) OI Default options for BIND. 96263582SericconfMIME_FORMAT_ERRORS True Oj * Send error messages as MIME- 96359743Seric encapsulated messages per 96459743Seric RFC 1344. 96564153SericconfFORWARD_PATH (undefined) OJ The colon-separated list of 96664153Seric places to search for .forward 96764153Seric files. 96857945SericconfMCI_CACHE_SIZE 2 Ok Size of open connection cache. 96957945SericconfMCI_CACHE_TIMEOUT 5m OK Open connection cache timeout. 97063582SericconfUSE_ERRORS_TO False Ol * Use the Errors-To: header to 97163582Seric deliver error messages. This 97263582Seric should not be necessary because 97363582Seric of general acceptance of the 97463582Seric envelope/header distinction. 97557945SericconfLOG_LEVEL 9 OL Log level. 97657945SericconfME_TOO False Om Include sender in group 97757945Seric expansions. 97857945SericconfCHECK_ALIASES True On Check RHS of aliases when 97957945Seric running newaliases. 98063582SericconfOLD_STYLE_HEADERS True Oo * Assume that headers without 98157945Seric special chars are old style. 98258859SericconfDAEMON_OPTIONS (undefined) OO SMTP daemon options. 98358806SericconfPRIVACY_FLAGS authwarnings Op Privacy flags. 98457945SericconfCOPY_ERRORS_TO (undefined) OP Address for additional copies 98557945Seric of all error messages. 98657945SericconfQUEUE_FACTOR (undefined) Oq Slope of queue-only function 98758116SericconfREAD_TIMEOUT (undefined) Or SMTP read timeouts. 98863582SericconfSAFE_QUEUE True Os * Commit all messages to disk 98957945Seric before forking. 99058806SericconfMESSAGE_TIMEOUT 5d/4h OT Timeout for messages before 99158806Seric sending error/warning message. 99259317SericconfTIME_ZONE USE_SYSTEM Ot Time zone info -- can be 99357945Seric USE_SYSTEM to use the system's 99457945Seric idea, USE_TZ to use the user's 99557945Seric TZ envariable, or something 99657945Seric else to force that value. 99757945SericconfDEF_USER_ID 1 Ou Default user id. 99858718SericconfUSERDB_SPEC (undefined) OU User database specification. 99958859SericconfFALLBACK_MX (undefined) OV Fallback MX host. 100063857SericconfTRY_NULL_MX_LIST False Ow If we are the best MX for a 100163857Seric host and haven't made other 100263857Seric arrangements, try connecting 100363857Seric to the host directly; normally 100463857Seric this would be a config error. 100557945SericconfQUEUE_LA 8 Ox Load average at which queue-only 100657945Seric function kicks in. 100757945SericconfREFUSE_LA 12 OX Load average at which incoming 100857945Seric SMTP connections are refused. 100963582SericconfWORK_RECIPIENT_FACTOR 101063582Seric (undefined) Oy Cost of each recipient. 101163582SericconfSEPARATE_PROC False OY Run all deliveries in a 101257945Seric separate process. 101357945SericconfWORK_CLASS_FACTOR (undefined) Oz Priority multiplier for class. 101457945SericconfWORK_TIME_FACTOR (undefined) OZ Cost of each delivery attempt. 101558408SericconfCW_FILE /etc/sendmail.cw Name of file used to get the 101658408Seric Fw local additions to the $=w 101758408Seric class. 101864153SericconfSMTP_MAILER smtp - The mailer name used when 101963972Seric SMTP connectivity is required. 102063972Seric Either "smtp" or "esmtp". 102163999SericconfLOCAL_MAILER local - The mailer name used when 102263999Seric local connectivity is required. 102363999Seric Almost always "local". 102464028SericconfRELAY_MAILER relay - The default mailer name used 102564028Seric for relaying any mail (e.g., 102664028Seric to a BITNET_RELAY, a 102764028Seric SMART_HOST, or whatever). 102864028Seric This can reasonably be "suucp" 102964028Seric if you are on a UUCP-connected 103064028Seric site. 103164259SericconfDOMAIN_NAME (undefined) Dj If defined, sets $j. 103257945Seric 103358087Seric 103457246Seric+-----------+ 103557246Seric| HIERARCHY | 103657246Seric+-----------+ 103757246Seric 103851220SericWithin this directory are several subdirectories, to wit: 103951220Seric 104051220Sericm4 General support routines. These are typically 104151220Seric very important and should not be changed without 104257247Seric very careful consideration. 104351220Seric 104451220Sericcf The configuration files themselves. They have 104551220Seric ".mc" suffixes, and must be run through m4 to 104651220Seric become complete. The resulting output should 104751220Seric have a ".cf" suffix. 104851220Seric 104951220Sericostype Definitions describing a particular operating 105051220Seric system type. These should always be referenced 105151220Seric using the OSTYPE macro in the .mc file. Examples 105251220Seric include "bsd4.3", "bsd4.4", "sunos3.5", and 105351220Seric "sunos4.1". 105451220Seric 105551220Sericdomain Definitions describing a particular domain, referenced 105651220Seric using the DOMAIN macro in the .mc file. These are 105751220Seric site dependent; for example, we contribute "cs.exposed.m4" 105851220Seric and "cs.hidden.m4" which both describe hosts in the 105951220Seric CS.Berkeley.EDU subdomain; the former displays the local 106051220Seric hostname (e.g., mammoth.CS.Berkeley.EDU), whereas the 106151220Seric latter does its best to hide the identity of the local 106251220Seric workstation inside the CS subdomain. 106351220Seric 106451220Sericmailer Descriptions of mailers. These are referenced using 106551220Seric the MAILER macro in the .mc file. 106651220Seric 106751220Sericsh Shell files used when building the .cf file from the 106851220Seric .mc file in the cf subdirectory. 106951220Seric 107051220Sericfeature These hold special orthogonal features that you might 107151220Seric want to include. They should be referenced using 107251220Seric the FEATURE macro. 107351220Seric 107451220Serichack Local hacks. These can be referenced using the HACK 107551220Seric macro. They shouldn't be of more than voyeuristic 107651220Seric interest outside the .Berkeley.EDU domain, but who knows? 107751220Seric We've all got our own peccadilloes. 107851220Seric 107951268Sericsiteconfig Site configuration -- e.g., tables of locally connected 108051268Seric UUCP sites. 108151220Seric 108251268Seric 108357246Seric+------------------------+ 108457246Seric| ADMINISTRATIVE DETAILS | 108557246Seric+------------------------+ 108651220Seric 108751220SericThe following sections detail usage of certain internal parts of the 108851220Sericsendmail.cf file. Read them carefully if you are trying to modify 108951220Sericthe current model. If you find the above descriptions adequate, these 109051220Sericshould be {boring, confusing, tedious, ridiculous} (pick one or more). 109151220Seric 109251220SericRULESETS (* means built in to sendmail) 109351220Seric 109451220Seric 0 * Parsing 109551220Seric 1 * Sender rewriting 109651220Seric 2 * Recipient rewriting 109751220Seric 3 * Canonicalization 109851220Seric 4 * Post cleanup 109954839Seric 5 * Local address rewrite (after aliasing) 110060539Seric 1x mailer rules (sender qualification) 110160539Seric 2x mailer rules (recipient qualification) 110264801Seric 3x mailer rules (sender header qualification) 110364801Seric 4x mailer rules (recipient header qualification) 110464801Seric 5x mailer subroutines (general) 110564801Seric 6x mailer subroutines (general) 110664801Seric 7x mailer subroutines (general) 110764801Seric 8x reserved 110860539Seric 90 Mailertable host stripping 110960892Seric 96 Bottom half of Ruleset 3 (ruleset 6 in old sendmail) 111060892Seric 97 Hook for recursive ruleset 0 call (ruleset 7 in old sendmail) 111163857Seric 98 Local part of ruleset 0 (ruleset 8 in old sendmail) 111251220Seric 111351220Seric 111451220SericMAILERS 111551220Seric 111651220Seric 0 local, prog local and program mailers 1117*65218Seric 1 [e]smtp, relay SMTP channel 1118*65218Seric 2 uucp-* UNIX-to-UNIX Copy Program 111958087Seric 3 netnews Network News delivery 112058363Seric 4 fax Sam Leffler's FlexFAX software 112151220Seric 112251220Seric 112351220SericMACROS 112451220Seric 112551220Seric A 112651220Seric B Bitnet Relay 112765182Seric C 112854839Seric D The local domain -- usually not needed 112951220Seric E 113058363Seric F FAX Relay 113151220Seric G 113257591Seric H mail Hub (for mail clusters) 113351220Seric I 113451220Seric J 113551220Seric K 113651220Seric L 113751220Seric M Masquerade (who I claim to be) 113851220Seric N 113951220Seric O 114051220Seric P 114151220Seric Q 114251220Seric R Relay (for unqualified names) 114358071Seric S Smart Host 114451220Seric T 114551309Seric U my UUCP name (if I have a UUCP connection) 114651309Seric V UUCP Relay (class V hosts) 114751220Seric W UUCP Relay (class W hosts) 114851220Seric X UUCP Relay (class X hosts) 114951309Seric Y UUCP Relay (all other hosts) 115051220Seric Z Version number 115151220Seric 115251220Seric 115351220SericCLASSES 115451220Seric 115551220Seric A 115651220Seric B 115751220Seric C 115851220Seric D 115957246Seric E addresses that should not seem to come from $M 116054839Seric F hosts we forward for 116151220Seric G 116251220Seric H 116351220Seric I 116451220Seric J 116551220Seric K 116651220Seric L addresses that should not be forwarded to $R 116751220Seric M 116851220Seric N 116951220Seric O operators that indicate network operations (cannot be in local names) 117060211Seric P top level pseudo-domains: BITNET, FAX, UUCP, etc. 117151220Seric Q 117251220Seric R 117351220Seric S 117451220Seric T 117551220Seric U locally connected UUCP hosts 117651309Seric V UUCP hosts connected to relay $V 117751309Seric W UUCP hosts connected to relay $W 117851309Seric X UUCP hosts connected to relay $X 117951309Seric Y locally connected smart UUCP hosts 118064153Seric Z locally connected domain-ized UUCP hosts 118154839Seric . the class containing only a dot 118251220Seric 118351220Seric 118451220SericM4 DIVERSIONS 118551220Seric 118658071Seric 1 Local host detection and resolution 118758071Seric 2 Local Ruleset 3 additions 118858071Seric 3 Local Ruleset 0 additions 118951268Seric 4 UUCP Ruleset 0 additions 119051309Seric 5 locally interpreted names (overrides $R) 119154839Seric 6 local configuration (at top of file) 119251220Seric 7 mailer definitions 119354839Seric 8 special local name recognition (late in ruleset 3) 119458681Seric 9 special local rulesets (1 and 2) 1195