166282Seric Sendmail Version 8 266282Seric Frequently Asked Questions 3*67021Seric Version 8.4 of 04/20/94 466282Seric 566282Seric 6*67021SericThis FAQ is specific to Version 8 of sendmail. Other questions, 7*67021Sericparticularly regarding compilation and configuration, are answered 8*67021Sericin src/READ_ME and cf/README. 966282Seric 1066282Seric---------------------------------------------------------------------- 11*67021Seric * Where can I get Version 8? 12*67021Seric 13*67021Seric Via anonymous FTP from FTP.CS.Berkeley.EDU in /ucb/sendmail. 14*67021Seric---------------------------------------------------------------------- 1566282Seric * What are the differences between Version 8 and other versions? 1666282Seric 17*67021Seric See doc/changes/changes.me in the sendmail distribution. 1866282Seric---------------------------------------------------------------------- 1966282Seric * What happened to sendmail 6.x and 7.x? 2066282Seric 2166282Seric When I released a new version of sendmail, I changed it to 2266282Seric Release 6. Development continued in that tree until 4.4BSD 2366282Seric was released, when everything on the 4.4 tape was set to be 2466282Seric version 8.1. Version 7.x never existed. 2566282Seric---------------------------------------------------------------------- 2666282Seric * Version 8 requires a new version of "make". Where can I get this? 2766282Seric 2866282Seric Actually, Version 8 does not require a new version of "make". 2966282Seric It includes a collection of Makefiles for different architectures, 3066282Seric only one or two of which require the new "make". If you are 3166282Seric porting to a new architecture, start with Makefile.dist. 3266282Seric 3366282Seric If you really do want the new make, it is available on any of 34*67021Seric the BSD Net2 or 4.4-Lite distribution sites. These include: 3566282Seric 3666282Seric ftp.uu.net /systems/unix/bsd-sources 3766282Seric gatekeeper.dec.com /.0/BSD/net2 3866282Seric ucquais.cba.uc.edu /pub/net2 3966282Seric ftp.luth.se /pub/unix/4.3bsd/net2 4066282Seric 4166282Seric Diffs and instructions for building this version of make under 4266282Seric SunOS 4.1.x are available on ftp.css.itd.umich.edu in 4366282Seric /pub/systems/sun/Net2-make.sun4.diff.Z. 4466282Seric---------------------------------------------------------------------- 4566282Seric * What macro package do I use to format the V8 man pages? 4666282Seric 4766282Seric The BSD group switched over the the ``mandoc'' macros for 4866282Seric the 4.4 release. These include more hooks designed for 4966282Seric hypertext handling. However, new man pages won't format 5066282Seric under the old man macros. Fortunately, old man pages will 5166282Seric format under the new mandoc macros. 5266282Seric 53*67021Seric Get the new macros with the BSD Net2 or 4.4-Lite release. 5466282Seric 5566282Seric This macro set is also available with newer versions of groff. 5666282Seric---------------------------------------------------------------------- 5766282Seric * What books are available describing sendmail? 5866282Seric 59*67021Seric There is one book available devoted to sendmail: 6066282Seric 61*67021Seric Costales, Allman, and Rickert, _Sendmail_. O'Reilly & 62*67021Seric Associates. 63*67021Seric 64*67021Seric Several books have sendmail chapters, for example: 65*67021Seric 66*67021Seric Nemeth, Snyder, and Seebass, _Unix System Administration 6766282Seric Handbook_. Prentice-Hall. 68*67021Seric Carl-Mitchell and Quarterman, _Practical Internetworking with 6966282Seric TCP/IP and UNIX_. Addison-Wesley. 70*67021Seric Hunt, _TCP/IP Network Administration_. O'Reilly & Associates. 7166282Seric 72*67021Seric Another book about sendmail is due out "soon": 7366282Seric 74*67021Seric Avolio & Vixie, _Sendmail Theory and Practice_. Digital 7566282Seric Press (release date unknown). 7666282Seric---------------------------------------------------------------------- 7766282Seric * How do I make all my addresses appear to be from a single host? 7866282Seric 7966282Seric Using the V8 configuration macros, use: 8066282Seric 8166282Seric MASQUERADE_AS(my.dom.ain) 8266282Seric 8366282Seric This will cause all addresses to be sent out as being from 8466282Seric the indicated domain. 8566282Seric---------------------------------------------------------------------- 8666282Seric * How do I rewrite my From: lines to read ``First_Last@My.Domain''? 8766282Seric 8866282Seric There are a couple of ways of doing this. This describes using 8966282Seric the "user database" code. This is still experimental, and was 9066282Seric intended for a different purpose -- however, it does work 9166282Seric with a bit of care. It does require that you have the Berkeley 9266282Seric "db" package installed (it won't work with DBM). 9366282Seric 9466282Seric First, create your input file. This should have lines like: 9566282Seric 9666282Seric loginname:mailname First_Last 9766282Seric First_Last:maildrop loginname 9866282Seric 9966282Seric Install it in (say) /etc/userdb. Create the database: 10066282Seric 10166282Seric makemap btree /etc/userdb.db < /etc/userdb 10266282Seric 10366282Seric You can then create a config file that uses this. You will 10466282Seric have to include the following in your .mc file: 10566282Seric 10666282Seric define(confUSERDB_SPEC, /etc/userdb.db) 10766282Seric FEATURE(notsticky) 10866282Seric---------------------------------------------------------------------- 10966282Seric * So what was the user database feature intended for? 11066282Seric 11166282Seric The intent was to have all information for a given user (where 11266282Seric the user is the unique login name, not an inherently non-unique 11366282Seric full name) in one place. This would include phone numbers, 11466282Seric addresses, and so forth. The "maildrop" feature is because 11566282Seric Berkeley does not use a centralized mail server (there are a 11666282Seric number of reasons for this that are mostly historic), and so 11766282Seric we need to know where each user gets his or her mail delivered -- 11866282Seric i.e., the mail drop. 11966282Seric 12066282Seric We are in the process of setting up our environment so that 12166282Seric mail sent to an unqualified "name" goes to that person's 12266282Seric preferred maildrop; mail sent to "name@host" goes to that 12366282Seric host. The purpose of "FEATURE(notsticky)" is to cause 12466282Seric "name@host" to be looked up in the user database for delivery 12566282Seric to the maildrop. 12666282Seric---------------------------------------------------------------------- 12766282Seric * Why are you so hostile to using full names for e-mail addresses? 12866282Seric 12966282Seric Because full names are not unique. For example, the computer 13066282Seric community has two Andy Tannenbaums and two Peter Deutsches. 13166282Seric At one time, Bell Labs had two Stephen R. Bournes with offices 13266282Seric a few doors apart. You can create alternative addresses 13366282Seric (e.g., Stephen_R_Bourne_2), but that's even worse -- which 13466282Seric one of them has to have their name desecrated in this way? 13566282Seric And you can bet that they will get most of the other person's 13666282Seric email. 13766282Seric 13866282Seric So called "full names" are just longer versions of unique 13966282Seric names. Rather that lulling people into a sense of security, 14066282Seric I'd rather that it be clear that these handles are arbitrary. 14166282Seric People should use good user agents that have alias mappings 14266282Seric so that they can attach arbitrary names for their personal 14366282Seric use to those with whom they correspond. 14466282Seric 14566282Seric Even worse is fuzzy matching in e-mail -- this can make good 14666282Seric addresses turn bad. For example, I'm currently (to the best 14766282Seric of my knowledge) the only ``Allman'' at Berkeley, so mail 14866282Seric sent to "Allman@Berkeley.EDU" should get to me. But if 14966282Seric another Allman ever appears, this address could suddenly 15066282Seric become ambiguous. I've been the only Allman at Berkeley for 15166282Seric over fifteen years -- to suddenly have this "good address" 15266282Seric bounce mail because it is ambiguous would be a heinous wrong. 15366282Seric 15466282Seric Finger services should be as fuzzy as possible. Mail services 15566282Seric should be unique. 15666282Seric---------------------------------------------------------------------- 15766282Seric * When I use sendmail V8 with a Sun config file I get lines like: 15866282Seric 15966282Seric /etc/sendmail.cf: line 273: replacement $3 out of bounds 16066282Seric 16166282Seric the line in question reads: 16266282Seric 16366282Seric R$*<@$%y>$* $1<@$2.LOCAL>$3 user@ether 16466282Seric 16566282Seric what does this mean? How do I fix it? 16666282Seric 16766282Seric V8 doesn't recognize the Sun "$%y" syntax, so as far as it 16866282Seric is concerned, there is only a $1 and a $2 (but no $3) in this 16966282Seric line. Read Rick McCarty's paper on "Converting Standard Sun 17066282Seric Config Files to Sendmail Version 8", in the contrib directory 17166282Seric (file "converting.sun.configs") on the sendmail distribution 17266282Seric for a full discussion of how to do this. 17366282Seric---------------------------------------------------------------------- 17466282Seric * Should I use a wildcard MX for my domain? 17566282Seric 17666282Seric If at all possible, no. 17766282Seric 17866282Seric Wildcard MX records have lots of semantic "gotcha"s. For 17966282Seric example, they will match a host "unknown.your.domain" -- if 18066282Seric you don't explicitly test for unknown hosts in your domain, 18166282Seric you will get "config error: mail loops back to myself" 18266282Seric errors. 18366282Seric---------------------------------------------------------------------- 18466282Seric * I'm connected to the network via a SLIP link. Sometimes my sendmail 18566282Seric process hangs (although it looks like part of the message has been 18666282Seric transfered). Everything else works. What's wrong? 18766282Seric 18866282Seric Most likely, the problem isn't sendmail at all, but the low 18966282Seric level network connection. It's important that the MTU (Maximum 19066282Seric Transfer Unit) for the SLIP connection be set properly at both 19166282Seric ends. If they disagree, large packets will be trashed and 19266282Seric the connection will hang. 19366282Seric---------------------------------------------------------------------- 19466282Seric * I just upgraded to 8.x and suddenly I'm getting messages in my 19566282Seric syslog of the form "collect: I/O error on connection". What is 19666282Seric going wrong? 19766282Seric 19866282Seric Nothing. This is just a diagnosis of a condition that had 19966282Seric not been diagnosed before. If you are getting a lot of these 20066282Seric from a single host, there is probably some incompatibility 20166282Seric between 8.x and that host. If you get a lot of them in general, 20266282Seric you may have network problems that are causing connections to 20366282Seric get reset. 20466282Seric---------------------------------------------------------------------- 20566282Seric * How can I get sendmail to deliver local mail to $HOME/.mail 20666282Seric instead of into /usr/spool/mail (or /usr/mail)? 20766282Seric 20866282Seric This is a local mailer issue, not a sendmail issue. Either 20966282Seric modify your local mailer (source code will be required) or 21066282Seric change the program called in the "local" mailer configuration 21166282Seric description to be a new program that does this local delivery. 21266282Seric I understand that "procmail" works well, although I haven't 21366282Seric used it myself. 21466786Seric 21566786Seric You might be interested in reading the paper ``HLFSD: Delivering 21666786Seric Email to your $HOME'' available in the Proceedings of the 21766786Seric USENIX System Administration (LISA VII) Conference (November 21866786Seric 1993). This is also available via public FTP from 21966786Seric ftp.cs.columbia.edu:/pub/hlfsd/{README.hlfsd,hlfsd.ps}. 22066282Seric---------------------------------------------------------------------- 22166282Seric * Under V8, the "From " header gets mysteriously munged when I send 22266282Seric to an alias. 22366282Seric 22466282Seric ``It's not a bug, it's a feature.'' This happens when you have 22566282Seric a "owner-list" alias and you send to "list". V8 propogates the 22666282Seric owner information into the envelope sender field (which appears 22766282Seric as the "From " header on UNIX mail or as the Return-Path: header) 22866282Seric so that downstream errors are properly returned to the mailing 22966282Seric list owner instead of to the sender. In order to make this 23066282Seric appear as sensible as possible to end users, I recommend making 23166282Seric the owner point to a "request" address -- for example: 23266282Seric 23366282Seric list: :include:/path/name/list.list 23466282Seric owner-list: list-request 23566282Seric list-request: eric 23666282Seric 23766282Seric This will make message sent to "list" come out as being 23866282Seric "From list-request" instead of "From eric". 23966282Seric---------------------------------------------------------------------- 24066282Seric * There are four UUCP mailers listed in the configuration files. 24166282Seric Which one should I use? 24266282Seric 24366282Seric The choice is partly a matter of local preferences and what is 24466282Seric running at the other end of your UUCP connection. Unlike good 24566282Seric protocols that define what will go over the wire, UUCP uses 24666282Seric the policy that you should do what is right for the other end; 24766282Seric if they change, you have to change. This makes it hard to 24866282Seric do the right thing, and discourages people from updating their 24966282Seric software. In general, if you can avoid UUCP, please do. 25066282Seric 25166282Seric If you can't avoid it, you'll have to find the version that is 25266282Seric closest to what the other end accepts. Following is a summary 25366282Seric of the UUCP mailers available. 25466282Seric 25566282Seric uucp-old (obsolete name: "uucp") 25666282Seric This is the oldest, the worst (but the closest to UUCP) way of 25766282Seric sending messages accros UUCP connections. It does bangify 25866282Seric everything and prepends $U (your UUCP name) to the sender's 25966282Seric address (which can already be a bang path itself). It can 26066282Seric only send to one address at a time, so it spends a lot of 26166282Seric time copying duplicates of messages. Avoid this if at all 26266282Seric possible. 26366282Seric 26466282Seric uucp-new (obsolete name: "suucp") 26566282Seric The same as above, except that it assumes that in one rmail 26666282Seric command you can specify several recipients. It still has a 26766282Seric lot of other problems. 26866282Seric 26966282Seric uucp-dom 27066282Seric This UUCP mailer keeps everything as domain addresses. 27166282Seric Basically, it uses the SMTP mailer rewriting rules. 27266282Seric 27366282Seric Unfortunately, a lot of UUCP mailer transport agents require 27466282Seric bangified addresses in the envelope, although you can use 27566282Seric domain-based addresses in the message header. (The envelope 27666282Seric shows up as the From_ line on UNIX mail.) So.... 27766282Seric 27866282Seric uucp-uudom 27966282Seric This is a cross between uucp-new (for the envelope addresses) 28066282Seric and uucp-dom (for the header addresses). It bangifies the 28166282Seric envelope sender (From_ line in messages) without adding the 28266282Seric local hostname, unless there is no host name on the address 28366282Seric at all (e.g., "wolf") or the host component is a UUCP host name 28466282Seric instead of a domain name ("somehost!wolf" instead of 28566282Seric "some.dom.ain!wolf"). 28666282Seric 28766282Seric Examples: 28866282Seric 28966282Seric We are on host grasp.insa-lyon.fr (UUCP host name "grasp"). The 29066282Seric following summarizes the sender rewriting for various mailers. 29166282Seric 29266282Seric Mailer sender rewriting in the envelope 29366282Seric ------ ------ ------------------------- 29466282Seric uucp-{old,new} wolf grasp!wolf 29566282Seric uucp-dom wolf wolf@grasp.insa-lyon.fr 29666282Seric uucp-uudom wolf grasp.insa-lyon.fr!wolf 29766282Seric 29866282Seric uucp-{old,new} wolf@fr.net grasp!fr.net!wolf 29966282Seric uucp-dom wolf@fr.net wolf@fr.net 30066282Seric uucp-uudom wolf@fr.net fr.net!wolf 30166282Seric 30266282Seric uucp-{old,new} somehost!wolf grasp!somehost!wolf 30366282Seric uucp-dom somehost!wolf somehost!wolf@grasp.insa-lyon.fr 30466282Seric uucp-uudom somehost!wolf grasp.insa-lyon.fr!somehost!wolf 30566282Seric---------------------------------------------------------------------- 30666282Seric * I'm trying to to get my mail to go into queue only mode, and it 30766282Seric delivers the mail interactively anyway. (Or, I'm trying to use 30866282Seric the "don't deliver to expensive mailer" flag, and it doesn't 30966282Seric delivers the mail interactively anyway.) I can see it does it: 31066282Seric here's the output of "sendmail -v foo@somehost" (or Mail -v or 31166282Seric equivalent). 31266282Seric 31366282Seric The -v flag to sendmail (which is implied by the -v flag to 31466282Seric Mail and other programs in that family) tells sendmail to 31566282Seric watch the transaction. Since you have explicitly asked to 31666282Seric see what's going on, it assumes that you do not want to to 31766282Seric auto-queue, and turns that feature off. Remove the -v flag 31866282Seric and use a "tail -f" of the log instead to see what's going on. 31966282Seric 32066282Seric If you are trying to use the "don't deliver to expensive mailer" 32166282Seric flag (mailer flag "e"), be sure you also turn on global option 32266282Seric "c" -- otherwise it ignores the mailer flag. 32366282Seric---------------------------------------------------------------------- 32466285Seric * I'm getting "Local configuration error" messages, such as: 32566285Seric 32666285Seric 553 relay.domain.net config error: mail loops back to myself 32766285Seric 554 <user@domain.net>... Local configuration error 32866285Seric 32966285Seric How can I solve this problem? 33066285Seric 33166285Seric You have asked mail to the domain (e.g., domain.net) to be 33266285Seric forwarded to a specific host (in this case, relay.domain.net) 33366285Seric by using an MX record, but the relay machine doesn't recognize 33466285Seric itself as domain.net. Add domain.net to /etc/sendmail.cw 33566285Seric (if you are using FEATURE(use_cw_file)) or add "Cw domain.net" 33666285Seric to your configuration file. 33766282Seric---------------------------------------------------------------------- 33866285Seric * I want to run Sendmail version 8 on my DEC system, but you don't 33966285Seric have MAIL11V3 support in sendmail. How do I handle this? 34066285Seric 34166285Seric Get Paul Vixie's reimplementation of the mail11 protocol 34266285Seric from gatekeeper.dec.com in /pub/DEC/gwtools. 34366285Seric---------------------------------------------------------------------- 344