home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / mail / uucp / 1652 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  4.4 KB

  1. Xref: sparky comp.mail.uucp:1652 biz.sco.general:2904
  2. Path: sparky!uunet!olivea!xenitec!golem!davidf
  3. From: davidf@golem.uucp (David J. Fiander)
  4. Newsgroups: comp.mail.uucp,biz.sco.general
  5. Subject: Re: Configuring MMDF for UUCP connection only
  6. Keywords: MMDF, UUCP, cookbook
  7. Message-ID: <1992Aug13.000104.5642@golem.uucp>
  8. Date: 13 Aug 92 00:01:04 GMT
  9. References: <1992Aug11.141744.19183@clpd.kodak.com>
  10. Lines: 125
  11.  
  12. According to bulli@kodak.com:
  13. >I want to send mail to anyone on the net by using the standard domain
  14. >addressing, e.g. bulli@kodak.com. How can I set up MMDF to forward
  15. >everything to an outside address via UUCP, even if the address is not
  16. >foo.UUCP? (I guess somewhere in /usr/mmdf/table or so ...)
  17.  
  18. You should probably get the FAX-pack that SCO support has on
  19. configuring MMDF; copies are floating around the net (too bad
  20. _I_ don't have one, or I'd forward it to youo (hint, hint)).
  21.  
  22. The following shar file is everything you need to set up a
  23. single node site with one connection to the outside world.
  24. Change 'ME' to your host name anywhere it may appear, and
  25. 'SMART' to the name of your smart host.
  26.  
  27. In the root.dom, uucp.chn, and uucp.dom files you will want to
  28. make sure that if your gateway has a domain name that you can
  29. handle both the domain name and the plain uucp name.
  30.  
  31. - David
  32.  
  33. #!/bin/sh
  34. # This is a SHell ARchive(shar), meaning:
  35. # 1. Remove everything above the #!/bin/sh line.
  36. # 2. Save the resulting text in a file.
  37. # 3. Execute the file with /bin/sh (not csh) to create the files:
  38. #
  39. # List of Archived Files:
  40. #
  41. #      mmdftailor
  42. #      table/local.chn
  43. #      table/uucp.chn
  44. #      table/root.dom
  45. #      table/uucp.dom
  46. #
  47. # This archive created: Wed Aug 12 19:58:19 EDT 1992
  48. #
  49. echo "x - mmdftailor (993 characters)"
  50. if [ -f "mmdftailor" ]
  51. then echo "$0: will not over-write existing file 'mmdftailor'"
  52. else
  53. sed 's/^X//' <<\SHARC_EOF > mmdftailor
  54. X# The 'exec' means that the shell that the uucp channel fires up
  55. X# doesn't have to stick around and suck up resources.
  56. XUuxstr    "exec uux - -r"
  57. X
  58. XMLOCNAME ME
  59. XMLOCDOM UUCP
  60. X
  61. XMTBL aliases,                show="Mail alias mappings"
  62. XMTBL uucp,    file="uucp.chn",    show="UUCP channel table"
  63. XMTBL uudom,    file="uucp.dom",    show="UUCP domain table",
  64. X    flags=route, flags=partial
  65. XMTBL local,    file="local.chn",    show="Local channel table"
  66. XMTBL rootdom,    file="root.dom",    show="Root domain table",
  67. X    flags=route, flags=partial
  68. X
  69. XALIAS table=aliases, trusted, nobypass
  70. X
  71. XMDMN "UUCP", table=uudom
  72. XMDMN "", table=rootdom
  73. X
  74. X# The channel log level has to be set before the channels are
  75. X# declared, since the channel log level is defined to be that
  76. X# in effect when the channel structure is initialised.
  77. XMCHANLOG    level=FAT
  78. X
  79. XMCHN local, show="Local delivery", mod=reg, ap=822
  80. XMCHN uucp, show="UUCP delivery", mod=imm, ap=822
  81. XMCHN badhosts, show="Bad host delivery", mod=imm, ap=822,
  82. X    host="SMART", tbl=uucp, pgm=uucp
  83. X
  84. XMMSGLOG        level=FST
  85. SHARC_EOF
  86. if [ 993 -ne `wc -c < mmdftailor` ]
  87. then echo "$0: transmit error 'mmdftailor' (should have been 993 chars)"
  88. fi
  89. fi # end of overwriting check
  90. echo "x - table/local.chn (28 characters)"
  91. if [ -f "table/local.chn" ]
  92. then echo "$0: will not over-write existing file 'table/local.chn'"
  93. else
  94. sed 's/^X//' <<\SHARC_EOF > table/local.chn
  95. XME        ME.uucp
  96. XME.uucp    ME.uucp
  97. SHARC_EOF
  98. if [ 28 -ne `wc -c < table/local.chn` ]
  99. then echo "$0: transmit error 'table/local.chn' (should have been 28 chars)"
  100. fi
  101. fi # end of overwriting check
  102. echo "x - table/uucp.chn (15 characters)"
  103. if [ -f "table/uucp.chn" ]
  104. then echo "$0: will not over-write existing file 'table/uucp.chn'"
  105. else
  106. sed 's/^X//' <<\SHARC_EOF > table/uucp.chn
  107. XSMART    SMART!%s
  108. SHARC_EOF
  109. if [ 15 -ne `wc -c < table/uucp.chn` ]
  110. then echo "$0: transmit error 'table/uucp.chn' (should have been 15 chars)"
  111. fi
  112. fi # end of overwriting check
  113. echo "x - table/root.dom (23 characters)"
  114. if [ -f "table/root.dom" ]
  115. then echo "$0: will not over-write existing file 'table/root.dom'"
  116. else
  117. sed 's/^X//' <<\SHARC_EOF > table/root.dom
  118. XME    ME.uucp
  119. XSMART    SMART
  120. SHARC_EOF
  121. if [ 23 -ne `wc -c < table/root.dom` ]
  122. then echo "$0: transmit error 'table/root.dom' (should have been 23 chars)"
  123. fi
  124. fi # end of overwriting check
  125. echo "x - table/uucp.dom (11 characters)"
  126. if [ -f "table/uucp.dom" ]
  127. then echo "$0: will not over-write existing file 'table/uucp.dom'"
  128. else
  129. sed 's/^X//' <<\SHARC_EOF > table/uucp.dom
  130. XME    ME.UUCP
  131. SHARC_EOF
  132. if [ 11 -ne `wc -c < table/uucp.dom` ]
  133. then echo "$0: transmit error 'table/uucp.dom' (should have been 11 chars)"
  134. fi
  135. fi # end of overwriting check
  136. exit 0
  137.