home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume8 / smail2 / part01 / doc / Trouble < prev   
Encoding:
Text File  |  1987-02-16  |  10.6 KB  |  252 lines

  1.         Common Problems and Recommended Solutions
  2.  
  3.             Updated 12/14/86
  4.  
  5. (1) The configuration shell script smail.cf.sh insists that
  6. I give it another domain that I'm authoritative for, but we
  7. don't have anything to give it.
  8.  
  9.     This is a common problem for small companies that only
  10.     have one machine, or for organizations that are originally
  11.     registering in COM/EDU/GOV and were never known in UUCP.
  12.  
  13.     The shell script is somewhat simple - it really should let
  14.     you just hit RETURN here.  But you can go ahead and follow
  15.     the examples anyway, and it shouldn't hurt anything.
  16.  
  17.     For example, if you're FOOBAR.COM:
  18.     Enter This Host's Name:
  19.     foobar
  20.     Enter This Host's Official Domain:
  21.     COM
  22.     Enter Any Equivalent Domain Classes:
  23.     foobar
  24.     Enter Any Domains For Which This Host Is An Authority:
  25.     foobar.UUCP
  26.     The first two lines mean that you are user@foobar.COM (the two
  27.     entries strung together.)  The second one means you also
  28.     understand what to do with user@foobar, which isn't really
  29.     legal but may tend to crop up from time to time.  The last
  30.     means you also understand user@foobar.UUCP, which is important
  31.     for upward compatibility since that's commonly generated by
  32.     other systems, by netnews software, and the like.
  33.  
  34. (2) I can send mail to others OK, but sometimes when they send mail
  35. to me or I send mail to others on my machine, it doesn't work.
  36. It says "couldn't resolve myhost.mydom!user".
  37.  
  38.     This is probably a configuration problem.  Look in defs.h to see
  39.     how you have MYDOM set.  It comes distributed as ".UUCP", but
  40.     you probably want to change this to the answer to the "Enter This
  41.     Host's Official Domain" question above.  If you don't run sendmail,
  42.     this is the only way smail has of knowing your host name.
  43.     (We really should have smail read this in from a file, for future
  44.     3rd party binary distributions, but so far we haven't.)
  45.  
  46. (3) Mail isn't getting through sometimes, and since I just installed
  47. this new software, I suspect it.  Or, I see munged header lines, and
  48. I don't know who is doing it.
  49.  
  50.     If you aren't sure where the mail is getting dropped (remember, UUCP
  51.     is an unreliable transport mechanism, so lots of things could be going
  52.     wrong) here's a trick we sometimes use to find out what's going on.
  53.     mv /bin/rmail /bin/realrmail
  54.  
  55.     cat > /bin/rmail
  56.     #! /bin/sh
  57.     umask 0
  58.     LF=/usr/spool/uucp/rmail.log
  59.     cat > /tmp/rm$$
  60.     echo " " >> $LF
  61.     date >> $LF
  62.     echo rmail $* >> $LF
  63.     cat /tmp/rm$$ >> $LF
  64.     realrmail $* < /tmp/rm$$
  65.     st=$?
  66.     rm /tmp/rm$$
  67.     exit $st
  68.     ^D
  69.     chmod 755 /bin/rmail
  70.     
  71.     This will keep a very verbose log of all incoming traffic into your
  72.     machine in LF, including the text as it arrived on your machine, and
  73.     the arguments to rmail.  You can tell whether it was broken when it
  74.     arrived or if you broke it, and you can reproduce the mail by editing
  75.     out the message (into, say, /tmp/msg) and running
  76.     realrmail args < /tmp/msg
  77.     using the args as they appear in the file.
  78.  
  79.     Some words of warning.  (a) These files can get big very fast if you
  80.     process much traffic through your machine, so be sure to clean them
  81.     out often.  (b) This saves everything, including the message body.
  82.     It is unethical to browse such logs unless a specific problem has
  83.     arisen which requires you to check the log.  This is one reason why
  84.     it's kept in /usr/spool/uucp, if you have a hidden directory on your
  85.     system that's even better.  (c) This extra set of file copies adds
  86.     overhead to your machine, so don't run this unless you suspect you
  87.     have a problem, and then take it out when you trust things again.
  88.  
  89.     There is a RECORD option in the code which is similar, but this
  90.     option saves the mail at a later stage, so you lose some information
  91.     about how it arrived on your machine.
  92.  
  93. (4) I don't understand how to set up subdomain of my domain.
  94.  
  95.     There are two ways to do this.  The easiest is just by recognizing
  96.     the subdomain host by their UUCP name.  If you are the gateway for
  97.     domain FOO.COM, then any mail through your sendmail to bar.FOO.COM
  98.     or to bar.myname.FOO.COM (where "myname" is your hosts's name) will
  99.     be treated as if it were bar.UUCP, so if the name "bar" is in your
  100.     path file, you're all set.  The disadvantage to this is that if you
  101.     want to create a subdomain whose name conflicts with a public name,
  102.     it won't work.  If you want to disable this code, look for "mydom"
  103.     in the sendmail.cf.
  104.  
  105.     A perhaps cleaner way is to explicitly put the subdomains into the
  106.     pathalias database.  Thus, if you have a.FOO.COM, b.FOO.COM, p.b.FOO.COM,
  107.     x.myname.FOO.COM, and y.myname.FOO.COM, you could include this in
  108.     your local pathalias input:
  109.     aname    .a.FOO.COM
  110.     bname    .b.FOO.COM
  111.     pname    .p.b.FOO.COM
  112.     xname    .x.myname.FOO.COM
  113.     yname    .y.myname.FOO.COM
  114.     In each case, "aname" is the UUCP name for host "a", etc.  This
  115.     sort of says "aname and a.FOO.COM are the same host."  This
  116.     description says that you have subdomains x and y under your host,
  117.     that there are peer subdomains a and b, and that you know about
  118.     a subdomain of b called p.  Other subdomains of a and b that
  119.     are not mentioned here will be routed through aname or bname as
  120.     gateways.  The only reason to mention p here would be if we have
  121.     a direct link and want to avoid routing through bname.  If you
  122.     do this, you have less strict requirements about name uniqueness:
  123.     aname, bname, pname, xname, and yname must still be unique, and
  124.     a.FOO.COM, b.FOO.COM, p.b.FOO.COM, x.myname.FOO.COM, and
  125.     y.myname.FOO.COM must also be unique (ignoring case, so that
  126.     two different hosts a.foo.com and A.FOO.COM conflict.)  In
  127.     particular, this means that if you have a local host with a name
  128.     that isn't unique, say "bilbo", you can safely create a subdomain
  129.     "bilbo.myname.FOO.COM", but you'll still have a problem if the
  130.     UUCP name of the host is "bilbo".  You may be able to make this
  131.     partly work using the pathalias "private" notation, but we advise
  132.     you to change the UUCP name to something unique.
  133.  
  134. (5) When another host in my domain sends mail to a third host in my
  135.     domain, it seems to get routed through the gateway even though
  136.     my host knows how to route directly.
  137.  
  138.     For example, suppose you have gateway cbosgd.att.com, and other
  139.     machines foo.att.com and bar.att.com.  Smail is installed on all
  140.     three machines.  But when a user on foo sends to user@bar.att.com,
  141.     the mail is routed via cbosgd.  Sometimes, you may even see this
  142.     happen for mail on foo to foo.
  143.  
  144.     There are two solutions.  The first is to make sure that foo knows
  145.     that bar.att.com is the same as bar (where "bar" is the uucp name.)
  146.     Include lines in the local pathalias input files like
  147.     foo    .foo.att.com
  148.     bar    .bar.att.com
  149.     cbosgd    .cbosgd.att.com
  150.     
  151.     The second solution is to declare foo to be a gateway for your
  152.     subdomain, e.g.
  153.     foo    .att.com
  154.     This will handle all mail to att.com locally on foo instead of
  155.     routing it through cbosgd.  (It also means you'd better be sure
  156.     to keep the routing tables on foo as up to date as on cbosgd.)
  157.  
  158.     The first method is strongly recommended for everyone.  The second
  159.     is appropriate only for well maintained and supported hosts.
  160.     Either should handle the problem.
  161.  
  162. (6) Mail to some domains isn't working.  For example, if I type
  163.  
  164.     smail -d USER@LLL-MFE.ARPA
  165.     
  166.     It says:
  167.  
  168.     resolve: parse address 'USER@LLL-MFE.ARPA' = 'USER' @ 'LLL-MFE.ARPA' (DOMAIN)
  169.     getpath: looking for '.LLL-MFE.ARPA'
  170.     getpath: looking for 'LLL-MFE.ARPA'
  171.     getpath: looking for '.ARPA'
  172.     getpath: looking for 'ARPA'
  173.     route 'LLL-MFE.ARPA' failed
  174.     resolve failed 'USER@LLL-MFE.ARPA' = 'USER' @ 'LLL-MFE.ARPA' (DOMAIN)
  175.  
  176.     There is a .arpa line in the pathalias database that looks like:
  177.  
  178.     .arpa    ihnp4!akgua!gatech!seismo!%s
  179.  
  180.     Chances are the pathalias database is out of order.  Remember
  181.     to run it through "sort -f" before storing it.
  182.  
  183. (7) People on the ARPANET are complaining about us sending them mail
  184.     from FOO.COM when we aren't on the ARPANET.
  185.  
  186.     Politely ask them to upgrade their mail system to support MX
  187.     records, as required by RFC's 973 and 974.
  188.  
  189.     If you have a COM, EDU, or GOV name confirmed by the UUCP Zone, and
  190.     you have a working forwarder, you have an officially allocated name
  191.     which you are entitled to use.
  192.  
  193.     However, do understand that the old way of handling things on the
  194.     ARPANET was to open a connection directly to the destination host
  195.     and send the mail via SMTP.  Many hosts assume that a name ending
  196.     in ARPA, COM, etc implies being on the ARPANET, and handle mail
  197.     this way.  (4.3BSD still does this.)  The above RFC's, approved in
  198.     January 1986, say that mailers are supposed to check for an MX
  199.     record, which says that mail for one domain should be delivered to
  200.     a different host to be forwarded.  As of December, 1986, many
  201.     ARPANET hosts still have mailers that understand MX, and the
  202.     standard UNIX and TOPS 20 mailers don't support it.  So politely
  203.     urge them to find whoever supports their mailer and get it upgraded
  204.     to support MX.  (Berkeley has a version of sendmail that supports
  205.     it, but it isn't in 4.3BSD.  An MX supporting sendmail can be found
  206.     on ucbarpa.Berkeley.EDU by logging in as anonymous and retrieving
  207.     pub/4.3/sendmail.MX.tar.  The file is 1.26MB.  The latest MMDF also
  208.     supports it.)  In the meantime, tell whoever is trying to send you
  209.     mail that mail to user@foo.COM (for example) can be sent to
  210.     foo.COM!user@seismo.CSS.GOV.
  211.  
  212. (8) My System V machine with sendmail produces the error message
  213.     "No ! in UUCP!" when I send local mail.
  214.  
  215.     This is a bug in older versions of sendmail.  If you have the
  216.     source to sendmail, make the following change to deliver.c to
  217.     fix the problem:
  218.  
  219.  
  220.     *** deliver.c.stock
  221.     --- deliver.c
  222.     ***************
  223.     *** 1016,1022
  224.               expand("$g", buf, &buf[sizeof buf - 1], CurEnv);
  225.               bang = index(buf, '!');
  226.               if (bang == NULL)
  227.     !             syserr("No ! in UUCP! (%s)", buf);
  228.               else
  229.               {
  230.                   *bang++ = '\0';
  231.  
  232.     --- 1016,1022 -----
  233.               expand("$g", buf, &buf[sizeof buf - 1], CurEnv);
  234.               bang = index(buf, '!');
  235.               if (bang == NULL)
  236.     !             return;
  237.               else
  238.               {
  239.                   *bang++ = '\0';
  240.  
  241.     If you do not have source to sendmail, a workaround is to edit
  242.     /usr/lib/sendmail.cf (or template.cf before you run make.cf.sh.)
  243.     Find the line beginning "Mlocal", and remove the "U" on that line.
  244.     This has an undesirable side effect, in that the From_ line will
  245.     be in a format not understood by mailx, but since most mailx replies
  246.     use the From: line, this should be a minor problem.
  247.  
  248. #
  249. # @(#)Trouble    2.1 smail 12/16/86
  250. # [Edited by MRH 12/14/86]
  251. #
  252.