151220Seric 251220Seric 357246Seric NEW SENDMAIL CONFIGURATION FILES 451220Seric 557246Seric Eric Allman <eric@CS.Berkeley.EDU> 651220Seric 7*58284Seric @(#)README 6.8 (Berkeley) 02/27/93 851220Seric 951220Seric 1057246SericThis document describes the sendmail configuration files being used 1157246Sericat Berkeley. These use features in the new (R6) sendmail, and although 1257246Sericthere is an ``OLDSENDMAIL'' mode, they haven't really been tested on 1357247Sericold versions of sendmail and cannot be expected to work well. 1451220Seric 1557246SericThese configuration files are probably not as general as previous 1657246Sericversions, and don't handle as many of the wierd cases automagically. 1757246SericI was able to simplify by them for two reasons. First, the network 1857246Serichas become more consistent -- for example, at this point, everyone 1957246Sericon the internet is supposed to be running a name server, so hacks to 2057246Serichandle NIC-registered hosts can go away. Second, I assumed that a 2157246Sericsubdomain would be running SMTP internally -- UUCP is presumed to be 2257246Serica long-haul protocol. I realize that this is not universal, but it 2357246Sericdoes describe the vast majority of sites with which I am familiar, 2457246Sericincluding those outside the US. 2551220Seric 2657246SericOf course, the downside of this is that if you do live in a wierd 2757246Sericworld, things are going to get wierder for you. I'm sorry about that, 2857246Sericbut at the time we at Berkeley had a problem, and it seemed like the 2957246Sericright thing to do. 3051220Seric 3157247SericThis package requires a post-V7 version of m4; if you are running the 3257247Seric4.2bsd, SysV.2, or 7th Edition version, I suggest finding a friend with 3357247Serica newer version. You can m4-expand on their system, then run locally. 3457247SericSunOS's /usr/5bin/m4 or BSD-Net/2's m4 both work. GNU m4 (which is a 3557247Sericlanguage unto itself) also works, but I don't intend to work so hard 3657247Sericto keep this up in the future. [Note to GNU folks: the construct 3757246Seric"define(`FOO')" should work without my having to add a null value.] 3851220Seric 39*58284SericIF YOU DON'T HAVE A BERKELEY MAKE, don't despair! Just run 40*58284Seric"m4 foo.mc > foo.cf" -- that should be all you need. 41*58284Seric 42*58284SericTo get started, you may want to look at tcpproto.mc (for TCP-only 43*58284Sericsites) and uucpproto.m4 (for UUCP-only sites). Others are versions 44*58284Sericthat we use at Berkeley, although not all are in current use. For 45*58284Sericexample, ucbarpa has gone away, but I've left ucbarpa.mc in because 46*58284Sericit demonstrates some interesting techniques. 47*58284Seric 4857246SericI'm not pretending that this README describes everything that these 4957246Sericconfiguration files can do; clever people can probably tweak them 5057246Sericto great effect. But it should get you started. 5157246Seric 5258087Seric 5357246Seric+--------------------------+ 5457246Seric| INTRODUCTION AND EXAMPLE | 5557246Seric+--------------------------+ 5657246Seric 5757246SericConfiguration files are contained in the subdirectory "cf", with a 5857246Sericsuffix ".mc". They must be run through "m4" to produce a ".cf" file. 5957246Seric 6051220SericLet's examine a typical .mc file (cf/cs-exposed.mc): 6151220Seric 6251220Seric divert(-1) 6351220Seric # 6451220Seric # Copyright (c) 1983 Eric P. Allman 6551220Seric # Copyright (c) 1988 The Regents of the University of California. 6651220Seric # All rights reserved. 6751220Seric # 6851220Seric # Redistribution and use in source and binary forms are permitted 6951220Seric # provided that the above copyright notice and this paragraph are 7051220Seric # duplicated in all such forms and that any documentation, 7151220Seric # advertising materials, and other materials related to such 7251220Seric # distribution and use acknowledge that the software was developed 7351220Seric # by the University of California, Berkeley. The name of the 7451220Seric # University may not be used to endorse or promote products derived 7551220Seric # from this software without specific prior written permission. 7651220Seric # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 7751220Seric # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 7851220Seric # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 7951220Seric # 8051220Seric 8157246SericThe divert(-1) will delete the crud in the resulting output file. 8257247SericThe copyright notice is what your lawyers require. Our lawyers require 8357246Sericthe one that I've included in my files. A copyleft is a copyright by 8457246Sericanother name. 8551220Seric 8657246SericThe next line MUST be 8757246Seric 8851220Seric include(`../m4/cf.m4') 8951220Seric 9057246SericThis will pull in the M4 macros you will need to make sense of 9157246Sericeverything else. As the saying goes, don't think about it, just 9257246Sericdo it. If you don't do it, don't bother reading the rest of this 9357246Sericfile. 9451220Seric 9556778Seric VERSIONID(`<SCCS or RCS version id>') 9651220Seric 9751220SericVERSIONID is a macro that stuffs the version information into the 9851220Sericresulting file. We use SCCS; you could use RCS, something else, or 9957246Sericomit it completely. This is not the same as the version id included 10057246Sericin SMTP greeting messages -- this is defined in m4/version.m4. 10151220Seric 10251268Seric DOMAIN(cs.exposed) 10351220Seric 10451220SericThis example exposes the host inside of the CS subdomain -- that is, 10551220Sericit doesn't try to hide the name of the workstation to the outside 10651220Sericworld. Changing this to DOMAIN(cs.hidden) would have made outgoing 10751220Sericmessages refer to "<username>@CS.Berkeley.EDU" instead of using the 10857246Sericlocal hostname. Internaly this is effected by using 10957246Seric"MASQUERADE_AS(CS.Berkeley.EDU)". 11051220Seric 11151268Seric MAILER(smtp) 11251220Seric 11351309SericThese describe the mailers used at the default CS site site. The 11451309Sericlocal mailer is always included automatically. 11551220Seric 11658087Seric 11757246Seric+--------+ 11857246Seric| OSTYPE | 11957246Seric+--------+ 12057246Seric 12151220SericNote that cf/cs-exposed.mc omits an OSTYPE macro -- this assumes 12251220Sericdefault Computer Science Division environment. There are several 12357247Sericexplicit environments available: bsd4.3, bsd4.4, hpux, irix, osf1, 12457247Sericriscos4.5, sunos3.5, sunos4.1, and ultrix4.1. These change things 12557247Sericlike the location of the alias file and queue directory. Some of 12657247Sericthese files are identical to one another. 12751220Seric 12857246SericOperating system definitions are easy to write. They may define 12957246Sericthe following variables (everything defaults, so an ostype file 13057246Sericmay be empty). 13151220Seric 13257246SericALIAS_FILE [/etc/aliases] The location of the text version 13357246Seric of the alias file. 13457246SericHELP_FILE [/usr/lib/sendmail.hf] The name of the file 13557246Seric containing information printed in response to 13657246Seric the SMTP HELP command. 13757246SericQUEUE_DIR [/var/spool/mqueue] The directory containing 13857246Seric queue files. 13957246SericSTATUS_FILE [/etc/sendmail.st] The file containing status 14057246Seric information. 14158087SericLOCAL_MAILER_PATH [/bin/mail] The program used to deliver local mail. 14257246SericLOCAL_MAILER_FLAGS [rn] The flags used by the local mailer. The 14357246Seric flags lsDFMm are always included. 14458087SericLOCAL_SHELL_PATH [/bin/sh] The shell used to deliver piped email. 14558087SericUSENET_MAILER_PATH [/usr/lib/news/inews] The name of the program 14658087Seric used to submit news. 14758087SericUSENET_MAILER_FLAGS [rlsDFMmn] The mailer flags for the usenet mailer. 14858087SericUSENET_MAILER_ARGS [-m -h -n] The command line arguments for the 14958087Seric usenet mailer. 15057246SericHOSTMAP_SPEC [dbm -o /etc/hostmap] The value for the builtin 15157246Seric hostmap key definition. You can redefine this 15257246Seric to change the class, flags, and filename of 15357246Seric the hostmap. The default flag (-o) makes this 15457246Seric map optional. 15557246Seric 15657246SericIn addition, the following boolean flags may be defined -- the value 15757246Sericis ignored. 15857246Seric 15957246SericNEED_DOMAIN If set, the $j macro is defined as $w.$D. 16057246Seric If not set, $j is defined as $w. If this is 16157246Seric set, the domain must be defined using the line 16257246Seric DD<domainname> (probably in the domain file, 16357246Seric but possibly in the .mc file). You will only 16457246Seric need this if you define your system hostname 16557246Seric without a domain (type "hostname" -- if it 16658087Seric has no dots in the output, you qualify) AND 16758087Seric if you are not running the nameserver AND if 16858087Seric the first (canonical) name in /etc/hosts for 16958087Seric your machine has no domain -- OR if you are 17058087Seric running Ultrix or OSF/1 sendmail. Either of 17158087Seric these is probably a mistake. 17257246Seric 17357246Seric+---------+ 17457246Seric| DOMAINS | 17557246Seric+---------+ 17657246Seric 17757246SericYou will probably want to collect domain-dependent defines into one 17857246Sericfile, referenced by the DOMAIN macro. For example, our Berkeley 17957246Sericdomain file includes definitions for several internal distinguished 18057246Serichosts: 18157246Seric 18257246SericUUCP_RELAY The host that will forward UUCP-addressed email. 18357246Seric If not defined, all UUCP sites must be directly 18457246Seric connected. 18557246SericBITNET_RELAY The host that will forward BITNET-addressed email. 18657246Seric If not defined, the .BITNET pseudo-domain won't work. 18757246SericCSNET_RELAY The host that will forward CSNET-addressed email. 18857246Seric If not defined, the .CSNET pseudo-domain won't work. 18957246SericLOCAL_RELAY The site that will handle unqualified names -- that 19057246Seric is, names with out an @domain extension. If not set, 19157246Seric they are assumed to belong on this machine. This 19257246Seric allows you to have a central site to store a 19357246Seric company- or department-wide alias database. This 19457246Seric only works at small sites, and there are better 19557246Seric methods. 19657246Seric 19757246SericThe domain file can also be used to define a domain name, if needed 19857982Seric(using "DD<domain>") and set certain site-wide features. If all hosts 19957982Sericat your site masquerade behind one email name, you could also use 20057982SericMASQUERADE_AS here. 20157246Seric 20257246Seric+---------+ 20357246Seric| MAILERS | 20457246Seric+---------+ 20557246Seric 20651220SericThere are fewer mailers supported in this version than the previous 20751220Sericversion, owing mostly to a simpler world. 20851220Seric 20951220Sericlocal The local and prog mailers. You will almost always 21051220Seric need these; the only exception is if you relay ALL 21157247Seric your mail to another site. This mailer is included 21257247Seric automatically. 21351220Seric 21451220Sericsmtp The Simple Mail Transport Protocol mailer. This does 21551220Seric not hide hosts behind a gateway or another other 21651220Seric such hack; it assumes a world where everyone is 21751220Seric running the name server. 21851220Seric 21951220Sericuucp The Unix-to-Unix Copy Program mailer. Actually, this 22051220Seric defines two mailers, "uucp" and "suucp". The latter 22151220Seric is for when you know that the UUCP mailer at the other 22251220Seric end can handle multiple recipients in one transfer. 22357246Seric When you invoke this, sendmail looks for all names in 22457246Seric the $=U class and sends them to the uucp mailer; all 22557246Seric names in the $=Y class are sent to suucp. Note that 22657246Seric this is a function of what version of rmail runs on 22757246Seric the receiving end, and hence may be out of your control. 22851220Seric 22958087Sericusenet Usenet (network news) delivery. If this is specified, 23058087Seric an extra rule is added to ruleset 0 that forwards all 23158087Seric local email for users named ``group.usenet'' to the 23258087Seric ``inews'' program. Note that this works for all groups, 23358087Seric and may be considered a security problem. 23458087Seric 23558087Seric 23657246Seric+----------+ 23757246Seric| FEATURES | 23857246Seric+----------+ 23951268Seric 24057246SericSpecial features can be requested using the "FEATURE" macro. For 24157246Sericexample, the .mc line: 24257246Seric 24357246Seric FEATURE(use_cw_file) 24457246Seric 24557246Serictells sendmail that you want to have it read an /etc/sendmail.cw 24657246Sericfile to get values for class $=w. Available features are: 24757246Seric 24857246Sericuse_cw_file Read the file /etc/sendmail.cw file to get alternate 24957246Seric names for this host. This might be used if you were 25057246Seric on a host that MXed for a dynamic set of other 25157246Seric hosts. If the set is static, just including the line 25257246Seric "Cw<name1> <name2> ..." is probably superior. 25358087Sericredirect Reject all mail addressed to "address.REDIRECT" with 25458087Seric a ``551 User not local; please try <address>'' message. 25558087Seric If this is set, you can alias people who have left 25658087Seric to their new address with ".REDIRECT" appended. 257*58284Sericnouucp Don't do anything special with UUCP addresses at all. 25857246Seric 25957246SericOther FEATUREs should be defined, but I was trying to keep these 26057246Sericconfig files fairly lean and mean. 26157246Seric 26258087Seric 26357246Seric+-------+ 26457246Seric| HACKS | 26557246Seric+-------+ 26657246Seric 26757246SericSome things just can't be called features. To make this clear, 26857247Sericthey go in the hack subdirectory and are referenced using the HACK 26957246Sericmacro. These will tend to be site-dependent. The release 27057246Sericincludes the Berkeley-dependent "cssubdomain" hack (that makes 27157246Sericsendmail accept local names in either Berkeley.EDU or CS.Berkeley.EDU; 27257246Sericthis is intended as a short-term aid while we move hosts into 27357246Sericsubdomains. 27457246Seric 27558087Seric 27657246Seric+--------------------+ 27757246Seric| SITE CONFIGURATION | 27857246Seric+--------------------+ 27957246Seric 28057246SericComplex sites will need more local configuration information, such as 28157246Sericlists of UUCP hosts they speak with directly. This can get a bit more 28257246Serictricky. For an example of a "complex" site, see cf/ucbvax.mc. 28357246Seric 28457246SericThe SITECONFIG macro allows you to indirectly reference site-dependent 28557246Sericconfiguration information stored in the siteconfig subdirectory. For 28657246Sericexample, the line 28757246Seric 28857246Seric SITECONFIG(uucp.ucbvax, ucbvax, U) 28957246Seric 29057246Sericreads the file uucp.ucbvax for local connection information. The 29157246Sericsecond parameter is the local name (in this case just "ucbvax" since 29257246Sericit is locally connected, and hence a UUCP hostname) and the name of 29357246Sericthe class in which to store the host information. Another SITECONFIG 29457246Sericline reads 29557246Seric 29657246Seric SITECONFIG(uucp.ucbarpa, ucbarpa.Berkeley.EDU, W) 29757246Seric 29857246SericThis says that the file uucp.ucbarpa contains the list of UUCP sites 29957246Sericconnected to ucbarpa.Berkeley.EDU. The $=W class will be used to 30057246Sericstore this list. [The machine ucbarpa is gone now, but I've left 30157246Sericthis out-of-date configuration file around to demonstrate how you 30257246Sericmight do this.] 30357246Seric 30457246SericThe siteconfig file (e.g., siteconfig/uucp.ucbvax.m4) contains nothing 30557246Sericmore than a sequence of SITE macros describing connectivity. For 30657246Sericexample: 30757246Seric 30857246Seric SITE(cnmat) 30957246Seric SITE(sgi olympus) 31057246Seric 31157246SericThe second example demonstrates that you can use two names on the 31257246Sericsame line; these are usually aliases for the same host (or are at 31357246Sericleast in the same company). 31457246Seric 31558087Seric 31657246Seric+-------------------+ 31757246Seric| TWEAKING RULESETS | 31857246Seric+-------------------+ 31957246Seric 32051268SericFor more complex configurations, you can define special rules. 32151268SericThe macro LOCAL_RULE_3 introduces rules that are used in canonicalizing 32251268Sericthe names. Any modifications made here are reflected in the header. 32351268Seric 32451268SericA common use is to convert old UUCP addreses to SMTP addresses using 32551268Sericthe UUCPSMTP macro. For example: 32651268Seric 32751268Seric LOCAL_RULE_3 32851268Seric UUCPSMTP(decvax, decvax.dec.com) 32951268Seric UUCPSMTP(research, research.att.com) 33051268Seric 33151268Sericwill cause addresses of the form "decvax!user" and "research!user" 33251268Sericto be converted to "user@decvax.dec.com" and "user@research.att.com" 33351268Sericrespectively. 33451268Seric 33557246SericThis could also be used to look hosts in a database map: 33657246Seric 33757246Seric LOCAL_RULE_3 33857246Seric R$* < @ $+ > $* $: $1 < @ $(hostmap $2 $) > $3 33957246Seric 34057246SericThis map would be defined in the LOCAL_CONFIG portion, as shown below. 34157246Seric 34251268SericSimilarly, LOCAL_RULE_0 can be used to introduce new parsing rules. 34351268SericFor example, new rules are needed to parse hostnames that you accept 34451309Sericvia MX records. For example, you might have: 34551268Seric 34651309Seric LOCAL_RULE_0 34751309Seric R$+ < @ cnmat.Berkeley.EDU > $#uucp $@ cnmat $: $1 34851309Seric 34951309SericYou would use this if you had installed an MX record for cnmat.Berkeley.EDU 35051309Sericpointing at this host; this rule catches the message and forwards it on 35151309Sericusing UUCP. 35251309Seric 35357246SericA similar macro is LOCAL_CONFIG. This introduces lines added after the 35457246Sericboilerplate option setting but before rulesets, and can be used to 35557945Sericdeclare local database maps or whatever. For example: 35651268Seric 35757246Seric LOCAL_CONFIG 35857246Seric Khostmap hash /etc/hostmap.db 35957246Seric Kyplocal nis -m hosts.byname 36051220Seric 36158087Seric 36257246Seric+---------------------------+ 36357246Seric| MASQUERADING AND RELAYING | 36457246Seric+---------------------------+ 36557246Seric 36657246SericYou can have your host masquerade as another using 36757246Seric 36857246Seric MASQUERADE_AS(host.domain) 36957246Seric 37057246SericThis causes outgoing SMTP mail to be labelled as coming from the 37157246Sericindicated domain, rather than $j. One normally masquerades as one 37257246Sericof your own subdomains (for example, it's unlikely that I would 37357246Sericchoose to masquerade as an MIT site). 37457246Seric 37557246Sericthere are always users that need to be "exposed" -- that is, their 37657246Sericinternal site name should be displayed instead of the masquerade name. 37757246SericRoot is an example. You can add users to this list using 37857246Seric 37957246Seric EXPOSED_USER(usernames) 38057246Seric 38157246SericThis adds users to class E; you could also use something like 38257246Seric 38357246Seric FE/etc/sendmail.cE 38457246Seric 38557246SericYou can also arrange to relay all unqualified names (that is, names 38657246Sericwithout @host) to a relay host. For example, if you have a central 38757246Sericemail server, you might relay to that host so that users don't have 38857246Sericto have .forward files or aliases. You can do this using 38957246Seric 39058071Seric define(`LOCAL_RELAY', mailer:hostname) 39157246Seric 39258071SericThe ``mailer:'' can be omitted, in which case the mailer defaults to 39358071Seric"smtp". There are some user names that you don't want relayed, perhaps 39458071Sericbecause of local aliases. A common example is root, which may be 39558071Sericlocally aliased. You can add entries to this list using 39657246Seric 39757246Seric LOCAL_USER(usernames) 39857246Seric 39957246SericThis adds users to class L; you could also use something like 40057246Seric 40157246Seric FL/etc/sendmail.cL 40257246Seric 40357591SericIf you want all mail sent to a centralized hub, as for a shared 40457591Seric/var/spool/mail scheme, use 40557591Seric 40658071Seric define(`MAIL_HUB', mailer:hostname) 40757591Seric 40858071SericAgain, ``mailer:'' defaults to "smtp". If you define both LOCAL_RELAY 40958071Sericand MAIL_HUB, unqualified names and names in class L will be sent to 41058071Sericthe LOCAL_RELAY and other local names will be sent to MAIL_HUB. For 41158071Sericexample, if are on machine mastodon.CS.Berkeley.EDU, the following 41258071Sericcombinations of settings will have the indicated effects: 41357591Seric 41457591Sericemail sent to.... eric eric@mastodon.CS.Berkeley.EDU 41557591Seric 41657591SericLOCAL_RELAY set to mail.CS.Berkeley.EDU (delivered locally) 41757591Sericmail.CS.Berkeley.EDU 41857591Seric 41957591SericMAIL_HUB set to mammoth.CS.Berkeley.EDU mammoth.CS.Berkeley.EDU 42057591Sericmammoth.CS.Berkeley.EDU 42157591Seric 42257591SericBoth LOCAL_RELAY and mail.CS.Berkeley.EDU mammoth.CS.Berkeley.EDU 42357591SericMAIL_HUB set as above 42457591Seric 42558071Seric 42658071Seric+-------------------------------+ 42758071Seric| NON-SMTP BASED CONFIGURATIONS | 42858071Seric+-------------------------------+ 42958071Seric 43058071SericThese configuration files are designed primarily for use by SMTP-based 43158071Sericsites. I don't pretend that they are well tuned for UUCP-only or 43258071SericUUCP-primarily nodes (the latter is defined as a small local net 43358071Sericconnected to the rest of the world via UUCP). However, there is one 43458071Serichook to handle some special cases. 43558071Seric 43658071SericYou can define a ``smart host'' that understands a richer address syntax 43758071Sericusing: 43858071Seric 43958071Seric define(`SMART_HOST', mailer:hostname) 44058071Seric 44158071SericIn this case, the ``mailer:'' defaults to "suucp". Any messages that 44258071Sericcan't be handled using the usual UUCP rules are passed to this host. 44358071Seric 44458071SericIf you are on a local SMTP-based net that connects to the outside 44558071Sericworld via UUCP, you can use LOCAL_NET_CONFIG to add appropriate rules. 44658071SericFor example: 44758071Seric 44858071Seric define(`SMART_HOST', suucp:uunet) 44958071Seric LOCAL_NET_CONFIG 45058071Seric R$* < @ $* .$m > $* $#smtp $@ $2.$m $: $1 < @ $2.$m > $3 45158071Seric 45258071SericThis will cause all names that end in your domain name ($m) via 45358071SericSMTP; anything else will be sent via suucp (smart UUCP) to uunet. 45458071Seric 45558071Seric 45657945Seric+--------------------------------+ 45757945Seric| TWEAKING CONFIGURATION OPTIONS | 45857945Seric+--------------------------------+ 45957945Seric 46057945SericThere are a large number of configuration options that don't normally 46157945Sericneed to be changed. However, if you feel you need to tweak them, you 46257945Sericcan define the following M4 variables. This list is shown in four 46357945Sericcolumns: the name you define, the default value for that definition, 46457945Sericthe option or macro that is affected (either Ox for an option or Dx 46557945Sericfor a macro), and a brief description. Greater detail of the semantics 46657945Sericcan be found in the Installation and Operations Guide. 46757945Seric 46857945SericM4 Variable Name Default Mac/Opt Description 46957945SericconfMAILER_NAME MAILER-DAEMON Dn The sender name used for 47057945Seric internally generated 47157945Seric outgoing messages. 47257945SericconfFROM_LINE From $?<$<$|$g$. $d The From_ line used when 47357945Seric Dl sending to files or programs. 47457945SericconfFROM_HEADER $?x$x <$g>$|$g$. The format of an internally 47557945Seric Dq generated From: address. 47657945SericconfOPERATORS .:%@!^/[] Do Address operator characters. 47757945SericconfSTMP_LOGIN_MSG $j Sendmail $v/$Z ready at $b 47857945Seric De The initial (spontaneous) 47957945Seric SMTP greeting message. 48057945SericconfEIGHT_BIT_INPUT False O8 Use 8-bit input? 48157945SericconfALIAS_WAIT 10 Oa Wait (in minutes) for alias 48257945Seric file rebuild. 48358087SericconfMIN_FREE_BLOCKS 4 Ob Minimum number of free blocks 48458087Seric on queue filesystem to accept 48558087Seric SMTP mail. 48657945SericconfBLANK_SUB . OB Blank (space) substitution 48757945Seric character. 48857945SericconfCON_EXPENSIVE False Oc Connect immediately to 48957945Seric mailers marked expensive? 49057945SericconfCHECKPOINT_INTERVAL 10 OC Checkpoint queue files 49157945Seric every N recipients. 49257945SericconfDELIVERY_MODE background Od Default delivery mode. 49357945SericconfAUTO_REBUILD False OD Automatically rebuild 49457945Seric alias file if needed. 49557945SericconfERROR_MODE (undefined) Oe Error message mode. 49657945SericconfERROR_MESSAGE (undefined) OE Error message header/file. 49757945SericconfSAVE_FROM_LINES False Of Save extra leading 49857945Seric From_ lines. 49957945SericconfTEMP_FILE_MODE 0600 OF Temporary file mode. 50057945SericconfDEF_GROUP_ID 1 Og Default group id. 50157945SericconfMATCH_GECOS False OG Match GECOS field. 50257945SericconfMAX_HOP 17 Oh Maximum hop count. 50357945SericconfIGNORE_DOTS False Oi Ignore dot as terminator 50457945Seric for incoming messages? 50557945SericconfBIND_OPTS (empty) OI Default options for BIND. 50657945SericconfMCI_CACHE_SIZE 2 Ok Size of open connection cache. 50757945SericconfMCI_CACHE_TIMEOUT 5m OK Open connection cache timeout. 50857945SericconfLOG_LEVEL 9 OL Log level. 50957945SericconfME_TOO False Om Include sender in group 51057945Seric expansions. 51157945SericconfCHECK_ALIASES True On Check RHS of aliases when 51257945Seric running newaliases. 51357945SericconfOLD_STYLE_HEADERS True Oo Assume that headers without 51457945Seric special chars are old style. 51558087SericconfPRIVACY_FLAGS public Op Privacy flags. 51657945SericconfCOPY_ERRORS_TO (undefined) OP Address for additional copies 51757945Seric of all error messages. 51857945SericconfQUEUE_FACTOR (undefined) Oq Slope of queue-only function 51958116SericconfREAD_TIMEOUT (undefined) Or SMTP read timeouts. 52057945SericconfSAFE_QUEUE True Os Commit all messages to disk 52157945Seric before forking. 52257945SericconfMESSAGE_TIMEOUT 3d OT Timeout for messages before 52357945Seric sending error message. 52457945SericconfTIME_ZONE USE_SYSTEM Oz Time zone info -- can be 52557945Seric USE_SYSTEM to use the system's 52657945Seric idea, USE_TZ to use the user's 52757945Seric TZ envariable, or something 52857945Seric else to force that value. 52957945SericconfDEF_USER_ID 1 Ou Default user id. 53057945SericconfNO_WILDCARD_MX False Ow No wildcard MX records matches 53157945Seric our domain. 53257945SericconfQUEUE_LA 8 Ox Load average at which queue-only 53357945Seric function kicks in. 53457945SericconfREFUSE_LA 12 OX Load average at which incoming 53557945Seric SMTP connections are refused. 53657945SericconfSEPARATE_PROC False Oy Run all deliveries in a 53757945Seric separate process. 53857945SericconfWORK_RECIPIENT_FACTOR 53957945Seric (undefined) OY Cost of each recipient. 54057945SericconfWORK_CLASS_FACTOR (undefined) Oz Priority multiplier for class. 54157945SericconfWORK_TIME_FACTOR (undefined) OZ Cost of each delivery attempt. 54257945Seric 54358087Seric 54457246Seric+-----------+ 54557246Seric| HIERARCHY | 54657246Seric+-----------+ 54757246Seric 54851220SericWithin this directory are several subdirectories, to wit: 54951220Seric 55051220Sericm4 General support routines. These are typically 55151220Seric very important and should not be changed without 55257247Seric very careful consideration. 55351220Seric 55451220Sericcf The configuration files themselves. They have 55551220Seric ".mc" suffixes, and must be run through m4 to 55651220Seric become complete. The resulting output should 55751220Seric have a ".cf" suffix. 55851220Seric 55951220Sericostype Definitions describing a particular operating 56051220Seric system type. These should always be referenced 56151220Seric using the OSTYPE macro in the .mc file. Examples 56251220Seric include "bsd4.3", "bsd4.4", "sunos3.5", and 56351220Seric "sunos4.1". 56451220Seric 56551220Sericdomain Definitions describing a particular domain, referenced 56651220Seric using the DOMAIN macro in the .mc file. These are 56751220Seric site dependent; for example, we contribute "cs.exposed.m4" 56851220Seric and "cs.hidden.m4" which both describe hosts in the 56951220Seric CS.Berkeley.EDU subdomain; the former displays the local 57051220Seric hostname (e.g., mammoth.CS.Berkeley.EDU), whereas the 57151220Seric latter does its best to hide the identity of the local 57251220Seric workstation inside the CS subdomain. 57351220Seric 57451220Sericmailer Descriptions of mailers. These are referenced using 57551220Seric the MAILER macro in the .mc file. 57651220Seric 57751220Sericsh Shell files used when building the .cf file from the 57851220Seric .mc file in the cf subdirectory. 57951220Seric 58051220Sericfeature These hold special orthogonal features that you might 58151220Seric want to include. They should be referenced using 58251220Seric the FEATURE macro. 58351220Seric 58451220Serichack Local hacks. These can be referenced using the HACK 58551220Seric macro. They shouldn't be of more than voyeuristic 58651220Seric interest outside the .Berkeley.EDU domain, but who knows? 58751220Seric We've all got our own peccadilloes. 58851220Seric 58951268Sericsiteconfig Site configuration -- e.g., tables of locally connected 59051268Seric UUCP sites. 59151220Seric 59251268Seric 59357246Seric+------------------------+ 59457246Seric| ADMINISTRATIVE DETAILS | 59557246Seric+------------------------+ 59651220Seric 59751220SericThe following sections detail usage of certain internal parts of the 59851220Sericsendmail.cf file. Read them carefully if you are trying to modify 59951220Sericthe current model. If you find the above descriptions adequate, these 60051220Sericshould be {boring, confusing, tedious, ridiculous} (pick one or more). 60151220Seric 60251220SericRULESETS (* means built in to sendmail) 60351220Seric 60451220Seric 0 * Parsing 60551220Seric 1 * Sender rewriting 60651220Seric 2 * Recipient rewriting 60751220Seric 3 * Canonicalization 60851220Seric 4 * Post cleanup 60954839Seric 5 * Local address rewrite (after aliasing) 61051220Seric 6 Bottom half of Ruleset 3 61157247Seric 7 Hook for recursive ruleset 0 call 61257247Seric 8 61357247Seric 9 61451220Seric 61551220Seric 61651220SericMAILERS 61751220Seric 61851220Seric 0 local, prog local and program mailers 61951220Seric 1 smtp SMTP channel 62058087Seric 2 uucp UNIX-to-UNIX Copy Program 62158087Seric 3 netnews Network News delivery 62251220Seric 62351220Seric 62451220SericMACROS 62551220Seric 62651220Seric A 62751220Seric B Bitnet Relay 62851220Seric C CSNET Relay 62954839Seric D The local domain -- usually not needed 63051220Seric E 63151220Seric F 63251220Seric G 63357591Seric H mail Hub (for mail clusters) 63451220Seric I 63551220Seric J 63651220Seric K 63751220Seric L 63851220Seric M Masquerade (who I claim to be) 63951220Seric N 64051220Seric O 64151220Seric P 64251220Seric Q 64351220Seric R Relay (for unqualified names) 64458071Seric S Smart Host 64551220Seric T 64651309Seric U my UUCP name (if I have a UUCP connection) 64751309Seric V UUCP Relay (class V hosts) 64851220Seric W UUCP Relay (class W hosts) 64951220Seric X UUCP Relay (class X hosts) 65051309Seric Y UUCP Relay (all other hosts) 65151220Seric Z Version number 65251220Seric 65351220Seric 65451220SericCLASSES 65551220Seric 65651220Seric A 65751220Seric B 65851220Seric C 65951220Seric D 66057246Seric E addresses that should not seem to come from $M 66154839Seric F hosts we forward for 66251220Seric G 66351220Seric H 66451220Seric I 66551220Seric J 66651220Seric K 66751220Seric L addresses that should not be forwarded to $R 66851220Seric M 66951220Seric N 67051220Seric O operators that indicate network operations (cannot be in local names) 67151220Seric P 67251220Seric Q 67351220Seric R 67451220Seric S 67551220Seric T 67651220Seric U locally connected UUCP hosts 67751309Seric V UUCP hosts connected to relay $V 67851309Seric W UUCP hosts connected to relay $W 67951309Seric X UUCP hosts connected to relay $X 68051309Seric Y locally connected smart UUCP hosts 68151220Seric Z 68254839Seric . the class containing only a dot 68351220Seric 68451220Seric 68551220SericM4 DIVERSIONS 68651220Seric 68758071Seric 1 Local host detection and resolution 68858071Seric 2 Local Ruleset 3 additions 68958071Seric 3 Local Ruleset 0 additions 69051268Seric 4 UUCP Ruleset 0 additions 69151309Seric 5 locally interpreted names (overrides $R) 69254839Seric 6 local configuration (at top of file) 69351220Seric 7 mailer definitions 69454839Seric 8 special local name recognition (late in ruleset 3) 69558087Seric 9 special local name recognition (late in ruleset 0) 696