151220Seric 251220Seric 357246Seric NEW SENDMAIL CONFIGURATION FILES 451220Seric 557246Seric Eric Allman <eric@CS.Berkeley.EDU> 651220Seric 7*67929Seric @(#)README 8.38 (Berkeley) 11/13/94 851220Seric 951220Seric 1057246SericThis document describes the sendmail configuration files being used 1167469Sericat Berkeley. These use features in the new (R8) sendmail; they will 1267469Sericnot work on other versions. 1351220Seric 1457246SericThese configuration files are probably not as general as previous 1565957Sericversions, and don't handle as many of the weird cases automagically. 1657246SericI was able to simplify by them for two reasons. First, the network 1757246Serichas become more consistent -- for example, at this point, everyone 1857246Sericon the internet is supposed to be running a name server, so hacks to 1957246Serichandle NIC-registered hosts can go away. Second, I assumed that a 2057246Sericsubdomain would be running SMTP internally -- UUCP is presumed to be 2157246Serica long-haul protocol. I realize that this is not universal, but it 2257246Sericdoes describe the vast majority of sites with which I am familiar, 2357246Sericincluding those outside the US. 2451220Seric 2565957SericOf course, the downside of this is that if you do live in a weird 2665957Sericworld, things are going to get weirder for you. I'm sorry about that, 2757246Sericbut at the time we at Berkeley had a problem, and it seemed like the 2857246Sericright thing to do. 2951220Seric 3057247SericThis package requires a post-V7 version of m4; if you are running the 3157247Seric4.2bsd, SysV.2, or 7th Edition version, I suggest finding a friend with 3257247Serica newer version. You can m4-expand on their system, then run locally. 3365002SericSunOS's /usr/5bin/m4 or BSD-Net/2's m4 both work. GNU m4 version 1.1 3465002Sericalso works. Unfortunately, I'm told that the M4 on BSDI 1.0 doesn't 3565002Sericwork -- you'll have to use a Net/2 or GNU version. 3651220Seric 3758284SericIF YOU DON'T HAVE A BERKELEY MAKE, don't despair! Just run 3864371Seric"m4 foo.mc > foo.cf" -- that should be all you need. There is also 3964371Serica fairly crude (but functional) Makefile.dist that works on the 4064371Sericold version of make. 4158284Seric 4258284SericTo get started, you may want to look at tcpproto.mc (for TCP-only 4364324Sericsites), uucpproto.mc (for UUCP-only sites), and clientproto.mc (for 4464324Sericclusters of clients using a single mail host). Others are versions 4558284Sericthat we use at Berkeley, although not all are in current use. For 4658284Sericexample, ucbarpa has gone away, but I've left ucbarpa.mc in because 4758284Sericit demonstrates some interesting techniques. 4858284Seric 4957246SericI'm not pretending that this README describes everything that these 5057246Sericconfiguration files can do; clever people can probably tweak them 5157246Sericto great effect. But it should get you started. 5257246Seric 5365509Seric******************************************************************* 5465509Seric*** BE SURE YOU CUSTOMIZE THESE FILES! They have some *** 5565509Seric*** Berkeley-specific assumptions built in, such as the name *** 5665509Seric*** of our UUCP-relay. You'll want to create your own domain *** 5765509Seric*** description, and use that in place of domain/Berkeley.m4. *** 5865509Seric******************************************************************* 5958087Seric 6065509Seric 6157246Seric+--------------------------+ 6257246Seric| INTRODUCTION AND EXAMPLE | 6357246Seric+--------------------------+ 6457246Seric 6557246SericConfiguration files are contained in the subdirectory "cf", with a 6657246Sericsuffix ".mc". They must be run through "m4" to produce a ".cf" file. 6757246Seric 6851220SericLet's examine a typical .mc file (cf/cs-exposed.mc): 6951220Seric 7051220Seric divert(-1) 7151220Seric # 7251220Seric # Copyright (c) 1983 Eric P. Allman 7351220Seric # Copyright (c) 1988 The Regents of the University of California. 7451220Seric # All rights reserved. 7551220Seric # 7651220Seric # Redistribution and use in source and binary forms are permitted 7751220Seric # provided that the above copyright notice and this paragraph are 7851220Seric # duplicated in all such forms and that any documentation, 7951220Seric # advertising materials, and other materials related to such 8051220Seric # distribution and use acknowledge that the software was developed 8151220Seric # by the University of California, Berkeley. The name of the 8251220Seric # University may not be used to endorse or promote products derived 8351220Seric # from this software without specific prior written permission. 8451220Seric # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 8551220Seric # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 8651220Seric # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 8751220Seric # 8851220Seric 8957246SericThe divert(-1) will delete the crud in the resulting output file. 9057247SericThe copyright notice is what your lawyers require. Our lawyers require 9157246Sericthe one that I've included in my files. A copyleft is a copyright by 9257246Sericanother name. 9351220Seric 9457246SericThe next line MUST be 9557246Seric 9651220Seric include(`../m4/cf.m4') 9751220Seric 9857246SericThis will pull in the M4 macros you will need to make sense of 9957246Sericeverything else. As the saying goes, don't think about it, just 10057246Sericdo it. If you don't do it, don't bother reading the rest of this 10157246Sericfile. 10251220Seric 10356778Seric VERSIONID(`<SCCS or RCS version id>') 10451220Seric 10551220SericVERSIONID is a macro that stuffs the version information into the 10651220Sericresulting file. We use SCCS; you could use RCS, something else, or 10757246Sericomit it completely. This is not the same as the version id included 10857246Sericin SMTP greeting messages -- this is defined in m4/version.m4. 10951220Seric 11051268Seric DOMAIN(cs.exposed) 11151220Seric 11251220SericThis example exposes the host inside of the CS subdomain -- that is, 11351220Sericit doesn't try to hide the name of the workstation to the outside 11451220Sericworld. Changing this to DOMAIN(cs.hidden) would have made outgoing 11551220Sericmessages refer to "<username>@CS.Berkeley.EDU" instead of using the 11663857Sericlocal hostname. Internally this is effected by using 11757246Seric"MASQUERADE_AS(CS.Berkeley.EDU)". 11851220Seric 11951268Seric MAILER(smtp) 12051220Seric 12151309SericThese describe the mailers used at the default CS site site. The 12251309Sericlocal mailer is always included automatically. 12351220Seric 12458087Seric 12557246Seric+--------+ 12657246Seric| OSTYPE | 12757246Seric+--------+ 12857246Seric 12951220SericNote that cf/cs-exposed.mc omits an OSTYPE macro -- this assumes 13051220Sericdefault Computer Science Division environment. There are several 13157247Sericexplicit environments available: bsd4.3, bsd4.4, hpux, irix, osf1, 13257247Sericriscos4.5, sunos3.5, sunos4.1, and ultrix4.1. These change things 13357247Sericlike the location of the alias file and queue directory. Some of 13457247Sericthese files are identical to one another. 13551220Seric 13657246SericOperating system definitions are easy to write. They may define 13757246Sericthe following variables (everything defaults, so an ostype file 13857246Sericmay be empty). 13951220Seric 14057246SericALIAS_FILE [/etc/aliases] The location of the text version 14159761Seric of the alias file(s). It can be a comma-separated 14266790Seric list of names (but be sure you quote values with 14366790Seric comments in them -- for example, use 14466790Seric define(`ALIAS_FILE', `a,b') 14566790Seric to get "a" and "b" both listed as alias files; 14666790Seric otherwise the define() primitive only sees "a"). 14757246SericHELP_FILE [/usr/lib/sendmail.hf] The name of the file 14857246Seric containing information printed in response to 14957246Seric the SMTP HELP command. 15057246SericQUEUE_DIR [/var/spool/mqueue] The directory containing 15157246Seric queue files. 15257246SericSTATUS_FILE [/etc/sendmail.st] The file containing status 15357246Seric information. 15458087SericLOCAL_MAILER_PATH [/bin/mail] The program used to deliver local mail. 15564153SericLOCAL_MAILER_FLAGS [rmn] The flags used by the local mailer. The 15664153Seric flags lsDFM are always included. 15763761SericLOCAL_MAILER_ARGS [mail -d $u] The arguments passed to deliver local 15863761Seric mail. 15958087SericLOCAL_SHELL_PATH [/bin/sh] The shell used to deliver piped email. 16063791SericLOCAL_SHELL_FLAGS [eu] The flags used by the shell mailer. The 16163791Seric flags lsDFM are always included. 16263791SericLOCAL_SHELL_ARGS [sh -c $u] The arguments passed to deliver "prog" 16363791Seric mail. 16458087SericUSENET_MAILER_PATH [/usr/lib/news/inews] The name of the program 16558087Seric used to submit news. 16658087SericUSENET_MAILER_FLAGS [rlsDFMmn] The mailer flags for the usenet mailer. 16758087SericUSENET_MAILER_ARGS [-m -h -n] The command line arguments for the 16858087Seric usenet mailer. 16965911SericUSENET_MAILER_MAX [100000] The maximum size of messages that will 17065911Seric be accepted by the usenet mailer. 17163857SericSMTP_MAILER_FLAGS [undefined] Flags added to SMTP mailer. Default 17267915Seric flags are `mDFMUX' for all SMTP-based mailers; the 17367915Seric "esmtp" mailer adds `a' and "smtp8" adds `8'. 17465911SericSMTP_MAILER_MAX [undefined] The maximum size of messages that will 17567915Seric be transported using the smtp, smtp8, or esmtp 17667915Seric mailers. 17767915SericSMTP_MAILER_ARGS [IPC $h] The arguments passed to the smtp mailer. 17867915Seric About the only reason you would want to change this 17967915Seric would be to change the default port. 18067915SericESMTP_MAILER_ARGS [IPC $h] The arguments passed to the esmtp mailer. 18167915SericSMTP8_MAILER_ARGS [IPC $h] The arguments passed to the smtp8 mailer. 18267915SericRELAY_MAILER_ARGS [IPC $h] The arguments passed to the relay mailer. 18363857SericUUCP_MAILER_FLAGS [undefined] Flags added to UUCP mailer. Default 18463857Seric flags are `DFMhuU' (and `m' for suucp mailer, minus 18563857Seric `U' for uucp-dom mailer). 18663761SericUUCP_MAILER_ARGS [uux - -r -z -a$f -gC $h!rmail ($u)] The arguments 18763761Seric passed to the UUCP mailer. 18863791SericUUCP_MAX_SIZE [100000] The maximum size message accepted for 18963791Seric transmission by the UUCP mailers. 19065911SericFAX_MAILER_PATH [/usr/local/lib/fax/mailfax] The program used to 19165911Seric submit FAX messages. 19265911SericFAX_MAILER_MAX [100000] The maximum size message accepted for 19365911Seric transmission by FAX. 19457246Seric 19557246Seric+---------+ 19657246Seric| DOMAINS | 19757246Seric+---------+ 19857246Seric 19957246SericYou will probably want to collect domain-dependent defines into one 20057246Sericfile, referenced by the DOMAIN macro. For example, our Berkeley 20157246Sericdomain file includes definitions for several internal distinguished 20257246Serichosts: 20357246Seric 20457246SericUUCP_RELAY The host that will forward UUCP-addressed email. 20557246Seric If not defined, all UUCP sites must be directly 20664028Seric connected. 20757246SericBITNET_RELAY The host that will forward BITNET-addressed email. 20857246Seric If not defined, the .BITNET pseudo-domain won't work. 20957246SericLOCAL_RELAY The site that will handle unqualified names -- that 21057246Seric is, names with out an @domain extension. If not set, 21157246Seric they are assumed to belong on this machine. This 21257246Seric allows you to have a central site to store a 21357246Seric company- or department-wide alias database. This 21457246Seric only works at small sites, and there are better 21564028Seric methods. 21667915SericLUSER_RELAY The site that will handle lusers -- that is, apparently 21767915Seric local names that aren't local accounts or aliases. 21857246Seric 21967915SericAny of these can be either ``mailer:hostname'' (in which case the 22064028Sericmailer is the internal mailer name, such as ``suucp'' and the hostname 22164028Sericis the name of the host as appropriate for that mailer) or just a 22264028Seric``hostname'', in which case a default mailer type (usually ``relay'', 22364153Serica variant on SMTP) is used. WARNING: if you have a wildcard MX 22464153Sericrecord matching your domain, you probably want to define these to 22564153Serichave a trailing dot so that you won't get the mail diverted back 22664153Sericto yourself. 22764028Seric 22857246SericThe domain file can also be used to define a domain name, if needed 22957982Seric(using "DD<domain>") and set certain site-wide features. If all hosts 23057982Sericat your site masquerade behind one email name, you could also use 23157982SericMASQUERADE_AS here. 23257246Seric 23358408SericYou do not have to define a domain -- in particular, if you are a 23458408Sericsingle machine sitting off somewhere, it is probably more work than 23558408Sericit's worth. This is just a mechanism for combining "domain dependent 23658408Sericknowledge" into one place. 23758408Seric 23857246Seric+---------+ 23957246Seric| MAILERS | 24057246Seric+---------+ 24157246Seric 24251220SericThere are fewer mailers supported in this version than the previous 24351220Sericversion, owing mostly to a simpler world. 24451220Seric 24551220Sericlocal The local and prog mailers. You will almost always 24651220Seric need these; the only exception is if you relay ALL 24757247Seric your mail to another site. This mailer is included 24857247Seric automatically. 24951220Seric 25051220Sericsmtp The Simple Mail Transport Protocol mailer. This does 25151220Seric not hide hosts behind a gateway or another other 25251220Seric such hack; it assumes a world where everyone is 25363761Seric running the name server. This file actually defines 25467915Seric four mailers: "smtp" for regular (old-style) SMTP to 25563761Seric other servers, "esmtp" for extended SMTP to other 25667915Seric servers, "smtp8" to do SMTP to other servers without 25767915Seric converting 8-bit data to MIME (essentially, this is 25867915Seric your statement that you know the other end is 8-bit 25967915Seric clean even if it doesn't say so), and "relay" for 26067915Seric transmission to our RELAY_HOST, LUSER_RELAY, or 26167915Seric MAILER_HUB. 26251220Seric 26351220Sericuucp The Unix-to-Unix Copy Program mailer. Actually, this 26467471Seric defines two mailers, "uucp-old" (a.k.a. "uucp") and 26567471Seric "uucp-new" (a.k.a. "suucp"). The latter is for when you 26667471Seric know that the UUCP mailer at the other end can handle 26767471Seric multiple recipients in one transfer. If the smtp mailer 26867471Seric is also included in your configuration, two other mailers 26967471Seric ("uucp-dom" and "uucp-uudom") are also defined. When you 27067471Seric include the uucp mailer, sendmail looks for all names in 27165218Seric the $=U class and sends them to the uucp-old mailer; all 27265218Seric names in the $=Y class are sent to uucp-new; and all 27365218Seric names in the $=Z class are sent to uucp-uudom. Note that 27457246Seric this is a function of what version of rmail runs on 27557246Seric the receiving end, and hence may be out of your control. 27665218Seric See the section below describing UUCP mailers in more 27765218Seric detail. 27851220Seric 27958087Sericusenet Usenet (network news) delivery. If this is specified, 28058087Seric an extra rule is added to ruleset 0 that forwards all 28158087Seric local email for users named ``group.usenet'' to the 28258087Seric ``inews'' program. Note that this works for all groups, 28358087Seric and may be considered a security problem. 28458087Seric 28558363Sericfax Facsimile transmission. This is experimental and based 28658363Seric on Sam Leffler's FlexFAX software. For more information, 28758363Seric see below. 28858087Seric 28965148Sericpop Post Office Protocol. 29058363Seric 291*67929SericThe local mailer accepts addresses of the form "user+detail", where 292*67929Sericthe "+detail" is not used for mailbox matching but is available 293*67929Sericto certain local mail programs (in particular, see FEATURE(procmail)). 294*67929SericFor example, "eric", "eric+sendmail", and "eric+sww" all indicate 295*67929Sericthe same user, but additional arguments <null>, "sendmail", and "sww" 296*67929Sericmay be provided for use in sorting mail. 29765148Seric 298*67929Seric 29957246Seric+----------+ 30057246Seric| FEATURES | 30157246Seric+----------+ 30251268Seric 30357246SericSpecial features can be requested using the "FEATURE" macro. For 30457246Sericexample, the .mc line: 30557246Seric 30657246Seric FEATURE(use_cw_file) 30757246Seric 30857246Serictells sendmail that you want to have it read an /etc/sendmail.cw 30958782Sericfile to get values for class $=w. The FEATURE may contain a single 31058782Sericoptional parameter -- for example: 31157246Seric 31258782Seric FEATURE(mailertable, dbm /usr/lib/mailertable) 31358782Seric 31458782SericAvailable features are: 31558782Seric 31657246Sericuse_cw_file Read the file /etc/sendmail.cw file to get alternate 31757246Seric names for this host. This might be used if you were 31857246Seric on a host that MXed for a dynamic set of other 31957246Seric hosts. If the set is static, just including the line 32057246Seric "Cw<name1> <name2> ..." is probably superior. 32158408Seric The actual filename can be overridden by redefining 32258408Seric confCW_FILE. 32364324Seric 32458087Sericredirect Reject all mail addressed to "address.REDIRECT" with 32558087Seric a ``551 User not local; please try <address>'' message. 32658087Seric If this is set, you can alias people who have left 32758087Seric to their new address with ".REDIRECT" appended. 32864324Seric 32958284Sericnouucp Don't do anything special with UUCP addresses at all. 33064324Seric 33159080Sericnocanonify Don't pass addresses to $[ ... $] for canonification. 33259080Seric This would generally only be used by sites that only 33359080Seric act as mail gateways or which have user agents that do 33464028Seric full canonification themselves. You may also want to 33564028Seric use "define(`confBIND_OPTS',`-DNSRCH -DEFNAMES')" to 33664028Seric turn off the usual resolver options that do a similar 33764028Seric thing. 33864324Seric 33967917Sericstickyhost If set, email sent to "user@local.host" are marked 34058526Seric as "sticky" -- that is, the local addresses aren't 34158526Seric matched against UDB and don't go through ruleset 5. 34267915Seric This is used if you want a set up where "user" is 34367915Seric not necessarily the same as "user@local.host", e.g., 34467915Seric to make a distinct domain-wide namespace. Prior to 34567915Seric 8.7 this was the default, and notsticky was used to 34667915Seric turn this off. 34764324Seric 34858782Sericmailertable Include a "mailer table" which can be used to override 34958782Seric routing for particular domains. The argument of the 35058782Seric FEATURE may be the key definition. If none is specified, 35158782Seric the definition used is: 35264164Seric hash -o /etc/mailertable 35363761Seric Keys in this database are fully qualified domain names 35463761Seric or partial domains preceded by a dot -- for example, 35563761Seric "vangogh.CS.Berkeley.EDU" or ".CS.Berkeley.EDU". 35663761Seric Values must be of the form: 35758782Seric mailer:domain 35863761Seric where "mailer" is the internal mailer name, and "domain" 35963761Seric is where to send the message. These maps are not 36063761Seric reflected into the message header. 36164324Seric 36263761Sericdomaintable Include a "domain table" which can be used to provide 36367451Seric domain name mapping. Use of this should really be 36467451Seric limited to your own domains. It may be useful if you 36567451Seric change names (e.g., your company changes names from 36667451Seric oldname.com to newname.com). The argument of the 36767451Seric FEATURE may be the key definition. If none is specified, 36867451Seric the definition used is: 36964164Seric hash -o /etc/domaintable 37067451Seric The key in this table is the domain name; the value is 37167451Seric the new (fully qualified) domain. Anything in the 37263761Seric domaintable is reflected into headers; that is, this 37363761Seric is done in ruleset 3. 37464324Seric 37559034Sericbitdomain Look up bitnet hosts in a table to try to turn them into 37659034Seric internet addresses. The table can be built using the 37764153Seric bitdomain program contributed by John Gardiner Myers. 37859034Seric The argument of the FEATURE may be the key definition; if 37959034Seric none is specified, the definition used is: 38064164Seric hash -o /etc/bitdomain.db 38159034Seric Keys are the bitnet hostname; values are the corresponding 38259034Seric internet hostname. 38364324Seric 38459037Sericuucpdomain Similar feature for UUCP hosts. The default map definition 38559037Seric is: 38664164Seric hash -o /etc/uudomain.db 38759037Seric At the moment there is no automagic tool to build this 38859037Seric database. 38964324Seric 39060263Sericalways_add_domain 39160263Seric Include the local host domain even on locally delivered 39260263Seric mail. Normally it is not added unless it is already 39360263Seric present. 39464324Seric 39563761Sericallmasquerade If masquerading is enabled (using MASQUERADE_AS), this 39663761Seric feature will cause recipient addresses to also masquerade 39763761Seric as being from the masquerade host. Normally they get 39863761Seric the local hostname. Although this may be right for 39963761Seric ordinary users, it can break local aliases. For example, 40063761Seric if you send to "localalias", the originating sendmail will 40163761Seric find that alias and send to all members, but send the 40263761Seric message with "To: localalias@masqueradehost". Since that 40363761Seric alias likely does not exist, replies will fail. Use this 40463761Seric feature ONLY if you can guarantee that the ENTIRE 40563761Seric namespace on your masquerade host supersets all the 40663761Seric local entries. 40764324Seric 40864153Sericnodns We aren't running DNS at our site (for example, 40964153Seric we are UUCP-only connected). It's hard to consider 41064153Seric this a "feature", but hey, it had to go somewhere. 41157246Seric 41264324Sericnullclient This is a special case -- it creates a stripped down 41364324Seric configuration file containing nothing but support for 41464394Seric forwarding all mail to a central hub via a local 41564394Seric SMTP-based network. The argument is the name of that 41664394Seric hub. 41764394Seric 41864394Seric The only other feature that should be used in conjunction 41964394Seric with this one is "nocanonify" (this causes addresses to 42064394Seric be sent unqualified via the SMTP connection; normally 42164394Seric they are qualifed with the masquerade name, which 42264394Seric defaults to the name of the hub machine). No mailers 42364394Seric should be defined. No aliasing or forwarding is done. 42457246Seric 425*67929Sericprocmail Use procmail as the local mailer. This mailer can 426*67929Seric make use of the "user+indicator@local.host" syntax; 427*67929Seric normally the +indicator is just tossed, but by default 428*67929Seric it is passed as the -a argument to procmail. The 429*67929Seric argument to this feature is the pathname of procmail, 430*67929Seric which defaults to /usr/local/bin/procmail. 43164324Seric 432*67929Seric 43357246Seric+-------+ 43457246Seric| HACKS | 43557246Seric+-------+ 43657246Seric 43757246SericSome things just can't be called features. To make this clear, 43857247Sericthey go in the hack subdirectory and are referenced using the HACK 43957246Sericmacro. These will tend to be site-dependent. The release 44057246Sericincludes the Berkeley-dependent "cssubdomain" hack (that makes 44157246Sericsendmail accept local names in either Berkeley.EDU or CS.Berkeley.EDU; 44257246Sericthis is intended as a short-term aid while we move hosts into 44357246Sericsubdomains. 44457246Seric 44558087Seric 44657246Seric+--------------------+ 44757246Seric| SITE CONFIGURATION | 44857246Seric+--------------------+ 44957246Seric 45057246SericComplex sites will need more local configuration information, such as 45157246Sericlists of UUCP hosts they speak with directly. This can get a bit more 45257246Serictricky. For an example of a "complex" site, see cf/ucbvax.mc. 45357246Seric 45466336SericIf your host is known by several different names, you need to augment 45566336Sericthe $=w class. This is a list of names by which you are known, and 45666336Sericanything sent to an address using a host name in this list will be 45766336Serictreated as local mail. You can do this in two ways: either create 45866336Sericthe file /etc/sendmail.cw containing a list of your aliases (one per 45966336Sericline), and use ``FEATURE(use_cw_file)'' in the .mc file, or add the 46066336Sericline: 46166336Seric 46266336Seric Cw alias.host.name 46366336Seric 46466336Sericat the end of that file. See the ``vangogh.mc'' file for an example. 46566336SericBe sure you use the fully-qualified name of the host, rather than a 46666336Sericshort name. 46766336Seric 46857246SericThe SITECONFIG macro allows you to indirectly reference site-dependent 46957246Sericconfiguration information stored in the siteconfig subdirectory. For 47057246Sericexample, the line 47157246Seric 47257246Seric SITECONFIG(uucp.ucbvax, ucbvax, U) 47357246Seric 47457246Sericreads the file uucp.ucbvax for local connection information. The 47557246Sericsecond parameter is the local name (in this case just "ucbvax" since 47666336Sericit is locally connected, and hence a UUCP hostname). The third 47766336Sericparameter is the name of both a macro to store the local name (in 47866336Sericthis case, $U) and the name of the class (e.g., $=U) in which to store 47966336Sericthe host information read from the file. Another SITECONFIG line reads 48057246Seric 48157246Seric SITECONFIG(uucp.ucbarpa, ucbarpa.Berkeley.EDU, W) 48257246Seric 48357246SericThis says that the file uucp.ucbarpa contains the list of UUCP sites 48457246Sericconnected to ucbarpa.Berkeley.EDU. The $=W class will be used to 48566336Sericstore this list, and $W is defined to be ucbarpa.Berkeley.EDU, that 48666336Sericis, the name of the relay to which the hosts listed in uucp.ucbarpa 48766336Sericare connected. [The machine ucbarpa is gone now, but I've left 48857246Sericthis out-of-date configuration file around to demonstrate how you 48957246Sericmight do this.] 49057246Seric 49166336SericNote that the case of SITECONFIG with a third parameter of ``U'' is 49266336Sericspecial; the second parameter is assumed to be the UUCP name of the 49366336Sericlocal site, rather than the name of a remote site, and the UUCP name 49466336Sericis entered into $=w (the list of local hostnames) as $U.UUCP. 49566336Seric 49657246SericThe siteconfig file (e.g., siteconfig/uucp.ucbvax.m4) contains nothing 49757246Sericmore than a sequence of SITE macros describing connectivity. For 49857246Sericexample: 49957246Seric 50057246Seric SITE(cnmat) 50157246Seric SITE(sgi olympus) 50257246Seric 50357246SericThe second example demonstrates that you can use two names on the 50457246Sericsame line; these are usually aliases for the same host (or are at 50557246Sericleast in the same company). 50657246Seric 50758087Seric 50865218Seric+--------------------+ 50965218Seric| USING UUCP MAILERS | 51065218Seric+--------------------+ 51165218Seric 51265218SericIt's hard to get UUCP mailers right because of the extremely ad hoc 51365218Sericnature of UUCP addressing. These config files are really designed 51465218Sericfor domain-based addressing, even for UUCP sites. 51565218Seric 51665218SericThere are four UUCP mailers available. The choice of which one to 51765218Sericuse is partly a matter of local preferences and what is running at 51865218Sericthe other end of your UUCP connection. Unlike good protocols that 51965218Sericdefine what will go over the wire, UUCP uses the policy that you 52065218Sericshould do what is right for the other end; if they change, you have 52165218Sericto change. This makes it hard to do the right thing, and discourages 52265218Sericpeople from updating their software. In general, if you can avoid 52365218SericUUCP, please do. 52465218Seric 52565218SericThe major choice is whether to go for a domainized scheme or a 52665218Sericnon-domainized scheme. This depends entirely on what the other 52765218Sericend will recognize. If at all possible, you should encourage the 52865218Sericother end to go to a domain-based system -- non-domainized addresses 52965218Sericdon't work entirely properly. 53065218Seric 53165218SericThe four mailers are: 53265218Seric 53365218Seric uucp-old (obsolete name: "uucp") 53465218Seric This is the oldest, the worst (but the closest to UUCP) way of 53565218Seric sending messages accros UUCP connections. It does bangify 53665218Seric everything and prepends $U (your UUCP name) to the sender's 53765218Seric address (which can already be a bang path itself). It can 53865218Seric only send to one address at a time, so it spends a lot of 53965218Seric time copying duplicates of messages. Avoid this if at all 54065218Seric possible. 54165218Seric 54265218Seric uucp-new (obsolete name: "suucp") 54365218Seric The same as above, except that it assumes that in one rmail 54465218Seric command you can specify several recipients. It still has a 54565218Seric lot of other problems. 54665218Seric 54765218Seric uucp-dom 54865218Seric This UUCP mailer keeps everything as domain addresses. 54967471Seric Basically, it uses the SMTP mailer rewriting rules. This mailer 55067471Seric is only included if MAILER(smtp) is also specified. 55165218Seric 55265218Seric Unfortunately, a lot of UUCP mailer transport agents require 55365218Seric bangified addresses in the envelope, although you can use 55465218Seric domain-based addresses in the message header. (The envelope 55565218Seric shows up as the From_ line on UNIX mail.) So.... 55665218Seric 55765218Seric uucp-uudom 55865218Seric This is a cross between uucp-new (for the envelope addresses) 55965218Seric and uucp-dom (for the header addresses). It bangifies the 56065218Seric envelope sender (From_ line in messages) without adding the 56165218Seric local hostname, unless there is no host name on the address 56265218Seric at all (e.g., "wolf") or the host component is a UUCP host name 56365218Seric instead of a domain name ("somehost!wolf" instead of 56467471Seric "some.dom.ain!wolf"). This is also included only if MAILER(smtp) 56567471Seric is also specified. 56665218Seric 56765218SericExamples: 56865218Seric 56965218SericWe are on host grasp.insa-lyon.fr (UUCP host name "grasp"). The 57065218Sericfollowing summarizes the sender rewriting for various mailers. 57165218Seric 57265218SericMailer sender rewriting in the envelope 57365218Seric------ ------ ------------------------- 57465218Sericuucp-{old,new} wolf grasp!wolf 57565218Sericuucp-dom wolf wolf@grasp.insa-lyon.fr 57665218Sericuucp-uudom wolf grasp.insa-lyon.fr!wolf 57765218Seric 57865218Sericuucp-{old,new} wolf@fr.net grasp!fr.net!wolf 57965218Sericuucp-dom wolf@fr.net wolf@fr.net 58065218Sericuucp-uudom wolf@fr.net fr.net!wolf 58165218Seric 58265218Sericuucp-{old,new} somehost!wolf grasp!somehost!wolf 58365218Sericuucp-dom somehost!wolf somehost!wolf@grasp.insa-lyon.fr 58465218Sericuucp-uudom somehost!wolf grasp.insa-lyon.fr!somehost!wolf 58565218Seric 58665218SericIf you are using one of the domainized UUCP mailers, you really want 58765218Sericto convert all UUCP addresses to domain format -- otherwise, it will 58865218Sericdo it for you (and probably not the way you expected). For example, 58965218Sericif you have the address foo!bar!baz (and you are not sending to foo), 59065218Sericthe heuristics will add the @uucp.relay.name or @local.host.name to 59165218Sericthis address. However, if you map foo to foo.host.name first, it 59265218Sericwill not add the local hostname. You can do this using the uucpdomain 59365218Sericfeature. 59465218Seric 59565218Seric 59657246Seric+-------------------+ 59757246Seric| TWEAKING RULESETS | 59857246Seric+-------------------+ 59957246Seric 60051268SericFor more complex configurations, you can define special rules. 60151268SericThe macro LOCAL_RULE_3 introduces rules that are used in canonicalizing 60251268Sericthe names. Any modifications made here are reflected in the header. 60351268Seric 60451268SericA common use is to convert old UUCP addreses to SMTP addresses using 60551268Sericthe UUCPSMTP macro. For example: 60651268Seric 60751268Seric LOCAL_RULE_3 60851268Seric UUCPSMTP(decvax, decvax.dec.com) 60951268Seric UUCPSMTP(research, research.att.com) 61051268Seric 61151268Sericwill cause addresses of the form "decvax!user" and "research!user" 61251268Sericto be converted to "user@decvax.dec.com" and "user@research.att.com" 61351268Sericrespectively. 61451268Seric 61565957SericThis could also be used to look up hosts in a database map: 61657246Seric 61757246Seric LOCAL_RULE_3 61857246Seric R$* < @ $+ > $* $: $1 < @ $(hostmap $2 $) > $3 61957246Seric 62057246SericThis map would be defined in the LOCAL_CONFIG portion, as shown below. 62157246Seric 62251268SericSimilarly, LOCAL_RULE_0 can be used to introduce new parsing rules. 62351268SericFor example, new rules are needed to parse hostnames that you accept 62451309Sericvia MX records. For example, you might have: 62551268Seric 62651309Seric LOCAL_RULE_0 62765986Seric R$+ <@ host.dom.ain.> $#uucp $@ cnmat $: $1 < @ host.dom.ain.> 62851309Seric 62951309SericYou would use this if you had installed an MX record for cnmat.Berkeley.EDU 63051309Sericpointing at this host; this rule catches the message and forwards it on 63151309Sericusing UUCP. 63251309Seric 63358681SericYou can also tweak rulesets 1 and 2 using LOCAL_RULE_1 and LOCAL_RULE_2. 63458681SericThese rulesets are normally empty. 63558681Seric 63657246SericA similar macro is LOCAL_CONFIG. This introduces lines added after the 63757246Sericboilerplate option setting but before rulesets, and can be used to 63857945Sericdeclare local database maps or whatever. For example: 63951268Seric 64057246Seric LOCAL_CONFIG 64157246Seric Khostmap hash /etc/hostmap.db 64257246Seric Kyplocal nis -m hosts.byname 64351220Seric 64458087Seric 64557246Seric+---------------------------+ 64657246Seric| MASQUERADING AND RELAYING | 64757246Seric+---------------------------+ 64857246Seric 64957246SericYou can have your host masquerade as another using 65057246Seric 65157246Seric MASQUERADE_AS(host.domain) 65257246Seric 65365957SericThis causes outgoing SMTP mail to be labeled as coming from the 65457246Sericindicated domain, rather than $j. One normally masquerades as one 65565957Sericof one's own subdomains (for example, it's unlikely that I would 65657246Sericchoose to masquerade as an MIT site). 65757246Seric 65864153SericThe masquerade name is not normally canonified, so it is important 65964153Sericthat it be your One True Name, that is, fully qualified and not a 66064153SericCNAME. 66164153Seric 66257246Sericthere are always users that need to be "exposed" -- that is, their 66357246Sericinternal site name should be displayed instead of the masquerade name. 66457246SericRoot is an example. You can add users to this list using 66557246Seric 66657246Seric EXPOSED_USER(usernames) 66757246Seric 66857246SericThis adds users to class E; you could also use something like 66957246Seric 67057246Seric FE/etc/sendmail.cE 67157246Seric 67257246SericYou can also arrange to relay all unqualified names (that is, names 67357246Sericwithout @host) to a relay host. For example, if you have a central 67457246Sericemail server, you might relay to that host so that users don't have 67557246Sericto have .forward files or aliases. You can do this using 67657246Seric 67758071Seric define(`LOCAL_RELAY', mailer:hostname) 67857246Seric 67958071SericThe ``mailer:'' can be omitted, in which case the mailer defaults to 68058071Seric"smtp". There are some user names that you don't want relayed, perhaps 68158071Sericbecause of local aliases. A common example is root, which may be 68258071Sericlocally aliased. You can add entries to this list using 68357246Seric 68457246Seric LOCAL_USER(usernames) 68557246Seric 68657246SericThis adds users to class L; you could also use something like 68757246Seric 68857246Seric FL/etc/sendmail.cL 68957246Seric 69064153SericIf you want all incoming mail sent to a centralized hub, as for a 69164153Sericshared /var/spool/mail scheme, use 69257591Seric 69358071Seric define(`MAIL_HUB', mailer:hostname) 69457591Seric 69558071SericAgain, ``mailer:'' defaults to "smtp". If you define both LOCAL_RELAY 69666047Sericand MAIL_HUB, unqualified names will be sent to the LOCAL_RELAY and 69766047Sericother local names will be sent to MAIL_HUB. Names in $=L will be 69866047Sericdelivered locally, so you MUST have aliases or .forward files for them. 69966047Seric 70066047SericFor example, if are on machine mastodon.CS.Berkeley.EDU, the following 70158071Sericcombinations of settings will have the indicated effects: 70257591Seric 70357591Sericemail sent to.... eric eric@mastodon.CS.Berkeley.EDU 70457591Seric 70557591SericLOCAL_RELAY set to mail.CS.Berkeley.EDU (delivered locally) 70657591Sericmail.CS.Berkeley.EDU 70757591Seric 70857591SericMAIL_HUB set to mammoth.CS.Berkeley.EDU mammoth.CS.Berkeley.EDU 70957591Sericmammoth.CS.Berkeley.EDU 71057591Seric 71157591SericBoth LOCAL_RELAY and mail.CS.Berkeley.EDU mammoth.CS.Berkeley.EDU 71257591SericMAIL_HUB set as above 71357591Seric 71464153SericIf you want all outgoing mail to go to a central relay site, define 71564153SericSMART_HOST as well. Briefly: 71658071Seric 71764153Seric LOCAL_RELAY applies to unqualifed names (e.g., "eric"). 71864153Seric MAIL_HUB applies to names qualified with the name of the 71964153Seric local host (e.g., "eric@mastodon.CS.Berkeley.EDU"). 72064153Seric SMART_HOST applies to names qualified with other hosts. 72164153Seric 72264153SericHowever, beware that other relays (e.g., UUCP_RELAY, BITNET_RELAY, and 72364153SericFAX_RELAY) take precedence over SMART_HOST, so if you really want 72464153Sericabsolutely everything to go to a single central site you will need to 72564153Sericunset all the other relays -- or better yet, find or build a minimal 72664153Sericconfig file that does this. 72764153Seric 72864153Seric 72958071Seric+-------------------------------+ 73058071Seric| NON-SMTP BASED CONFIGURATIONS | 73158071Seric+-------------------------------+ 73258071Seric 73358071SericThese configuration files are designed primarily for use by SMTP-based 73458071Sericsites. I don't pretend that they are well tuned for UUCP-only or 73558071SericUUCP-primarily nodes (the latter is defined as a small local net 73658071Sericconnected to the rest of the world via UUCP). However, there is one 73758071Serichook to handle some special cases. 73858071Seric 73958071SericYou can define a ``smart host'' that understands a richer address syntax 74058071Sericusing: 74158071Seric 74258071Seric define(`SMART_HOST', mailer:hostname) 74358071Seric 74464028SericIn this case, the ``mailer:'' defaults to "relay". Any messages that 74558071Sericcan't be handled using the usual UUCP rules are passed to this host. 74658071Seric 74758071SericIf you are on a local SMTP-based net that connects to the outside 74858071Sericworld via UUCP, you can use LOCAL_NET_CONFIG to add appropriate rules. 74958071SericFor example: 75058071Seric 75158071Seric define(`SMART_HOST', suucp:uunet) 75258071Seric LOCAL_NET_CONFIG 75363761Seric R$* < @ $* .$m. > $* $#smtp $@ $2.$m. $: $1 < @ $2.$m. > $3 75458071Seric 75558071SericThis will cause all names that end in your domain name ($m) via 75658071SericSMTP; anything else will be sent via suucp (smart UUCP) to uunet. 75763761SericIf you have FEATURE(nocanonify), you may need to omit the dots after 75863761Sericthe $m. If you are running a local DNS inside your domain which is 75963761Sericnot otherwise connected to the outside world, you probably want to 76063761Sericuse: 76158071Seric 76263761Seric define(`SMART_HOST', smtp:fire.wall.com) 76363761Seric LOCAL_NET_CONFIG 76463761Seric R$* < @ $* . > $* $#smtp $@ $2. $: $1 < @ $2. > $3 76558071Seric 76663761SericThat is, send directly only to things you found in your DNS lookup; 76763761Sericanything else goes through SMART_HOST. 76863761Seric 76964153SericIf you are not running DNS at all, it is important to use 77064153SericFEATURE(nodns) to avoid having sendmail queue everything waiting 77164153Sericfor the name server to come up. 77263761Seric 77364153Seric 77464259Seric+-----------+ 77564259Seric| WHO AM I? | 77664259Seric+-----------+ 77764259Seric 77864259SericNormally, the $j macro is automatically defined to be your fully 77964259Sericqualified domain name (FQDN). Sendmail does this by getting your 78064259Serichost name using gethostname and then calling gethostbyname on the 78164259Sericresult. For example, in some environments gethostname returns 78264259Sericonly the root of the host name (such as "foo"); gethostbyname is 78364259Sericsupposed to return the FQDN ("foo.bar.com"). In some (fairly rare) 78464259Sericcases, gethostbyname may fail to return the FQDN. In this case 78564259Sericyou MUST define confDOMAIN_NAME to be your fully qualified domain 78664259Sericname. This is usually done using: 78764259Seric 78864259Seric Dmbar.com 78964259Seric define(`confDOMAIN_NAME', `$w.$m')dnl 79064259Seric 79164259Seric 79264028Seric+--------------------+ 79364028Seric| USING MAILERTABLES | 79464028Seric+--------------------+ 79564028Seric 79664028SericTo use FEATURE(mailertable), you will have to create an external 79764028Sericdatabase containing the routing information for various domains. 79864028SericFor example, a mailertable file in text format might be: 79964028Seric 80064028Seric .my.domain xnet:%1.my.domain 80164028Seric uuhost1.my.domain suucp:uuhost1 80264028Seric .bitnet smtp:relay.bit.net 80364028Seric 80464028SericThis should normally be stored in /etc/mailertable. The actual 80564028Sericdatabase version of the mailertable is built using: 80664028Seric 80764028Seric makemap hash /etc/mailertable.db < /etc/mailertable 80864028Seric 80964028SericThe semantics are simple. Any LHS entry that does not begin with 81064028Serica dot matches the full host name indicated. LHS entries beginning 81164028Sericwith a dot match anything ending with that domain name -- that is, 81264028Sericthey can be thought of as having a leading "*" wildcard. Matching 81364028Sericis done in order of most-to-least qualified -- for example, even 81464028Sericthough ".my.domain" is listed first in the above example, an entry 81564028Sericof "uuhost1.my.domain" will match the second entry since it is 81664028Sericmore explicit. 81764028Seric 81864028SericThe RHS should always be a "mailer:host" pair. The mailer is the 81964028Sericconfiguration name of a mailer (that is, an `M' line in the 82064028Sericsendmail.cf file). The "host" will be the hostname passed to 82164028Sericthat mailer. In domain-based matches (that is, those with leading 82264028Sericdots) the "%1" may be used to interpolate the wildcarded part of 82364028Sericthe host name. For example, the first line above sends everything 82464028Sericaddressed to "anything.my.domain" to that same host name, but using 82564028Sericthe (presumably experimental) xnet mailer. 82664028Seric 82767915SericIn some cases you may want to temporarily turn off MX records, 82867915Sericparticularly on gateways. For example, you may want to MX 82967915Sericeverything in a domain to one machine that then forwards it 83067915Sericdirectly. To do this, you might use the DNS configuration: 83164028Seric 83267915Seric *.domain. IN MX 0 relay.machine 83367915Seric 83467915Sericand on relay.machine use the mailertable: 83567915Seric 83667915Seric .domain smtp:[gateway.domain] 83767915Seric 83867915SericThe [square brackets] turn off MX records for this host only. 83967915SericIf you didn't do this, the mailertable would use the MX record 84067915Sericagain, which would give you an MX loop. 84167915Seric 84267915Seric 84364153Seric+--------------------------------+ 84464153Seric| USING USERDB TO MAP FULL NAMES | 84564153Seric+--------------------------------+ 84664153Seric 84764153SericThe user database was not originally intended for mapping full names 84864153Sericto login names (e.g., Eric.Allman => eric), but some people are using 84964153Sericit that way. (I would recommend that you set up aliases for this 85064153Sericpurpose instead -- since you can specify multiple alias files, this 85164153Sericis fairly easy.) The intent was to locate the default maildrop at 85264153Serica site, but allow you to override this by sending to a specific host. 85364153Seric 85464153SericIf you decide to set up the user database in this fashion, it is 85567917Sericimperative that you not use FEATURE(stickyhost) -- otherwise, 85664153Serice-mail sent to Full.Name@local.host.name will be rejected. 85764153Seric 85867917SericTo build the internal form of the user database, use: 85964153Seric 86064259Seric makemap btree /usr/data/base.db < /usr/data/base.txt 86164259Seric 86264259Seric 86367539Seric+--------------------------------+ 86467539Seric| MISCELLANEOUS SPECIAL FEATURES | 86567539Seric+--------------------------------+ 86667539Seric 86767539SericDOTTED_USER(name) 86867539Seric Sometimes it is convenient to merge configuration on a 86967539Seric centralized mail machine, for example, to forward all 87067539Seric root mail to a mail server. In this case it might be 87167539Seric useful to be able to treat the root addresses as a class 87267539Seric of addresses with subtle differences. You can do this 87367539Seric using dotted users. For example, a client might include 87467539Seric the alias: 87567539Seric 87667539Seric root: root.client1@server 87767539Seric 87867539Seric On the server, the mail configuration would include: 87967539Seric 88067539Seric DOTTED_USER(root) 88167539Seric 88267539Seric Aliases on the server that would match this address would 88367539Seric be "root.client", "root.*", and "root", tried in that 88467539Seric order. You can specify multiple addresses either by 88567539Seric joining them in one DOTTTED_USER macro or by having 88667539Seric multiple macros: 88767539Seric 88867539Seric DOTTED_USER(root) 88967539Seric DOTTED_USER(postmaster mailer-daemon) 89067539Seric 89167539Seric defines three dotted users. 89267539Seric 89367539Seric 89458363Seric+------------------+ 89558363Seric| FlexFAX SOFTWARE | 89658363Seric+------------------+ 89758363Seric 89858363SericSam Leffler's FlexFAX software is still in beta test -- but he expects a 89958363Sericpublic version out "later this week" [as of 3/1/93]. The following 90058363Sericblurb is direct from Sam: 90158363Seric 90264498Seric $Header: /usr/people/sam/fax/RCS/HOWTO,v 1.14 93/05/24 11:42:16 sam Exp $ 90358363Seric 90458363Seric How To Obtain This Software (in case all you get is this file) 90564498Seric -------------------------------------------------------------- 90658363Seric The source code is available for public ftp on 90764498Seric sgi.com sgi/fax/v2.1.src.tar.Z 90858363Seric (192.48.153.1) 90958363Seric 91058363Seric You can also obtain inst'able images for Silicon Graphics machines from 91164498Seric sgi.com sgi/fax/v2.1.inst.tar 91258363Seric (192.48.153.1) 91358363Seric 91458363Seric For example, 91558363Seric % ftp -n sgi.com 91658363Seric .... 91758363Seric ftp> user anonymous 91858363Seric ... <type in password> 91958363Seric ftp> cd sgi/fax 92058363Seric ftp> binary 92164498Seric ftp> get v2.1.src.tar.Z 92258363Seric 92364498Seric In general, the latest version of the 2.1 release of the software is 92464498Seric always available as "v2.1.src.tar.Z" or "v2.1.inst.tar" in the ftp 92564498Seric directory. This file is a link to the appropriate released version (so 92664498Seric don't waste your time retrieving the linked file as well!) Any files of 92764498Seric the form v2.1.*.patch are shell scripts that can be used to patch older 92864498Seric versions of the source code. For example, the file v2.1.0.patch would 92964498Seric contain patches to update v2.1.0.tar.Z. (Note to beta testers: this is 93064498Seric different than the naming conventions used during beta testing.) Patch 93164498Seric files only work to go between consecutive versions, so if you are 93264498Seric multiple versions behind the latest release, you will need to apply 93364498Seric each patch file between your current version and the latest. 93464498Seric 93564498Seric 93664498Seric Obtaining the Software by Electronic Mail 93764498Seric ----------------------------------------- 93864498Seric Do not send me requests for the software; they will be ignored (without 93964498Seric response). If you cannot use FTP at all, there is a service called 94064498Seric "ftpmail" available from gatekeeper.dec.com: you can send e-mail to 94164498Seric this machine and it will use FTP to retrieve files for you and send you 94264498Seric the files back again via e-mail. To find out more about the ftpmail 94358363Seric service, send a message to "ftpmail@gatekeeper.dec.com" whose body 94458363Seric consists of the single line "help". 94558363Seric 94664498Seric 94764498Seric Obtaining the Software Within Silicon Graphics 94864498Seric ---------------------------------------------- 94958363Seric Internal to Silicon Graphics there are inst'able images on the host 95064498Seric flake.asd in the directory /usr/dist. Thus you can do something like: 95158363Seric 95264498Seric % inst -f flake.asd.sgi.com:/usr/dist/flexfax 95358363Seric 95464498Seric to install the latest version of the software on your machine. 95558363Seric 95664498Seric 95764498Seric What to do Once You've Retrieved Stuff 95864498Seric -------------------------------------- 95958363Seric The external distributions come in a compressed or uncompressed tar 96058363Seric file. To extract the source distribution: 96158363Seric 96264498Seric % zcat v2.1.src.tar.Z | tar xf - 96358363Seric 96458363Seric (uncompress and extract individual files in current directory). To 96558363Seric unpack and install the client portion of the inst'able distribution: 96658363Seric 96758363Seric % mkdir dist 96864498Seric % cd dist; tar xf ../v2.1.inst.tar; cd .. 96958363Seric % inst -f dist/flexfax 97058363Seric ... 97158363Seric inst> go 97258363Seric 97358363Seric (Note, the dist subdirectory is because some versions of inst fail if 97464498Seric the files are in the current directory.) Server binaries are also 97564498Seric included in the inst'able images as flexfax.server.*. They are not 97664498Seric installed by default, so to get them also you need to do: 97758363Seric 97858363Seric % inst -f flexfax 97958363Seric ... 98058363Seric inst> install flexfax.server.* 98158363Seric inst> go 98258363Seric 98364498Seric The SGI binaries were built for Version 4.0.5H of the IRIX operating 98458363Seric system. They should work w/o problem on earlier versions of the 98558363Seric system, but I have not fully tested this. Also, note that to install a 98658363Seric server on an SGI machine, you need to have installed the Display 98758363Seric PostScript execution environment product (dps_eoe). Otherwise, the fax 98858363Seric server will not be able to convert PostScript to facsimile for 98958363Seric transmission. 99058363Seric 99164498Seric If you are working from the source distribution, look at the file 99264498Seric README in the top of the source tree. If you are working from the inst 99364498Seric images, the subsystem flexfax.man.readme contains the README file and 99464498Seric other useful pieces of information--the installed files are placed in 99564498Seric the directory /usr/local/doc/flexfax). Basically you will need to run 99664498Seric the faxaddmodem script to setup and configure your fax modem. Consult 99764498Seric the README file and the manual page for faxaddmodem for information. 99858363Seric 99958363Seric 100064498Seric FlexFAX Mail List 100164498Seric ----------------- 100258363Seric A mailing list for users of this software is located on sgi.com. 100358363Seric If you want to join this mailing list or have a list-related request 100458363Seric such as getting your name removed from it, send a request to 100558363Seric 100664498Seric majordomo@whizzer.wpd.sgi.com 100758363Seric 100864498Seric For example, to subscribe, send the line "subscribe flexfax" in 100964498Seric the body of your message. The line "help" will return a list of 101064498Seric the commands understood by the mailing list management software. 101164498Seric 101258363Seric Submissions (including bug reports) should be directed to: 101358363Seric 101458363Seric flexfax@sgi.com 101558363Seric 101664498Seric When corresponding about this software please always specify what 101764498Seric version you have, what system you're running on, and, if the problem is 101864498Seric specific to your modem, identify the modem and firmware revision. 101958363Seric 102064498Seric 102157945Seric+--------------------------------+ 102257945Seric| TWEAKING CONFIGURATION OPTIONS | 102357945Seric+--------------------------------+ 102457945Seric 102557945SericThere are a large number of configuration options that don't normally 102657945Sericneed to be changed. However, if you feel you need to tweak them, you 102757945Sericcan define the following M4 variables. This list is shown in four 102857945Sericcolumns: the name you define, the default value for that definition, 102957945Sericthe option or macro that is affected (either Ox for an option or Dx 103057945Sericfor a macro), and a brief description. Greater detail of the semantics 103157945Sericcan be found in the Installation and Operations Guide. 103257945Seric 103363582SericSome options are likely to be deprecated in future versions -- that is, 103463582Sericthe option is only included to provide back-compatibility. These are 103563582Sericmarked with "*". 103663582Seric 103765002SericRemember that these options are M4 variables, and hence may need to 103865002Sericbe quoted. In particular, arguments with commas will usually have to 103965002Sericbe ``double quoted, like this phrase'' to avoid having the comma 104065002Sericconfuse things. This is common for alias file definitions and for 104165002Sericthe read timeout. 104265002Seric 104357945SericM4 Variable Name Default Mac/Opt Description 104465002Seric================ ======= ======= =========== 104557945SericconfMAILER_NAME MAILER-DAEMON Dn The sender name used for 104657945Seric internally generated 104757945Seric outgoing messages. 104858681SericconfFROM_LINE From $g $d Dl The From_ line used when 104958681Seric sending to files or programs. 105057945SericconfFROM_HEADER $?x$x <$g>$|$g$. The format of an internally 105157945Seric Dq generated From: address. 1052*67929SericconfOPERATORS .:%@!^/[]+ Do Address operator characters. 105364153SericconfSMTP_LOGIN_MSG $j Sendmail $v/$Z ready at $b 105457945Seric De The initial (spontaneous) 105557945Seric SMTP greeting message. 105667820SericconfRECEIVED_HEADER $?sfrom $s $.$?_($?s$|from $.$_) $.by $j ($v/$Z)$?r with $r$. id $i$?u for $u$.; $b 105767820Seric HReceived 105867820Seric The format of the Received: 105967820Seric header in messages passed 106067820Seric through this host. It is 106167820Seric unwise to try to change this. 106259743SericconfSEVEN_BIT_INPUT False O7 Force input to seven bits? 106367551SericconfEIGHT_BIT_HANDLING pass8 O8 8-bit data handling 106457945SericconfALIAS_WAIT 10 Oa Wait (in minutes) for alias 106557945Seric file rebuild. 106658087SericconfMIN_FREE_BLOCKS 4 Ob Minimum number of free blocks 106758087Seric on queue filesystem to accept 106858087Seric SMTP mail. 106957945SericconfBLANK_SUB . OB Blank (space) substitution 107057945Seric character. 107165619SericconfCON_EXPENSIVE False Oc Avoid connecting immediately 107265619Seric to mailers marked expensive? 107357945SericconfCHECKPOINT_INTERVAL 10 OC Checkpoint queue files 107457945Seric every N recipients. 107557945SericconfDELIVERY_MODE background Od Default delivery mode. 107657945SericconfAUTO_REBUILD False OD Automatically rebuild 107757945Seric alias file if needed. 107857945SericconfERROR_MODE (undefined) Oe Error message mode. 107957945SericconfERROR_MESSAGE (undefined) OE Error message header/file. 108057945SericconfSAVE_FROM_LINES False Of Save extra leading 108157945Seric From_ lines. 108257945SericconfTEMP_FILE_MODE 0600 OF Temporary file mode. 108357945SericconfDEF_GROUP_ID 1 Og Default group id. 108457945SericconfMATCH_GECOS False OG Match GECOS field. 108557945SericconfMAX_HOP 17 Oh Maximum hop count. 108663582SericconfIGNORE_DOTS False Oi * Ignore dot as terminator 108757945Seric for incoming messages? 108857945SericconfBIND_OPTS (empty) OI Default options for BIND. 108963582SericconfMIME_FORMAT_ERRORS True Oj * Send error messages as MIME- 109059743Seric encapsulated messages per 109159743Seric RFC 1344. 109264153SericconfFORWARD_PATH (undefined) OJ The colon-separated list of 109364153Seric places to search for .forward 109464153Seric files. 109557945SericconfMCI_CACHE_SIZE 2 Ok Size of open connection cache. 109657945SericconfMCI_CACHE_TIMEOUT 5m OK Open connection cache timeout. 109763582SericconfUSE_ERRORS_TO False Ol * Use the Errors-To: header to 109863582Seric deliver error messages. This 109963582Seric should not be necessary because 110063582Seric of general acceptance of the 110163582Seric envelope/header distinction. 110257945SericconfLOG_LEVEL 9 OL Log level. 110357945SericconfME_TOO False Om Include sender in group 110457945Seric expansions. 110557945SericconfCHECK_ALIASES True On Check RHS of aliases when 110657945Seric running newaliases. 110763582SericconfOLD_STYLE_HEADERS True Oo * Assume that headers without 110857945Seric special chars are old style. 110958859SericconfDAEMON_OPTIONS (undefined) OO SMTP daemon options. 111058806SericconfPRIVACY_FLAGS authwarnings Op Privacy flags. 111157945SericconfCOPY_ERRORS_TO (undefined) OP Address for additional copies 111257945Seric of all error messages. 111357945SericconfQUEUE_FACTOR (undefined) Oq Slope of queue-only function 111458116SericconfREAD_TIMEOUT (undefined) Or SMTP read timeouts. 111567811SericconfDONT_PRUNE_ROUTES False OR Don't prune down route-addr 111667811Seric syntax addresses to the 111767811Seric minimum possible. 111863582SericconfSAFE_QUEUE True Os * Commit all messages to disk 111957945Seric before forking. 112058806SericconfMESSAGE_TIMEOUT 5d/4h OT Timeout for messages before 112158806Seric sending error/warning message. 112259317SericconfTIME_ZONE USE_SYSTEM Ot Time zone info -- can be 112357945Seric USE_SYSTEM to use the system's 112457945Seric idea, USE_TZ to use the user's 112557945Seric TZ envariable, or something 112657945Seric else to force that value. 112757945SericconfDEF_USER_ID 1 Ou Default user id. 112858718SericconfUSERDB_SPEC (undefined) OU User database specification. 112958859SericconfFALLBACK_MX (undefined) OV Fallback MX host. 113063857SericconfTRY_NULL_MX_LIST False Ow If we are the best MX for a 113163857Seric host and haven't made other 113263857Seric arrangements, try connecting 113363857Seric to the host directly; normally 113463857Seric this would be a config error. 113557945SericconfQUEUE_LA 8 Ox Load average at which queue-only 113657945Seric function kicks in. 113757945SericconfREFUSE_LA 12 OX Load average at which incoming 113857945Seric SMTP connections are refused. 113963582SericconfWORK_RECIPIENT_FACTOR 114063582Seric (undefined) Oy Cost of each recipient. 114163582SericconfSEPARATE_PROC False OY Run all deliveries in a 114257945Seric separate process. 114357945SericconfWORK_CLASS_FACTOR (undefined) Oz Priority multiplier for class. 114457945SericconfWORK_TIME_FACTOR (undefined) OZ Cost of each delivery attempt. 114558408SericconfCW_FILE /etc/sendmail.cw Name of file used to get the 114658408Seric Fw local additions to the $=w 114758408Seric class. 114864153SericconfSMTP_MAILER smtp - The mailer name used when 114963972Seric SMTP connectivity is required. 115067915Seric One of "smtp", "smtp8", or 115167915Seric "esmtp". 115263999SericconfLOCAL_MAILER local - The mailer name used when 115363999Seric local connectivity is required. 115463999Seric Almost always "local". 115564028SericconfRELAY_MAILER relay - The default mailer name used 115664028Seric for relaying any mail (e.g., 115764028Seric to a BITNET_RELAY, a 115864028Seric SMART_HOST, or whatever). 115964028Seric This can reasonably be "suucp" 116064028Seric if you are on a UUCP-connected 116164028Seric site. 116264259SericconfDOMAIN_NAME (undefined) Dj If defined, sets $j. 116357945Seric 116458087Seric 116557246Seric+-----------+ 116657246Seric| HIERARCHY | 116757246Seric+-----------+ 116857246Seric 116951220SericWithin this directory are several subdirectories, to wit: 117051220Seric 117151220Sericm4 General support routines. These are typically 117251220Seric very important and should not be changed without 117357247Seric very careful consideration. 117451220Seric 117551220Sericcf The configuration files themselves. They have 117651220Seric ".mc" suffixes, and must be run through m4 to 117751220Seric become complete. The resulting output should 117851220Seric have a ".cf" suffix. 117951220Seric 118051220Sericostype Definitions describing a particular operating 118151220Seric system type. These should always be referenced 118251220Seric using the OSTYPE macro in the .mc file. Examples 118351220Seric include "bsd4.3", "bsd4.4", "sunos3.5", and 118451220Seric "sunos4.1". 118551220Seric 118651220Sericdomain Definitions describing a particular domain, referenced 118751220Seric using the DOMAIN macro in the .mc file. These are 118851220Seric site dependent; for example, we contribute "cs.exposed.m4" 118951220Seric and "cs.hidden.m4" which both describe hosts in the 119051220Seric CS.Berkeley.EDU subdomain; the former displays the local 119151220Seric hostname (e.g., mammoth.CS.Berkeley.EDU), whereas the 119251220Seric latter does its best to hide the identity of the local 119351220Seric workstation inside the CS subdomain. 119451220Seric 119551220Sericmailer Descriptions of mailers. These are referenced using 119651220Seric the MAILER macro in the .mc file. 119751220Seric 119851220Sericsh Shell files used when building the .cf file from the 119951220Seric .mc file in the cf subdirectory. 120051220Seric 120151220Sericfeature These hold special orthogonal features that you might 120251220Seric want to include. They should be referenced using 120351220Seric the FEATURE macro. 120451220Seric 120551220Serichack Local hacks. These can be referenced using the HACK 120651220Seric macro. They shouldn't be of more than voyeuristic 120751220Seric interest outside the .Berkeley.EDU domain, but who knows? 120865957Seric We've all got our own peccadillos. 120951220Seric 121051268Sericsiteconfig Site configuration -- e.g., tables of locally connected 121151268Seric UUCP sites. 121251220Seric 121351268Seric 121457246Seric+------------------------+ 121557246Seric| ADMINISTRATIVE DETAILS | 121657246Seric+------------------------+ 121751220Seric 121851220SericThe following sections detail usage of certain internal parts of the 121951220Sericsendmail.cf file. Read them carefully if you are trying to modify 122051220Sericthe current model. If you find the above descriptions adequate, these 122151220Sericshould be {boring, confusing, tedious, ridiculous} (pick one or more). 122251220Seric 122351220SericRULESETS (* means built in to sendmail) 122451220Seric 122551220Seric 0 * Parsing 122651220Seric 1 * Sender rewriting 122751220Seric 2 * Recipient rewriting 122851220Seric 3 * Canonicalization 122951220Seric 4 * Post cleanup 123054839Seric 5 * Local address rewrite (after aliasing) 123160539Seric 1x mailer rules (sender qualification) 123260539Seric 2x mailer rules (recipient qualification) 123364801Seric 3x mailer rules (sender header qualification) 123464801Seric 4x mailer rules (recipient header qualification) 123564801Seric 5x mailer subroutines (general) 123664801Seric 6x mailer subroutines (general) 123764801Seric 7x mailer subroutines (general) 123864801Seric 8x reserved 123960539Seric 90 Mailertable host stripping 124060892Seric 96 Bottom half of Ruleset 3 (ruleset 6 in old sendmail) 124160892Seric 97 Hook for recursive ruleset 0 call (ruleset 7 in old sendmail) 124263857Seric 98 Local part of ruleset 0 (ruleset 8 in old sendmail) 124351220Seric 124451220Seric 124551220SericMAILERS 124651220Seric 124751220Seric 0 local, prog local and program mailers 124865218Seric 1 [e]smtp, relay SMTP channel 124965218Seric 2 uucp-* UNIX-to-UNIX Copy Program 125058087Seric 3 netnews Network News delivery 125158363Seric 4 fax Sam Leffler's FlexFAX software 125251220Seric 125351220Seric 125451220SericMACROS 125551220Seric 125651220Seric A 125751220Seric B Bitnet Relay 125865182Seric C 125954839Seric D The local domain -- usually not needed 126051220Seric E 126158363Seric F FAX Relay 126251220Seric G 126357591Seric H mail Hub (for mail clusters) 126451220Seric I 126551220Seric J 126651220Seric K 126767915Seric L Luser Relay 126851220Seric M Masquerade (who I claim to be) 126951220Seric N 127051220Seric O 127151220Seric P 127251220Seric Q 127351220Seric R Relay (for unqualified names) 127458071Seric S Smart Host 127551220Seric T 127651309Seric U my UUCP name (if I have a UUCP connection) 127751309Seric V UUCP Relay (class V hosts) 127851220Seric W UUCP Relay (class W hosts) 127951220Seric X UUCP Relay (class X hosts) 128051309Seric Y UUCP Relay (all other hosts) 128151220Seric Z Version number 128251220Seric 128351220Seric 128451220SericCLASSES 128551220Seric 128651220Seric A 128751220Seric B 128851220Seric C 128967539Seric D "dotted" users 129057246Seric E addresses that should not seem to come from $M 129154839Seric F hosts we forward for 129251220Seric G 129351220Seric H 129451220Seric I 129551220Seric J 129651220Seric K 129751220Seric L addresses that should not be forwarded to $R 129851220Seric M 129951220Seric N 130051220Seric O operators that indicate network operations (cannot be in local names) 130160211Seric P top level pseudo-domains: BITNET, FAX, UUCP, etc. 130251220Seric Q 130351220Seric R 130451220Seric S 130551220Seric T 130651220Seric U locally connected UUCP hosts 130751309Seric V UUCP hosts connected to relay $V 130851309Seric W UUCP hosts connected to relay $W 130951309Seric X UUCP hosts connected to relay $X 131051309Seric Y locally connected smart UUCP hosts 131164153Seric Z locally connected domain-ized UUCP hosts 131254839Seric . the class containing only a dot 131351220Seric 131451220Seric 131551220SericM4 DIVERSIONS 131651220Seric 131758071Seric 1 Local host detection and resolution 131858071Seric 2 Local Ruleset 3 additions 131958071Seric 3 Local Ruleset 0 additions 132051268Seric 4 UUCP Ruleset 0 additions 132151309Seric 5 locally interpreted names (overrides $R) 132254839Seric 6 local configuration (at top of file) 132351220Seric 7 mailer definitions 132466099Seric 8 132558681Seric 9 special local rulesets (1 and 2) 1326