home *** CD-ROM | disk | FTP | other *** search
/ Education Sampler 1992 [NeXTSTEP] / Education_1992_Sampler.iso / NeXT / Misc / HigherEducationMailbox.mbox / Archives_provide_val_.attach / May_91 / mail.373 < prev    next >
Text File  |  1991-05-21  |  4KB  |  121 lines

  1. {\rtf0\ansi{\fonttbl\f3\fswiss Helvetica;\f1\fmodern Courier;\f2\fmodern Ohlfs;}
  2. \paperw12220
  3. \paperh14980
  4. \margl1800
  5. \margr1800
  6. \pard\tx360\tx6120\f3\b0\i0\ul0\fs28 domain name BIND mail sendmail resolv.conf mailhost\
  7. \
  8. Q:  How should I set up mail on a existing network?  How do I get domain name resolution from a known domain name server?  What are the differences between the sendmail files?\
  9. \
  10. A:  This is a multiple-step procedure that should be done with the help of a local system administrator.  You need to know the hostnames and IP addresses of the servers and other information of your net.  All the changes need to be done by root.\
  11. \
  12.  
  13. \b Domain name BINDing on a client machine:\
  14.  
  15. \b0 \
  16. You need to setup 
  17. \f1 /etc/resolv.conf
  18. \f3 .  There is a man page for resolver(5).  Here is a quick overview of what needs to be set up. 
  19. \f1 /etc/resolv.conf
  20. \f3  takes lines of two forms.  One line specifies the domain name.  The other lines indicate which machine serves the binding.  A typical 
  21. \f1 /etc/resolv.conf
  22. \f3  looks like this:\
  23. \
  24.  
  25. \pard\tx2120\tx3440\tx6120\f1\li720 domain    foo.com\
  26. nameserver    129.11.2.38\
  27. nameserver    129.11.4.3\
  28.  
  29. \pard\tx360\tx6120\f3 \
  30. The domain name server machine needs to know the hostnames and IP addresses of its clients.  See SysAdmin/ApD_BIND.wn for details on how to set up a domain name server.  Note that this might differ on your domain name server depending on what version of BIND you run on your net.  Setting up a domain name server won't be discussed here.\
  31. \
  32. The domain name binder appends the domain name to local machines.  Entries in the NetInfo machines directory shouldn't have the domain name appended to them, if there's only one value for the name property.  You can have domain-appended hosts by adding them as a second value for the name property in the NetInfo machines directory.  A typical entry in NetInfo would then look like this:\
  33. \
  34.  
  35. \pard\tx1120\tx6120\f1\li720 myhost# 
  36. \b niutil -read 
  37. \i domain
  38. \i0  /machines/
  39. \i hostname
  40. \b0\i0 \
  41. ip_address: 129.18.11.199 \
  42. name: 
  43. \i hostname
  44. \i0  
  45. \i hostname
  46. \i0 .next.com\
  47.  
  48. \pard\tx360\tx6120\f3\b \
  49.  
  50. \b0 Note that there might be additional properties listed (such as a 
  51. \b serves
  52. \b0  property).\
  53. \
  54.  
  55. \b Possible sendmail setups:
  56. \b0 \
  57. \
  58.  
  59. \i sendmail.subsidiary.cf
  60. \i0  is the default configuration file.  Local mail is delivered locally, mail to machines in the local domain is delivered directly to those machines, and mail to machines in any other domains is forwarded to “mailhost.”\
  61. \
  62.  
  63. \i sendmail.sharedsubsidiary.cf
  64. \i0  is used if you mount the directory 
  65. \f1 /usr/spool/mail
  66. \f3  from “mailhost.”  It delivers mail to machines in the local domain directly to those machines.  All other mail (local mail and non-local domains) goes to “mailhost.”\
  67. \
  68.  
  69. \i sendmail.mailhost.cf
  70. \i0  is used on the machine that is the mailhost.  It tries to deliver all mail directly to its location.  You can edit this file to specify an even smarter mail relay to handle the addresses the mailhost doesn't understand.\
  71. \
  72.  
  73. \b Connect to a known mailhost:\
  74.  
  75. \b0 \
  76. • Launch NetInfoManager and add the host that you know to act as a mailhost to the machines directory in the appropriate domain (likely the root domain); add “mailhost” as its second hostname in the name property.   The NetInfo database entry might look like:\
  77. \
  78.  
  79. \pard\tx1120\tx6120\f1\li720 myhost# 
  80. \b niutil -read 
  81. \i domain
  82. \i0  /machines/mailhost
  83. \b0 \
  84. ip_address: 129.18.11.199 \
  85. name: 
  86. \i hostname
  87. \i0  
  88. \i hostname
  89. \i0 .next.com mailhost\
  90.  
  91. \pard\tx360\tx6120\f3 \
  92. (As above, there might be additional properties listed.)\
  93. \
  94. • Set the sendmail.cf link to reference the correct file\
  95. \
  96.  
  97. \pard\tx1120\tx6120\f1\li720 myhost# 
  98. \b rm /etc/sendmail/sendmail.cf
  99. \b0 \
  100. myhost# 
  101. \b ln -s sendmail.subsidiary.cf \\     /etc/sendmail/sendmail.cf
  102. \b0 \
  103. \
  104.  
  105. \pard\tx360\tx6120\f3 Mail will be sent in the way described above.  A local machine is known as such if it has no domain appended to it and doesn't contain any `.' — for example, “mymachine” is local and “mymachine.foo.com” is not.\
  106. \
  107.  
  108. \b Setting up a mailhost:\
  109. \
  110.  
  111. \b0 This is described in the Network and System Administration booklet, chapter 5.  However, neither 
  112. \f1 sendmail.cf
  113. \f3  modification nor UUCP setup are covered.\
  114. \
  115. QA373\
  116. \
  117. Valid for 1.0 \
  118. Not valid for 2.0\
  119. \
  120.  
  121.