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

  1. Path: sparky!uunet!cs.utexas.edu!usc!sol.ctr.columbia.edu!ira.uka.de!chx400!urz.unibas.ch!bioftp.unibas.ch!comp.bioz.unibas.ch!doelz
  2. Newsgroups: comp.sys.sgi
  3. Subject: Re: how do I make sendmail use the name server rather than /etc/hosts
  4. Message-ID: <1992Jul30.055734.1792@comp.bioz.unibas.ch>
  5. From: doelz@comp.bioz.unibas.ch (Reinhard Doelz)
  6. Date: Thu, 30 Jul 1992 05:57:34 GMT
  7. Reply-To: doelz@urz.unibas.ch
  8. Sender: usenet@comp.bioz.unibas.ch (NEWS transaction account)
  9. References: <712451466@anthrax.cs.duke.edu>
  10. Organization: EMBnet Switzerland [BASEL]   
  11. Nntp-Posting-Host: biox.embnet.unibas.ch
  12. Lines: 75
  13.  
  14. Please do NOT consider the following to be an authorized advice. It just 
  15. works here.
  16.  
  17. The problem you describe, 
  18. In article <712451466@anthrax.cs.duke.edu>, jwt@duke.cs.duke.edu (Jeffrey W. Tannehill) writes:
  19. |> 
  20. |>     Our sendmail.cf seems to work fine for local hosts, or hosts in the
  21. |> /etc/hosts file that are in our local domain (cs.duke.edu).  However, 
  22. ...
  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. ...
  29.  
  30. should be resolvable with the 'hostresorder' line in the /usr/etc/resolv.conf
  31. file. Mine looks as follows: 
  32.  
  33. ;
  34. ; RD 3-11-90
  35. domain unibas.ch
  36. nameserver 131.152.8.1
  37. nameserver 131.152.1.1
  38. nameserver 131.152.1.2
  39. hostresorder bind nis local 
  40. search unibas.ch bioz.unibas.ch embnet.unibas.ch
  41.  
  42.  
  43. In the /hosts file, I have something like 
  44.  
  45. 131.152.1.1 guru.ce.unibas.ch guru GURU bindmaster
  46.  
  47. and if I send to doelz@guru, it comes up like 
  48.  
  49. biox > Mail -s test -v doelz@guru
  50. test
  51. EOT
  52. doelz@guru... Connecting to guru.unibas.ch (forgn)...
  53. 220 guru.urz.unibas.ch Sendmail 5.57/Ultrix3.0-C ready at Thu, 30 Jul 92 07:52:03 +0200
  54. >>> HELO comp.bioz.unibas.ch
  55. 250 guru.urz.unibas.ch Hello comp.bioz.unibas.ch, pleased to meet you
  56. >>> MAIL From:<doelz@comp.bioz.unibas.ch>
  57. ...
  58.  
  59. but if I send to the authorized mail domain name, doelz@guru.urz.unibas.ch, it 
  60. uses the domain name server MX record: 
  61.  
  62. biox > Mail -s test -v doelz@guru.urz.unibas.ch
  63. test2
  64. EOT
  65. doelz@guru.urz.unibas.ch... Connecting to guru.ce.unibas.ch (forgn)...
  66. 220 guru.urz.unibas.ch Sendmail 5.57/Ultrix3.0-C ready at Thu, 30 Jul 92 07:53:09 +0200 
  67. ...
  68.  
  69. > guru.urz.unibas.ch 
  70. Server:  biox.embnet.unibas.ch
  71. Address:  131.152.8.1
  72.  
  73. guru.urz.unibas.ch      preference = 10, mail exchanger = guru.ce.unibas.ch
  74. guru.ce.unibas.ch       internet address = 131.152.1.1
  75.  
  76.  
  77. Maybe this helps. 
  78. Regards 
  79. Reinhard 
  80.   
  81. +----------------------------------+-------------------------------------+
  82. |    Dr. Reinhard Doelz            | RFC     doelz@urz.unibas.ch         |
  83. |      Biocomputing                | DECNET  20579::48130::doelz         |
  84. |Biozentrum der Universitaet       | X25     022846211142036::doelz      |
  85. |   Klingelbergstrasse 70          | FAX     x41 61 261- 6760 or 267- 2078     
  86. |     CH 4056 Basel                | TEL     x41 61 267- 2076 or 2247    |   
  87. +------------- bioftp.unibas.ch is the SWISS EMBnet node ----------------+
  88.                -----------------------------------------
  89.