home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sgi / 11626 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  2.0 KB

  1. Path: sparky!uunet!gatech!concert!duke!jwt
  2. From: jwt@duke.cs.duke.edu (Jeffrey W. Tannehill)
  3. Newsgroups: comp.sys.sgi
  4. Subject: how do I make sendmail use the name server rather than /etc/hosts
  5. Message-ID: <712451466@anthrax.cs.duke.edu>
  6. Date: 29 Jul 92 23:11:07 GMT
  7. Organization: Duke University Computer Science Dept.; Durham, N.C.
  8. Lines: 34
  9.  
  10.  
  11.     Our sendmail.cf seems to work fine for local hosts, or hosts in the
  12. /etc/hosts file that are in our local domain (cs.duke.edu).  However, 
  13. if a host in another domain is specified and that host is in the hosts file,
  14. then the sendmail.cf file drops off the hosts' domain name and replaces it with
  15. cs.duke.edu .  Apparently this is due to the sequence of ruleset 0 rules
  16.  
  17.     # Canonicalize the host name.  Detect any failures.
  18.     R$*<@$+>$*              $:$1<@$[$2$:$2.$Y$]>$3
  19.  
  20.     # If we successfully canonicalize a hostname, but the result contains
  21.     # no dots, make it relative to our domain.
  22.     R$*<@$->$*              $1<@$2.$D>$3
  23.  
  24. Apparently, the first rule takes "bob@physics.phy.duke.edu" and changes it to 
  25. something like "bob@physics" and the second line then rewrites this as 
  26. "bob@physics.cs.duke.edu".  If the name services is consulted instead of the
  27. /etc/hosts file (i.e. I remove physics from the hosts file) then the mail
  28. is sent properly. I tried using the "-oI" option with sendmail, which the 
  29. man page says will
  30.  
  31.            Insist that the domain name server be running to resolve host names
  32.           and MX records.  Treat ECONNREFUSED errors from the resolver as
  33.           temporary failures.
  34.  
  35. but this had no effect when the entry for physics was in the /etc/hosts file.
  36. Since I prefer to use the name services anyway (it is more likely to be correct
  37. than the local /etc/hosts file), then is there anyway that I can make 
  38. sendmail consult the name services first?  
  39.  
  40. -- 
  41. /*______________________________Jeff Tannehill_______________________________*
  42.  * MAIL:  Duke Dept. of Computer Science        Internet: jwt@cs.duke.edu    *
  43.  *        Durham, NC 27708 USA                  PHONE: +1 919 660 6500       */
  44.