151220Seric 251220Seric 357246Seric NEW SENDMAIL CONFIGURATION FILES 451220Seric 557246Seric Eric Allman <eric@CS.Berkeley.EDU> 651220Seric 7*64498Seric @(#)README 8.14 (Berkeley) 09/19/93 851220Seric 951220Seric 1057246SericThis document describes the sendmail configuration files being used 1163857Sericat Berkeley. These use features in the new (R8) sendmail, and although 1257246Sericthere is an ``OLDSENDMAIL'' mode, they haven't really been tested on 1357247Sericold versions of sendmail and cannot be expected to work well. 1451220Seric 1557246SericThese configuration files are probably not as general as previous 1657246Sericversions, and don't handle as many of the wierd cases automagically. 1757246SericI was able to simplify by them for two reasons. First, the network 1857246Serichas become more consistent -- for example, at this point, everyone 1957246Sericon the internet is supposed to be running a name server, so hacks to 2057246Serichandle NIC-registered hosts can go away. Second, I assumed that a 2157246Sericsubdomain would be running SMTP internally -- UUCP is presumed to be 2257246Serica long-haul protocol. I realize that this is not universal, but it 2357246Sericdoes describe the vast majority of sites with which I am familiar, 2457246Sericincluding those outside the US. 2551220Seric 2657246SericOf course, the downside of this is that if you do live in a wierd 2757246Sericworld, things are going to get wierder for you. I'm sorry about that, 2857246Sericbut at the time we at Berkeley had a problem, and it seemed like the 2957246Sericright thing to do. 3051220Seric 3157247SericThis package requires a post-V7 version of m4; if you are running the 3257247Seric4.2bsd, SysV.2, or 7th Edition version, I suggest finding a friend with 3357247Serica newer version. You can m4-expand on their system, then run locally. 3457247SericSunOS's /usr/5bin/m4 or BSD-Net/2's m4 both work. GNU m4 (which is a 3557247Sericlanguage unto itself) also works, but I don't intend to work so hard 3657247Sericto keep this up in the future. [Note to GNU folks: the construct 3757246Seric"define(`FOO')" should work without my having to add a null value.] 3851220Seric 3958284SericIF YOU DON'T HAVE A BERKELEY MAKE, don't despair! Just run 4064371Seric"m4 foo.mc > foo.cf" -- that should be all you need. There is also 4164371Serica fairly crude (but functional) Makefile.dist that works on the 4264371Sericold version of make. 4358284Seric 4458284SericTo get started, you may want to look at tcpproto.mc (for TCP-only 4564324Sericsites), uucpproto.mc (for UUCP-only sites), and clientproto.mc (for 4664324Sericclusters of clients using a single mail host). Others are versions 4758284Sericthat we use at Berkeley, although not all are in current use. For 4858284Sericexample, ucbarpa has gone away, but I've left ucbarpa.mc in because 4958284Sericit demonstrates some interesting techniques. 5058284Seric 5157246SericI'm not pretending that this README describes everything that these 5257246Sericconfiguration files can do; clever people can probably tweak them 5357246Sericto great effect. But it should get you started. 5457246Seric 5558087Seric 5657246Seric+--------------------------+ 5757246Seric| INTRODUCTION AND EXAMPLE | 5857246Seric+--------------------------+ 5957246Seric 6057246SericConfiguration files are contained in the subdirectory "cf", with a 6157246Sericsuffix ".mc". They must be run through "m4" to produce a ".cf" file. 6257246Seric 6351220SericLet's examine a typical .mc file (cf/cs-exposed.mc): 6451220Seric 6551220Seric divert(-1) 6651220Seric # 6751220Seric # Copyright (c) 1983 Eric P. Allman 6851220Seric # Copyright (c) 1988 The Regents of the University of California. 6951220Seric # All rights reserved. 7051220Seric # 7151220Seric # Redistribution and use in source and binary forms are permitted 7251220Seric # provided that the above copyright notice and this paragraph are 7351220Seric # duplicated in all such forms and that any documentation, 7451220Seric # advertising materials, and other materials related to such 7551220Seric # distribution and use acknowledge that the software was developed 7651220Seric # by the University of California, Berkeley. The name of the 7751220Seric # University may not be used to endorse or promote products derived 7851220Seric # from this software without specific prior written permission. 7951220Seric # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 8051220Seric # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 8151220Seric # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 8251220Seric # 8351220Seric 8457246SericThe divert(-1) will delete the crud in the resulting output file. 8557247SericThe copyright notice is what your lawyers require. Our lawyers require 8657246Sericthe one that I've included in my files. A copyleft is a copyright by 8757246Sericanother name. 8851220Seric 8957246SericThe next line MUST be 9057246Seric 9151220Seric include(`../m4/cf.m4') 9251220Seric 9357246SericThis will pull in the M4 macros you will need to make sense of 9457246Sericeverything else. As the saying goes, don't think about it, just 9557246Sericdo it. If you don't do it, don't bother reading the rest of this 9657246Sericfile. 9751220Seric 9856778Seric VERSIONID(`<SCCS or RCS version id>') 9951220Seric 10051220SericVERSIONID is a macro that stuffs the version information into the 10151220Sericresulting file. We use SCCS; you could use RCS, something else, or 10257246Sericomit it completely. This is not the same as the version id included 10357246Sericin SMTP greeting messages -- this is defined in m4/version.m4. 10451220Seric 10551268Seric DOMAIN(cs.exposed) 10651220Seric 10751220SericThis example exposes the host inside of the CS subdomain -- that is, 10851220Sericit doesn't try to hide the name of the workstation to the outside 10951220Sericworld. Changing this to DOMAIN(cs.hidden) would have made outgoing 11051220Sericmessages refer to "<username>@CS.Berkeley.EDU" instead of using the 11163857Sericlocal hostname. Internally this is effected by using 11257246Seric"MASQUERADE_AS(CS.Berkeley.EDU)". 11351220Seric 11451268Seric MAILER(smtp) 11551220Seric 11651309SericThese describe the mailers used at the default CS site site. The 11751309Sericlocal mailer is always included automatically. 11851220Seric 11958087Seric 12057246Seric+--------+ 12157246Seric| OSTYPE | 12257246Seric+--------+ 12357246Seric 12451220SericNote that cf/cs-exposed.mc omits an OSTYPE macro -- this assumes 12551220Sericdefault Computer Science Division environment. There are several 12657247Sericexplicit environments available: bsd4.3, bsd4.4, hpux, irix, osf1, 12757247Sericriscos4.5, sunos3.5, sunos4.1, and ultrix4.1. These change things 12857247Sericlike the location of the alias file and queue directory. Some of 12957247Sericthese files are identical to one another. 13051220Seric 13157246SericOperating system definitions are easy to write. They may define 13257246Sericthe following variables (everything defaults, so an ostype file 13357246Sericmay be empty). 13451220Seric 13557246SericALIAS_FILE [/etc/aliases] The location of the text version 13659761Seric of the alias file(s). It can be a comma-separated 13759761Seric list of names. 13857246SericHELP_FILE [/usr/lib/sendmail.hf] The name of the file 13957246Seric containing information printed in response to 14057246Seric the SMTP HELP command. 14157246SericQUEUE_DIR [/var/spool/mqueue] The directory containing 14257246Seric queue files. 14357246SericSTATUS_FILE [/etc/sendmail.st] The file containing status 14457246Seric information. 14558087SericLOCAL_MAILER_PATH [/bin/mail] The program used to deliver local mail. 14664153SericLOCAL_MAILER_FLAGS [rmn] The flags used by the local mailer. The 14764153Seric flags lsDFM are always included. 14863761SericLOCAL_MAILER_ARGS [mail -d $u] The arguments passed to deliver local 14963761Seric mail. 15058087SericLOCAL_SHELL_PATH [/bin/sh] The shell used to deliver piped email. 15163791SericLOCAL_SHELL_FLAGS [eu] The flags used by the shell mailer. The 15263791Seric flags lsDFM are always included. 15363791SericLOCAL_SHELL_ARGS [sh -c $u] The arguments passed to deliver "prog" 15463791Seric mail. 15558087SericUSENET_MAILER_PATH [/usr/lib/news/inews] The name of the program 15658087Seric used to submit news. 15758087SericUSENET_MAILER_FLAGS [rlsDFMmn] The mailer flags for the usenet mailer. 15858087SericUSENET_MAILER_ARGS [-m -h -n] The command line arguments for the 15958087Seric usenet mailer. 16063857SericSMTP_MAILER_FLAGS [undefined] Flags added to SMTP mailer. Default 16163857Seric flags are `mDFMUX' (and `a' for esmtp mailer). 16263857SericUUCP_MAILER_FLAGS [undefined] Flags added to UUCP mailer. Default 16363857Seric flags are `DFMhuU' (and `m' for suucp mailer, minus 16463857Seric `U' for uucp-dom mailer). 16563761SericUUCP_MAILER_ARGS [uux - -r -z -a$f -gC $h!rmail ($u)] The arguments 16663761Seric passed to the UUCP mailer. 16763791SericUUCP_MAX_SIZE [100000] The maximum size message accepted for 16863791Seric transmission by the UUCP mailers. 16957246SericHOSTMAP_SPEC [dbm -o /etc/hostmap] The value for the builtin 17057246Seric hostmap key definition. You can redefine this 17157246Seric to change the class, flags, and filename of 17257246Seric the hostmap. The default flag (-o) makes this 17357246Seric map optional. 17457246Seric 17557246Seric+---------+ 17657246Seric| DOMAINS | 17757246Seric+---------+ 17857246Seric 17957246SericYou will probably want to collect domain-dependent defines into one 18057246Sericfile, referenced by the DOMAIN macro. For example, our Berkeley 18157246Sericdomain file includes definitions for several internal distinguished 18257246Serichosts: 18357246Seric 18457246SericUUCP_RELAY The host that will forward UUCP-addressed email. 18557246Seric If not defined, all UUCP sites must be directly 18664028Seric connected. 18757246SericBITNET_RELAY The host that will forward BITNET-addressed email. 18857246Seric If not defined, the .BITNET pseudo-domain won't work. 18957246SericCSNET_RELAY The host that will forward CSNET-addressed email. 19057246Seric If not defined, the .CSNET pseudo-domain won't work. 19157246SericLOCAL_RELAY The site that will handle unqualified names -- that 19257246Seric is, names with out an @domain extension. If not set, 19357246Seric they are assumed to belong on this machine. This 19457246Seric allows you to have a central site to store a 19557246Seric company- or department-wide alias database. This 19657246Seric only works at small sites, and there are better 19764028Seric methods. 19857246Seric 19964028SericEach of these can be either ``mailer:hostname'' (in which case the 20064028Sericmailer is the internal mailer name, such as ``suucp'' and the hostname 20164028Sericis the name of the host as appropriate for that mailer) or just a 20264028Seric``hostname'', in which case a default mailer type (usually ``relay'', 20364153Serica variant on SMTP) is used. WARNING: if you have a wildcard MX 20464153Sericrecord matching your domain, you probably want to define these to 20564153Serichave a trailing dot so that you won't get the mail diverted back 20664153Sericto yourself. 20764028Seric 20857246SericThe domain file can also be used to define a domain name, if needed 20957982Seric(using "DD<domain>") and set certain site-wide features. If all hosts 21057982Sericat your site masquerade behind one email name, you could also use 21157982SericMASQUERADE_AS here. 21257246Seric 21358408SericYou do not have to define a domain -- in particular, if you are a 21458408Sericsingle machine sitting off somewhere, it is probably more work than 21558408Sericit's worth. This is just a mechanism for combining "domain dependent 21658408Sericknowledge" into one place. 21758408Seric 21857246Seric+---------+ 21957246Seric| MAILERS | 22057246Seric+---------+ 22157246Seric 22251220SericThere are fewer mailers supported in this version than the previous 22351220Sericversion, owing mostly to a simpler world. 22451220Seric 22551220Sericlocal The local and prog mailers. You will almost always 22651220Seric need these; the only exception is if you relay ALL 22757247Seric your mail to another site. This mailer is included 22857247Seric automatically. 22951220Seric 23051220Sericsmtp The Simple Mail Transport Protocol mailer. This does 23151220Seric not hide hosts behind a gateway or another other 23251220Seric such hack; it assumes a world where everyone is 23363761Seric running the name server. This file actually defines 23463761Seric three mailers: "smtp" for regular (old-style) SMTP to 23563761Seric other servers, "esmtp" for extended SMTP to other 23663761Seric servers, and "relay" for transmission to our 23763761Seric RELAY_HOST or MAILER_HUB. 23851220Seric 23951220Sericuucp The Unix-to-Unix Copy Program mailer. Actually, this 24051220Seric defines two mailers, "uucp" and "suucp". The latter 24151220Seric is for when you know that the UUCP mailer at the other 24251220Seric end can handle multiple recipients in one transfer. 24357246Seric When you invoke this, sendmail looks for all names in 24457246Seric the $=U class and sends them to the uucp mailer; all 24557246Seric names in the $=Y class are sent to suucp. Note that 24657246Seric this is a function of what version of rmail runs on 24757246Seric the receiving end, and hence may be out of your control. 24863857Seric If smtp is defined, it also defines a "uucp-dom" mailer 24963857Seric that uses domain-style rewriting. 25051220Seric 25158087Sericusenet Usenet (network news) delivery. If this is specified, 25258087Seric an extra rule is added to ruleset 0 that forwards all 25358087Seric local email for users named ``group.usenet'' to the 25458087Seric ``inews'' program. Note that this works for all groups, 25558087Seric and may be considered a security problem. 25658087Seric 25758363Sericfax Facsimile transmission. This is experimental and based 25858363Seric on Sam Leffler's FlexFAX software. For more information, 25958363Seric see below. 26058087Seric 26158363Seric 26257246Seric+----------+ 26357246Seric| FEATURES | 26457246Seric+----------+ 26551268Seric 26657246SericSpecial features can be requested using the "FEATURE" macro. For 26757246Sericexample, the .mc line: 26857246Seric 26957246Seric FEATURE(use_cw_file) 27057246Seric 27157246Serictells sendmail that you want to have it read an /etc/sendmail.cw 27258782Sericfile to get values for class $=w. The FEATURE may contain a single 27358782Sericoptional parameter -- for example: 27457246Seric 27558782Seric FEATURE(mailertable, dbm /usr/lib/mailertable) 27658782Seric 27758782SericAvailable features are: 27858782Seric 27957246Sericuse_cw_file Read the file /etc/sendmail.cw file to get alternate 28057246Seric names for this host. This might be used if you were 28157246Seric on a host that MXed for a dynamic set of other 28257246Seric hosts. If the set is static, just including the line 28357246Seric "Cw<name1> <name2> ..." is probably superior. 28458408Seric The actual filename can be overridden by redefining 28558408Seric confCW_FILE. 28664324Seric 28758087Sericredirect Reject all mail addressed to "address.REDIRECT" with 28858087Seric a ``551 User not local; please try <address>'' message. 28958087Seric If this is set, you can alias people who have left 29058087Seric to their new address with ".REDIRECT" appended. 29164324Seric 29258284Sericnouucp Don't do anything special with UUCP addresses at all. 29364324Seric 29459080Sericnocanonify Don't pass addresses to $[ ... $] for canonification. 29559080Seric This would generally only be used by sites that only 29659080Seric act as mail gateways or which have user agents that do 29764028Seric full canonification themselves. You may also want to 29864028Seric use "define(`confBIND_OPTS',`-DNSRCH -DEFNAMES')" to 29964028Seric turn off the usual resolver options that do a similar 30064028Seric thing. 30164324Seric 30258526Sericnotsticky By default, email sent to "user@local.host" are marked 30358526Seric as "sticky" -- that is, the local addresses aren't 30458526Seric matched against UDB and don't go through ruleset 5. 30558526Seric This features disables this treatment. It would 30658526Seric normally be used on network gateway machines. 30764324Seric 30858782Sericmailertable Include a "mailer table" which can be used to override 30958782Seric routing for particular domains. The argument of the 31058782Seric FEATURE may be the key definition. If none is specified, 31158782Seric the definition used is: 31264164Seric hash -o /etc/mailertable 31363761Seric Keys in this database are fully qualified domain names 31463761Seric or partial domains preceded by a dot -- for example, 31563761Seric "vangogh.CS.Berkeley.EDU" or ".CS.Berkeley.EDU". 31663761Seric Values must be of the form: 31758782Seric mailer:domain 31863761Seric where "mailer" is the internal mailer name, and "domain" 31963761Seric is where to send the message. These maps are not 32063761Seric reflected into the message header. 32164324Seric 32263761Sericdomaintable Include a "domain table" which can be used to provide 32363761Seric full domains on unqualified (single word) hosts. The 32463761Seric argument of the FEATURE may be the key definition. If 32563761Seric none is specified, the definition used is: 32664164Seric hash -o /etc/domaintable 32763761Seric The key in this table is the unqualified host name; the 32863761Seric value is the fully qualified domain. Anything in the 32963761Seric domaintable is reflected into headers; that is, this 33063761Seric is done in ruleset 3. 33164324Seric 33259034Sericbitdomain Look up bitnet hosts in a table to try to turn them into 33359034Seric internet addresses. The table can be built using the 33464153Seric bitdomain program contributed by John Gardiner Myers. 33559034Seric The argument of the FEATURE may be the key definition; if 33659034Seric none is specified, the definition used is: 33764164Seric hash -o /etc/bitdomain.db 33859034Seric Keys are the bitnet hostname; values are the corresponding 33959034Seric internet hostname. 34064324Seric 34159037Sericuucpdomain Similar feature for UUCP hosts. The default map definition 34259037Seric is: 34364164Seric hash -o /etc/uudomain.db 34459037Seric At the moment there is no automagic tool to build this 34559037Seric database. 34664324Seric 34760263Sericalways_add_domain 34860263Seric Include the local host domain even on locally delivered 34960263Seric mail. Normally it is not added unless it is already 35060263Seric present. 35164324Seric 35263761Sericallmasquerade If masquerading is enabled (using MASQUERADE_AS), this 35363761Seric feature will cause recipient addresses to also masquerade 35463761Seric as being from the masquerade host. Normally they get 35563761Seric the local hostname. Although this may be right for 35663761Seric ordinary users, it can break local aliases. For example, 35763761Seric if you send to "localalias", the originating sendmail will 35863761Seric find that alias and send to all members, but send the 35963761Seric message with "To: localalias@masqueradehost". Since that 36063761Seric alias likely does not exist, replies will fail. Use this 36163761Seric feature ONLY if you can guarantee that the ENTIRE 36263761Seric namespace on your masquerade host supersets all the 36363761Seric local entries. 36464324Seric 36564153Sericnodns We aren't running DNS at our site (for example, 36664153Seric we are UUCP-only connected). It's hard to consider 36764153Seric this a "feature", but hey, it had to go somewhere. 36857246Seric 36964324Sericnullclient This is a special case -- it creates a stripped down 37064324Seric configuration file containing nothing but support for 37164394Seric forwarding all mail to a central hub via a local 37264394Seric SMTP-based network. The argument is the name of that 37364394Seric hub. 37464394Seric 37564394Seric The only other feature that should be used in conjunction 37664394Seric with this one is "nocanonify" (this causes addresses to 37764394Seric be sent unqualified via the SMTP connection; normally 37864394Seric they are qualifed with the masquerade name, which 37964394Seric defaults to the name of the hub machine). No mailers 38064394Seric should be defined. No aliasing or forwarding is done. 38157246Seric 38264324Seric 38357246Seric+-------+ 38457246Seric| HACKS | 38557246Seric+-------+ 38657246Seric 38757246SericSome things just can't be called features. To make this clear, 38857247Sericthey go in the hack subdirectory and are referenced using the HACK 38957246Sericmacro. These will tend to be site-dependent. The release 39057246Sericincludes the Berkeley-dependent "cssubdomain" hack (that makes 39157246Sericsendmail accept local names in either Berkeley.EDU or CS.Berkeley.EDU; 39257246Sericthis is intended as a short-term aid while we move hosts into 39357246Sericsubdomains. 39457246Seric 39558087Seric 39657246Seric+--------------------+ 39757246Seric| SITE CONFIGURATION | 39857246Seric+--------------------+ 39957246Seric 40057246SericComplex sites will need more local configuration information, such as 40157246Sericlists of UUCP hosts they speak with directly. This can get a bit more 40257246Serictricky. For an example of a "complex" site, see cf/ucbvax.mc. 40357246Seric 40457246SericThe SITECONFIG macro allows you to indirectly reference site-dependent 40557246Sericconfiguration information stored in the siteconfig subdirectory. For 40657246Sericexample, the line 40757246Seric 40857246Seric SITECONFIG(uucp.ucbvax, ucbvax, U) 40957246Seric 41057246Sericreads the file uucp.ucbvax for local connection information. The 41157246Sericsecond parameter is the local name (in this case just "ucbvax" since 41257246Sericit is locally connected, and hence a UUCP hostname) and the name of 41357246Sericthe class in which to store the host information. Another SITECONFIG 41457246Sericline reads 41557246Seric 41657246Seric SITECONFIG(uucp.ucbarpa, ucbarpa.Berkeley.EDU, W) 41757246Seric 41857246SericThis says that the file uucp.ucbarpa contains the list of UUCP sites 41957246Sericconnected to ucbarpa.Berkeley.EDU. The $=W class will be used to 42057246Sericstore this list. [The machine ucbarpa is gone now, but I've left 42157246Sericthis out-of-date configuration file around to demonstrate how you 42257246Sericmight do this.] 42357246Seric 42457246SericThe siteconfig file (e.g., siteconfig/uucp.ucbvax.m4) contains nothing 42557246Sericmore than a sequence of SITE macros describing connectivity. For 42657246Sericexample: 42757246Seric 42857246Seric SITE(cnmat) 42957246Seric SITE(sgi olympus) 43057246Seric 43157246SericThe second example demonstrates that you can use two names on the 43257246Sericsame line; these are usually aliases for the same host (or are at 43357246Sericleast in the same company). 43457246Seric 43558087Seric 43657246Seric+-------------------+ 43757246Seric| TWEAKING RULESETS | 43857246Seric+-------------------+ 43957246Seric 44051268SericFor more complex configurations, you can define special rules. 44151268SericThe macro LOCAL_RULE_3 introduces rules that are used in canonicalizing 44251268Sericthe names. Any modifications made here are reflected in the header. 44351268Seric 44451268SericA common use is to convert old UUCP addreses to SMTP addresses using 44551268Sericthe UUCPSMTP macro. For example: 44651268Seric 44751268Seric LOCAL_RULE_3 44851268Seric UUCPSMTP(decvax, decvax.dec.com) 44951268Seric UUCPSMTP(research, research.att.com) 45051268Seric 45151268Sericwill cause addresses of the form "decvax!user" and "research!user" 45251268Sericto be converted to "user@decvax.dec.com" and "user@research.att.com" 45351268Sericrespectively. 45451268Seric 45557246SericThis could also be used to look hosts in a database map: 45657246Seric 45757246Seric LOCAL_RULE_3 45857246Seric R$* < @ $+ > $* $: $1 < @ $(hostmap $2 $) > $3 45957246Seric 46057246SericThis map would be defined in the LOCAL_CONFIG portion, as shown below. 46157246Seric 46251268SericSimilarly, LOCAL_RULE_0 can be used to introduce new parsing rules. 46351268SericFor example, new rules are needed to parse hostnames that you accept 46451309Sericvia MX records. For example, you might have: 46551268Seric 46651309Seric LOCAL_RULE_0 46751309Seric R$+ < @ cnmat.Berkeley.EDU > $#uucp $@ cnmat $: $1 46851309Seric 46951309SericYou would use this if you had installed an MX record for cnmat.Berkeley.EDU 47051309Sericpointing at this host; this rule catches the message and forwards it on 47151309Sericusing UUCP. 47251309Seric 47358681SericYou can also tweak rulesets 1 and 2 using LOCAL_RULE_1 and LOCAL_RULE_2. 47458681SericThese rulesets are normally empty. 47558681Seric 47657246SericA similar macro is LOCAL_CONFIG. This introduces lines added after the 47757246Sericboilerplate option setting but before rulesets, and can be used to 47857945Sericdeclare local database maps or whatever. For example: 47951268Seric 48057246Seric LOCAL_CONFIG 48157246Seric Khostmap hash /etc/hostmap.db 48257246Seric Kyplocal nis -m hosts.byname 48351220Seric 48458087Seric 48557246Seric+---------------------------+ 48657246Seric| MASQUERADING AND RELAYING | 48757246Seric+---------------------------+ 48857246Seric 48957246SericYou can have your host masquerade as another using 49057246Seric 49157246Seric MASQUERADE_AS(host.domain) 49257246Seric 49357246SericThis causes outgoing SMTP mail to be labelled as coming from the 49457246Sericindicated domain, rather than $j. One normally masquerades as one 49557246Sericof your own subdomains (for example, it's unlikely that I would 49657246Sericchoose to masquerade as an MIT site). 49757246Seric 49864153SericThe masquerade name is not normally canonified, so it is important 49964153Sericthat it be your One True Name, that is, fully qualified and not a 50064153SericCNAME. 50164153Seric 50257246Sericthere are always users that need to be "exposed" -- that is, their 50357246Sericinternal site name should be displayed instead of the masquerade name. 50457246SericRoot is an example. You can add users to this list using 50557246Seric 50657246Seric EXPOSED_USER(usernames) 50757246Seric 50857246SericThis adds users to class E; you could also use something like 50957246Seric 51057246Seric FE/etc/sendmail.cE 51157246Seric 51257246SericYou can also arrange to relay all unqualified names (that is, names 51357246Sericwithout @host) to a relay host. For example, if you have a central 51457246Sericemail server, you might relay to that host so that users don't have 51557246Sericto have .forward files or aliases. You can do this using 51657246Seric 51758071Seric define(`LOCAL_RELAY', mailer:hostname) 51857246Seric 51958071SericThe ``mailer:'' can be omitted, in which case the mailer defaults to 52058071Seric"smtp". There are some user names that you don't want relayed, perhaps 52158071Sericbecause of local aliases. A common example is root, which may be 52258071Sericlocally aliased. You can add entries to this list using 52357246Seric 52457246Seric LOCAL_USER(usernames) 52557246Seric 52657246SericThis adds users to class L; you could also use something like 52757246Seric 52857246Seric FL/etc/sendmail.cL 52957246Seric 53064153SericIf you want all incoming mail sent to a centralized hub, as for a 53164153Sericshared /var/spool/mail scheme, use 53257591Seric 53358071Seric define(`MAIL_HUB', mailer:hostname) 53457591Seric 53558071SericAgain, ``mailer:'' defaults to "smtp". If you define both LOCAL_RELAY 53658071Sericand MAIL_HUB, unqualified names and names in class L will be sent to 53758071Sericthe LOCAL_RELAY and other local names will be sent to MAIL_HUB. For 53858071Sericexample, if are on machine mastodon.CS.Berkeley.EDU, the following 53958071Sericcombinations of settings will have the indicated effects: 54057591Seric 54157591Sericemail sent to.... eric eric@mastodon.CS.Berkeley.EDU 54257591Seric 54357591SericLOCAL_RELAY set to mail.CS.Berkeley.EDU (delivered locally) 54457591Sericmail.CS.Berkeley.EDU 54557591Seric 54657591SericMAIL_HUB set to mammoth.CS.Berkeley.EDU mammoth.CS.Berkeley.EDU 54757591Sericmammoth.CS.Berkeley.EDU 54857591Seric 54957591SericBoth LOCAL_RELAY and mail.CS.Berkeley.EDU mammoth.CS.Berkeley.EDU 55057591SericMAIL_HUB set as above 55157591Seric 55264153SericIf you want all outgoing mail to go to a central relay site, define 55364153SericSMART_HOST as well. Briefly: 55458071Seric 55564153Seric LOCAL_RELAY applies to unqualifed names (e.g., "eric"). 55664153Seric MAIL_HUB applies to names qualified with the name of the 55764153Seric local host (e.g., "eric@mastodon.CS.Berkeley.EDU"). 55864153Seric SMART_HOST applies to names qualified with other hosts. 55964153Seric 56064153SericHowever, beware that other relays (e.g., UUCP_RELAY, BITNET_RELAY, and 56164153SericFAX_RELAY) take precedence over SMART_HOST, so if you really want 56264153Sericabsolutely everything to go to a single central site you will need to 56364153Sericunset all the other relays -- or better yet, find or build a minimal 56464153Sericconfig file that does this. 56564153Seric 56664153Seric 56758071Seric+-------------------------------+ 56858071Seric| NON-SMTP BASED CONFIGURATIONS | 56958071Seric+-------------------------------+ 57058071Seric 57158071SericThese configuration files are designed primarily for use by SMTP-based 57258071Sericsites. I don't pretend that they are well tuned for UUCP-only or 57358071SericUUCP-primarily nodes (the latter is defined as a small local net 57458071Sericconnected to the rest of the world via UUCP). However, there is one 57558071Serichook to handle some special cases. 57658071Seric 57758071SericYou can define a ``smart host'' that understands a richer address syntax 57858071Sericusing: 57958071Seric 58058071Seric define(`SMART_HOST', mailer:hostname) 58158071Seric 58264028SericIn this case, the ``mailer:'' defaults to "relay". Any messages that 58358071Sericcan't be handled using the usual UUCP rules are passed to this host. 58458071Seric 58558071SericIf you are on a local SMTP-based net that connects to the outside 58658071Sericworld via UUCP, you can use LOCAL_NET_CONFIG to add appropriate rules. 58758071SericFor example: 58858071Seric 58958071Seric define(`SMART_HOST', suucp:uunet) 59058071Seric LOCAL_NET_CONFIG 59163761Seric R$* < @ $* .$m. > $* $#smtp $@ $2.$m. $: $1 < @ $2.$m. > $3 59258071Seric 59358071SericThis will cause all names that end in your domain name ($m) via 59458071SericSMTP; anything else will be sent via suucp (smart UUCP) to uunet. 59563761SericIf you have FEATURE(nocanonify), you may need to omit the dots after 59663761Sericthe $m. If you are running a local DNS inside your domain which is 59763761Sericnot otherwise connected to the outside world, you probably want to 59863761Sericuse: 59958071Seric 60063761Seric define(`SMART_HOST', smtp:fire.wall.com) 60163761Seric LOCAL_NET_CONFIG 60263761Seric R$* < @ $* . > $* $#smtp $@ $2. $: $1 < @ $2. > $3 60358071Seric 60463761SericThat is, send directly only to things you found in your DNS lookup; 60563761Sericanything else goes through SMART_HOST. 60663761Seric 60764153SericIf you are not running DNS at all, it is important to use 60864153SericFEATURE(nodns) to avoid having sendmail queue everything waiting 60964153Sericfor the name server to come up. 61063761Seric 61164153Seric 61264259Seric+-----------+ 61364259Seric| WHO AM I? | 61464259Seric+-----------+ 61564259Seric 61664259SericNormally, the $j macro is automatically defined to be your fully 61764259Sericqualified domain name (FQDN). Sendmail does this by getting your 61864259Serichost name using gethostname and then calling gethostbyname on the 61964259Sericresult. For example, in some environments gethostname returns 62064259Sericonly the root of the host name (such as "foo"); gethostbyname is 62164259Sericsupposed to return the FQDN ("foo.bar.com"). In some (fairly rare) 62264259Sericcases, gethostbyname may fail to return the FQDN. In this case 62364259Sericyou MUST define confDOMAIN_NAME to be your fully qualified domain 62464259Sericname. This is usually done using: 62564259Seric 62664259Seric Dmbar.com 62764259Seric define(`confDOMAIN_NAME', `$w.$m')dnl 62864259Seric 62964259Seric 63064028Seric+--------------------+ 63164028Seric| USING MAILERTABLES | 63264028Seric+--------------------+ 63364028Seric 63464028SericTo use FEATURE(mailertable), you will have to create an external 63564028Sericdatabase containing the routing information for various domains. 63664028SericFor example, a mailertable file in text format might be: 63764028Seric 63864028Seric .my.domain xnet:%1.my.domain 63964028Seric uuhost1.my.domain suucp:uuhost1 64064028Seric .bitnet smtp:relay.bit.net 64164028Seric 64264028SericThis should normally be stored in /etc/mailertable. The actual 64364028Sericdatabase version of the mailertable is built using: 64464028Seric 64564028Seric makemap hash /etc/mailertable.db < /etc/mailertable 64664028Seric 64764028SericThe semantics are simple. Any LHS entry that does not begin with 64864028Serica dot matches the full host name indicated. LHS entries beginning 64964028Sericwith a dot match anything ending with that domain name -- that is, 65064028Sericthey can be thought of as having a leading "*" wildcard. Matching 65164028Sericis done in order of most-to-least qualified -- for example, even 65264028Sericthough ".my.domain" is listed first in the above example, an entry 65364028Sericof "uuhost1.my.domain" will match the second entry since it is 65464028Sericmore explicit. 65564028Seric 65664028SericThe RHS should always be a "mailer:host" pair. The mailer is the 65764028Sericconfiguration name of a mailer (that is, an `M' line in the 65864028Sericsendmail.cf file). The "host" will be the hostname passed to 65964028Sericthat mailer. In domain-based matches (that is, those with leading 66064028Sericdots) the "%1" may be used to interpolate the wildcarded part of 66164028Sericthe host name. For example, the first line above sends everything 66264028Sericaddressed to "anything.my.domain" to that same host name, but using 66364028Sericthe (presumably experimental) xnet mailer. 66464028Seric 66564028Seric 66664153Seric+--------------------------------+ 66764153Seric| USING USERDB TO MAP FULL NAMES | 66864153Seric+--------------------------------+ 66964153Seric 67064153SericThe user database was not originally intended for mapping full names 67164153Sericto login names (e.g., Eric.Allman => eric), but some people are using 67264153Sericit that way. (I would recommend that you set up aliases for this 67364153Sericpurpose instead -- since you can specify multiple alias files, this 67464153Sericis fairly easy.) The intent was to locate the default maildrop at 67564153Serica site, but allow you to override this by sending to a specific host. 67664153Seric 67764153SericIf you decide to set up the user database in this fashion, it is 67864153Sericimperative that you also specify FEATURE(notsticky) -- otherwise, 67964153Serice-mail sent to Full.Name@local.host.name will be rejected. 68064153Seric 68164259SericTo build the internal form of the user databae, use: 68264153Seric 68364259Seric makemap btree /usr/data/base.db < /usr/data/base.txt 68464259Seric 68564259Seric 68658363Seric+------------------+ 68758363Seric| FlexFAX SOFTWARE | 68858363Seric+------------------+ 68958363Seric 69058363SericSam Leffler's FlexFAX software is still in beta test -- but he expects a 69158363Sericpublic version out "later this week" [as of 3/1/93]. The following 69258363Sericblurb is direct from Sam: 69358363Seric 694*64498Seric $Header: /usr/people/sam/fax/RCS/HOWTO,v 1.14 93/05/24 11:42:16 sam Exp $ 69558363Seric 69658363Seric How To Obtain This Software (in case all you get is this file) 697*64498Seric -------------------------------------------------------------- 69858363Seric The source code is available for public ftp on 699*64498Seric sgi.com sgi/fax/v2.1.src.tar.Z 70058363Seric (192.48.153.1) 70158363Seric 70258363Seric You can also obtain inst'able images for Silicon Graphics machines from 703*64498Seric sgi.com sgi/fax/v2.1.inst.tar 70458363Seric (192.48.153.1) 70558363Seric 70658363Seric For example, 70758363Seric % ftp -n sgi.com 70858363Seric .... 70958363Seric ftp> user anonymous 71058363Seric ... <type in password> 71158363Seric ftp> cd sgi/fax 71258363Seric ftp> binary 713*64498Seric ftp> get v2.1.src.tar.Z 71458363Seric 715*64498Seric In general, the latest version of the 2.1 release of the software is 716*64498Seric always available as "v2.1.src.tar.Z" or "v2.1.inst.tar" in the ftp 717*64498Seric directory. This file is a link to the appropriate released version (so 718*64498Seric don't waste your time retrieving the linked file as well!) Any files of 719*64498Seric the form v2.1.*.patch are shell scripts that can be used to patch older 720*64498Seric versions of the source code. For example, the file v2.1.0.patch would 721*64498Seric contain patches to update v2.1.0.tar.Z. (Note to beta testers: this is 722*64498Seric different than the naming conventions used during beta testing.) Patch 723*64498Seric files only work to go between consecutive versions, so if you are 724*64498Seric multiple versions behind the latest release, you will need to apply 725*64498Seric each patch file between your current version and the latest. 726*64498Seric 727*64498Seric 728*64498Seric Obtaining the Software by Electronic Mail 729*64498Seric ----------------------------------------- 730*64498Seric Do not send me requests for the software; they will be ignored (without 731*64498Seric response). If you cannot use FTP at all, there is a service called 732*64498Seric "ftpmail" available from gatekeeper.dec.com: you can send e-mail to 733*64498Seric this machine and it will use FTP to retrieve files for you and send you 734*64498Seric the files back again via e-mail. To find out more about the ftpmail 73558363Seric service, send a message to "ftpmail@gatekeeper.dec.com" whose body 73658363Seric consists of the single line "help". 73758363Seric 738*64498Seric 739*64498Seric Obtaining the Software Within Silicon Graphics 740*64498Seric ---------------------------------------------- 74158363Seric Internal to Silicon Graphics there are inst'able images on the host 742*64498Seric flake.asd in the directory /usr/dist. Thus you can do something like: 74358363Seric 744*64498Seric % inst -f flake.asd.sgi.com:/usr/dist/flexfax 74558363Seric 746*64498Seric to install the latest version of the software on your machine. 74758363Seric 748*64498Seric 749*64498Seric What to do Once You've Retrieved Stuff 750*64498Seric -------------------------------------- 75158363Seric The external distributions come in a compressed or uncompressed tar 75258363Seric file. To extract the source distribution: 75358363Seric 754*64498Seric % zcat v2.1.src.tar.Z | tar xf - 75558363Seric 75658363Seric (uncompress and extract individual files in current directory). To 75758363Seric unpack and install the client portion of the inst'able distribution: 75858363Seric 75958363Seric % mkdir dist 760*64498Seric % cd dist; tar xf ../v2.1.inst.tar; cd .. 76158363Seric % inst -f dist/flexfax 76258363Seric ... 76358363Seric inst> go 76458363Seric 76558363Seric (Note, the dist subdirectory is because some versions of inst fail if 766*64498Seric the files are in the current directory.) Server binaries are also 767*64498Seric included in the inst'able images as flexfax.server.*. They are not 768*64498Seric installed by default, so to get them also you need to do: 76958363Seric 77058363Seric % inst -f flexfax 77158363Seric ... 77258363Seric inst> install flexfax.server.* 77358363Seric inst> go 77458363Seric 775*64498Seric The SGI binaries were built for Version 4.0.5H of the IRIX operating 77658363Seric system. They should work w/o problem on earlier versions of the 77758363Seric system, but I have not fully tested this. Also, note that to install a 77858363Seric server on an SGI machine, you need to have installed the Display 77958363Seric PostScript execution environment product (dps_eoe). Otherwise, the fax 78058363Seric server will not be able to convert PostScript to facsimile for 78158363Seric transmission. 78258363Seric 783*64498Seric If you are working from the source distribution, look at the file 784*64498Seric README in the top of the source tree. If you are working from the inst 785*64498Seric images, the subsystem flexfax.man.readme contains the README file and 786*64498Seric other useful pieces of information--the installed files are placed in 787*64498Seric the directory /usr/local/doc/flexfax). Basically you will need to run 788*64498Seric the faxaddmodem script to setup and configure your fax modem. Consult 789*64498Seric the README file and the manual page for faxaddmodem for information. 79058363Seric 79158363Seric 792*64498Seric FlexFAX Mail List 793*64498Seric ----------------- 79458363Seric A mailing list for users of this software is located on sgi.com. 79558363Seric If you want to join this mailing list or have a list-related request 79658363Seric such as getting your name removed from it, send a request to 79758363Seric 798*64498Seric majordomo@whizzer.wpd.sgi.com 79958363Seric 800*64498Seric For example, to subscribe, send the line "subscribe flexfax" in 801*64498Seric the body of your message. The line "help" will return a list of 802*64498Seric the commands understood by the mailing list management software. 803*64498Seric 80458363Seric Submissions (including bug reports) should be directed to: 80558363Seric 80658363Seric flexfax@sgi.com 80758363Seric 808*64498Seric When corresponding about this software please always specify what 809*64498Seric version you have, what system you're running on, and, if the problem is 810*64498Seric specific to your modem, identify the modem and firmware revision. 81158363Seric 812*64498Seric 81357945Seric+--------------------------------+ 81457945Seric| TWEAKING CONFIGURATION OPTIONS | 81557945Seric+--------------------------------+ 81657945Seric 81757945SericThere are a large number of configuration options that don't normally 81857945Sericneed to be changed. However, if you feel you need to tweak them, you 81957945Sericcan define the following M4 variables. This list is shown in four 82057945Sericcolumns: the name you define, the default value for that definition, 82157945Sericthe option or macro that is affected (either Ox for an option or Dx 82257945Sericfor a macro), and a brief description. Greater detail of the semantics 82357945Sericcan be found in the Installation and Operations Guide. 82457945Seric 82563582SericSome options are likely to be deprecated in future versions -- that is, 82663582Sericthe option is only included to provide back-compatibility. These are 82763582Sericmarked with "*". 82863582Seric 82957945SericM4 Variable Name Default Mac/Opt Description 83057945SericconfMAILER_NAME MAILER-DAEMON Dn The sender name used for 83157945Seric internally generated 83257945Seric outgoing messages. 83358681SericconfFROM_LINE From $g $d Dl The From_ line used when 83458681Seric sending to files or programs. 83557945SericconfFROM_HEADER $?x$x <$g>$|$g$. The format of an internally 83657945Seric Dq generated From: address. 83757945SericconfOPERATORS .:%@!^/[] Do Address operator characters. 83864153SericconfSMTP_LOGIN_MSG $j Sendmail $v/$Z ready at $b 83957945Seric De The initial (spontaneous) 84057945Seric SMTP greeting message. 84159743SericconfSEVEN_BIT_INPUT False O7 Force input to seven bits? 84257945SericconfALIAS_WAIT 10 Oa Wait (in minutes) for alias 84357945Seric file rebuild. 84458087SericconfMIN_FREE_BLOCKS 4 Ob Minimum number of free blocks 84558087Seric on queue filesystem to accept 84658087Seric SMTP mail. 84757945SericconfBLANK_SUB . OB Blank (space) substitution 84857945Seric character. 84957945SericconfCON_EXPENSIVE False Oc Connect immediately to 85057945Seric mailers marked expensive? 85157945SericconfCHECKPOINT_INTERVAL 10 OC Checkpoint queue files 85257945Seric every N recipients. 85357945SericconfDELIVERY_MODE background Od Default delivery mode. 85457945SericconfAUTO_REBUILD False OD Automatically rebuild 85557945Seric alias file if needed. 85657945SericconfERROR_MODE (undefined) Oe Error message mode. 85757945SericconfERROR_MESSAGE (undefined) OE Error message header/file. 85857945SericconfSAVE_FROM_LINES False Of Save extra leading 85957945Seric From_ lines. 86057945SericconfTEMP_FILE_MODE 0600 OF Temporary file mode. 86157945SericconfDEF_GROUP_ID 1 Og Default group id. 86257945SericconfMATCH_GECOS False OG Match GECOS field. 86357945SericconfMAX_HOP 17 Oh Maximum hop count. 86463582SericconfIGNORE_DOTS False Oi * Ignore dot as terminator 86557945Seric for incoming messages? 86657945SericconfBIND_OPTS (empty) OI Default options for BIND. 86763582SericconfMIME_FORMAT_ERRORS True Oj * Send error messages as MIME- 86859743Seric encapsulated messages per 86959743Seric RFC 1344. 87064153SericconfFORWARD_PATH (undefined) OJ The colon-separated list of 87164153Seric places to search for .forward 87264153Seric files. 87357945SericconfMCI_CACHE_SIZE 2 Ok Size of open connection cache. 87457945SericconfMCI_CACHE_TIMEOUT 5m OK Open connection cache timeout. 87563582SericconfUSE_ERRORS_TO False Ol * Use the Errors-To: header to 87663582Seric deliver error messages. This 87763582Seric should not be necessary because 87863582Seric of general acceptance of the 87963582Seric envelope/header distinction. 88057945SericconfLOG_LEVEL 9 OL Log level. 88157945SericconfME_TOO False Om Include sender in group 88257945Seric expansions. 88357945SericconfCHECK_ALIASES True On Check RHS of aliases when 88457945Seric running newaliases. 88563582SericconfOLD_STYLE_HEADERS True Oo * Assume that headers without 88657945Seric special chars are old style. 88758859SericconfDAEMON_OPTIONS (undefined) OO SMTP daemon options. 88858806SericconfPRIVACY_FLAGS authwarnings Op Privacy flags. 88957945SericconfCOPY_ERRORS_TO (undefined) OP Address for additional copies 89057945Seric of all error messages. 89157945SericconfQUEUE_FACTOR (undefined) Oq Slope of queue-only function 89258116SericconfREAD_TIMEOUT (undefined) Or SMTP read timeouts. 89363582SericconfSAFE_QUEUE True Os * Commit all messages to disk 89457945Seric before forking. 89558806SericconfMESSAGE_TIMEOUT 5d/4h OT Timeout for messages before 89658806Seric sending error/warning message. 89759317SericconfTIME_ZONE USE_SYSTEM Ot Time zone info -- can be 89857945Seric USE_SYSTEM to use the system's 89957945Seric idea, USE_TZ to use the user's 90057945Seric TZ envariable, or something 90157945Seric else to force that value. 90257945SericconfDEF_USER_ID 1 Ou Default user id. 90358718SericconfUSERDB_SPEC (undefined) OU User database specification. 90458859SericconfFALLBACK_MX (undefined) OV Fallback MX host. 90563857SericconfTRY_NULL_MX_LIST False Ow If we are the best MX for a 90663857Seric host and haven't made other 90763857Seric arrangements, try connecting 90863857Seric to the host directly; normally 90963857Seric this would be a config error. 91057945SericconfQUEUE_LA 8 Ox Load average at which queue-only 91157945Seric function kicks in. 91257945SericconfREFUSE_LA 12 OX Load average at which incoming 91357945Seric SMTP connections are refused. 91463582SericconfWORK_RECIPIENT_FACTOR 91563582Seric (undefined) Oy Cost of each recipient. 91663582SericconfSEPARATE_PROC False OY Run all deliveries in a 91757945Seric separate process. 91857945SericconfWORK_CLASS_FACTOR (undefined) Oz Priority multiplier for class. 91957945SericconfWORK_TIME_FACTOR (undefined) OZ Cost of each delivery attempt. 92058408SericconfCW_FILE /etc/sendmail.cw Name of file used to get the 92158408Seric Fw local additions to the $=w 92258408Seric class. 92364153SericconfSMTP_MAILER smtp - The mailer name used when 92463972Seric SMTP connectivity is required. 92563972Seric Either "smtp" or "esmtp". 92663999SericconfLOCAL_MAILER local - The mailer name used when 92763999Seric local connectivity is required. 92863999Seric Almost always "local". 92964028SericconfRELAY_MAILER relay - The default mailer name used 93064028Seric for relaying any mail (e.g., 93164028Seric to a BITNET_RELAY, a 93264028Seric SMART_HOST, or whatever). 93364028Seric This can reasonably be "suucp" 93464028Seric if you are on a UUCP-connected 93564028Seric site. 93664259SericconfDOMAIN_NAME (undefined) Dj If defined, sets $j. 93757945Seric 93858087Seric 93957246Seric+-----------+ 94057246Seric| HIERARCHY | 94157246Seric+-----------+ 94257246Seric 94351220SericWithin this directory are several subdirectories, to wit: 94451220Seric 94551220Sericm4 General support routines. These are typically 94651220Seric very important and should not be changed without 94757247Seric very careful consideration. 94851220Seric 94951220Sericcf The configuration files themselves. They have 95051220Seric ".mc" suffixes, and must be run through m4 to 95151220Seric become complete. The resulting output should 95251220Seric have a ".cf" suffix. 95351220Seric 95451220Sericostype Definitions describing a particular operating 95551220Seric system type. These should always be referenced 95651220Seric using the OSTYPE macro in the .mc file. Examples 95751220Seric include "bsd4.3", "bsd4.4", "sunos3.5", and 95851220Seric "sunos4.1". 95951220Seric 96051220Sericdomain Definitions describing a particular domain, referenced 96151220Seric using the DOMAIN macro in the .mc file. These are 96251220Seric site dependent; for example, we contribute "cs.exposed.m4" 96351220Seric and "cs.hidden.m4" which both describe hosts in the 96451220Seric CS.Berkeley.EDU subdomain; the former displays the local 96551220Seric hostname (e.g., mammoth.CS.Berkeley.EDU), whereas the 96651220Seric latter does its best to hide the identity of the local 96751220Seric workstation inside the CS subdomain. 96851220Seric 96951220Sericmailer Descriptions of mailers. These are referenced using 97051220Seric the MAILER macro in the .mc file. 97151220Seric 97251220Sericsh Shell files used when building the .cf file from the 97351220Seric .mc file in the cf subdirectory. 97451220Seric 97551220Sericfeature These hold special orthogonal features that you might 97651220Seric want to include. They should be referenced using 97751220Seric the FEATURE macro. 97851220Seric 97951220Serichack Local hacks. These can be referenced using the HACK 98051220Seric macro. They shouldn't be of more than voyeuristic 98151220Seric interest outside the .Berkeley.EDU domain, but who knows? 98251220Seric We've all got our own peccadilloes. 98351220Seric 98451268Sericsiteconfig Site configuration -- e.g., tables of locally connected 98551268Seric UUCP sites. 98651220Seric 98751268Seric 98857246Seric+------------------------+ 98957246Seric| ADMINISTRATIVE DETAILS | 99057246Seric+------------------------+ 99151220Seric 99251220SericThe following sections detail usage of certain internal parts of the 99351220Sericsendmail.cf file. Read them carefully if you are trying to modify 99451220Sericthe current model. If you find the above descriptions adequate, these 99551220Sericshould be {boring, confusing, tedious, ridiculous} (pick one or more). 99651220Seric 99751220SericRULESETS (* means built in to sendmail) 99851220Seric 99951220Seric 0 * Parsing 100051220Seric 1 * Sender rewriting 100151220Seric 2 * Recipient rewriting 100251220Seric 3 * Canonicalization 100351220Seric 4 * Post cleanup 100454839Seric 5 * Local address rewrite (after aliasing) 100560539Seric 1x mailer rules (sender qualification) 100660539Seric 2x mailer rules (recipient qualification) 100760539Seric 90 Mailertable host stripping 100860892Seric 96 Bottom half of Ruleset 3 (ruleset 6 in old sendmail) 100960892Seric 97 Hook for recursive ruleset 0 call (ruleset 7 in old sendmail) 101063857Seric 98 Local part of ruleset 0 (ruleset 8 in old sendmail) 101151220Seric 101251220Seric 101351220SericMAILERS 101451220Seric 101551220Seric 0 local, prog local and program mailers 101651220Seric 1 smtp SMTP channel 101758087Seric 2 uucp UNIX-to-UNIX Copy Program 101858087Seric 3 netnews Network News delivery 101958363Seric 4 fax Sam Leffler's FlexFAX software 102051220Seric 102151220Seric 102251220SericMACROS 102351220Seric 102451220Seric A 102551220Seric B Bitnet Relay 102651220Seric C CSNET Relay 102754839Seric D The local domain -- usually not needed 102851220Seric E 102958363Seric F FAX Relay 103051220Seric G 103157591Seric H mail Hub (for mail clusters) 103251220Seric I 103351220Seric J 103451220Seric K 103551220Seric L 103651220Seric M Masquerade (who I claim to be) 103751220Seric N 103851220Seric O 103951220Seric P 104051220Seric Q 104151220Seric R Relay (for unqualified names) 104258071Seric S Smart Host 104351220Seric T 104451309Seric U my UUCP name (if I have a UUCP connection) 104551309Seric V UUCP Relay (class V hosts) 104651220Seric W UUCP Relay (class W hosts) 104751220Seric X UUCP Relay (class X hosts) 104851309Seric Y UUCP Relay (all other hosts) 104951220Seric Z Version number 105051220Seric 105151220Seric 105251220SericCLASSES 105351220Seric 105451220Seric A 105551220Seric B 105651220Seric C 105751220Seric D 105857246Seric E addresses that should not seem to come from $M 105954839Seric F hosts we forward for 106051220Seric G 106151220Seric H 106251220Seric I 106351220Seric J 106451220Seric K 106551220Seric L addresses that should not be forwarded to $R 106651220Seric M 106751220Seric N 106851220Seric O operators that indicate network operations (cannot be in local names) 106960211Seric P top level pseudo-domains: BITNET, FAX, UUCP, etc. 107051220Seric Q 107151220Seric R 107251220Seric S 107351220Seric T 107451220Seric U locally connected UUCP hosts 107551309Seric V UUCP hosts connected to relay $V 107651309Seric W UUCP hosts connected to relay $W 107751309Seric X UUCP hosts connected to relay $X 107851309Seric Y locally connected smart UUCP hosts 107964153Seric Z locally connected domain-ized UUCP hosts 108054839Seric . the class containing only a dot 108151220Seric 108251220Seric 108351220SericM4 DIVERSIONS 108451220Seric 108558071Seric 1 Local host detection and resolution 108658071Seric 2 Local Ruleset 3 additions 108758071Seric 3 Local Ruleset 0 additions 108851268Seric 4 UUCP Ruleset 0 additions 108951309Seric 5 locally interpreted names (overrides $R) 109054839Seric 6 local configuration (at top of file) 109151220Seric 7 mailer definitions 109254839Seric 8 special local name recognition (late in ruleset 3) 109358681Seric 9 special local rulesets (1 and 2) 1094