home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk1.iso / answers / mailpaths / part1 < prev    next >
Encoding:
Internet Message Format  |  1994-10-06  |  8.3 KB

  1. Path: bloom-beacon.mit.edu!hookup!yeshua.marcam.com!MathWorks.Com!europa.eng.gtefsd.com!swiss.ans.net!news.dfn.de!Germany.EU.net!EU.net!uunet!not-for-mail
  2. From: tale@uunet.uu.net (David C Lawrence)
  3. Newsgroups: news.lists,news.admin.misc,news.answers
  4. Subject: How to Construct the Mailpaths File
  5. Supersedes: <mailpaths_775784524@uunet.uu.net>
  6. Followup-To: news.admin.misc
  7. Date: 3 Oct 1994 01:57:51 -0400
  8. Organization: UUNET Technologies Inc, Falls Church, VA, USA
  9. Lines: 151
  10. Approved: tale@uunet.uu.net
  11. Expires: 2 Dec 94 17:57:49 GMT
  12. Message-ID: <mailpaths_781163869@uunet.uu.net>
  13. NNTP-Posting-Host: rodan.uu.net
  14. Xref: bloom-beacon.mit.edu news.lists:1398 news.admin.misc:23038 news.answers:26717
  15.  
  16. Archive-name: mailpaths/part1
  17. Original-author: Gene Spafford (spaf@cs.purdue.edu)
  18. Comment: enhanced & edited until 5/93 by spaf@cs.purdue.edu (Gene Spafford)
  19. Last-change: 28 Jun 1994 by tale@uunet.uu.net (David C Lawrence)
  20.  
  21. UNIX News software after B-news version 2.10 -- including C news and INN --
  22. has been designed to make it simpler to submit articles to moderated
  23. newsgroups and to reply via mail to posted articles.  For these
  24. functions to work, the file "mailpaths" must exist in the news library
  25. and contain current information.  This file describes the syntax of
  26. the contents of the file and how to construct it for your B News or C
  27. News system.
  28.  
  29. INN's method is described in the moderators(5) and inn.conf(5) manual
  30. pages; if you do not have locally moderated groups to worry about it
  31. is probably easiest to simply define moderatormailer in inn.conf as
  32. one of the machines listed below.
  33.  
  34. Some systems may not work in precisely the manner described here.  In
  35. particular, some user-agent programs may consult a file of moderator
  36. addresses directly.  The system news administrator should consult the
  37. documentation and man pages to determine if this description applies
  38. to the local configuration and modify it accordiningly.
  39.  
  40. You can test submissions to moderated newsgroups by posting to the
  41. newsgroup misc.test.moderated.  If your article successfully reached
  42. the moderator of the group then you should receive an automated reply
  43. back confirming the appearance of your message.  There is also a
  44. regular posting in the group that shows the apparent source of
  45. submissions, which may help in diagnosing why your mail was not returned.
  46.  
  47. Syntax
  48. ------
  49. All lines in the file consist of a keyword followed by whitespace,
  50. followed by a printf-style format string which is used to encode a mail
  51. address.  The format string should be constructed so that there is a
  52. single "%s" in the field, and other information necessary to construct
  53. a valid address to the appropriate site (see below).
  54.  
  55. The keyword field consists of either the word "internet", the word
  56. "backbone", or some newsgroup pattern.  These are examined by the
  57. software to determine which format-string to use.  Note that the FIRST
  58. appropriate line matched is the one used -- thus, the "backbone"
  59. keyword line should be placed last in the line if regional or local
  60. moderated groups are supported.
  61.  
  62. Also note that the match software quits if it runs out of newsgroup
  63. pattern, and if the pattern present matches the newsgroup.  Thus,
  64. having the entries:
  65.     comp.foo        foo@nowhere.edu
  66.     comp.foo.bar    bar@someplace.org
  67. would always send mail to the moderator of "comp.foo" and not to the
  68. moderator of "comp.foo.bar", no matter which of the two newsgroups was
  69. specified!   For proper operation, you would need to list them thusly:
  70.     comp.foo.bar    bar@someplace.org
  71.     comp.foo        foo@nowhere.edu
  72.  
  73. Addresses that end up with both "!" and "@" symbols in the resulting
  74. address get converted so that only "!" symbols appear in the final
  75. address.  An address of the form "foo!bar!baz@barf" will get converted
  76. to "foo!bar!barf!baz" and then mailed.  This should work properly, for
  77. "dumb" mailers but you should test it to make sure; "smart" mailers
  78. should have the format fields encoded as a simple "%s". Note that *any*
  79. address with more than a single "@" in it is illegal.
  80.  
  81. Submissions to moderated groups
  82. -------------------------------
  83. When you attempt to post to a moderated newsgroup (indicated by the
  84. letter "m" in the 4th field of the "active" file for that group), 
  85. the action of "inews" is to mail the submission to the moderator.
  86. This is done by searching through "mailpaths" file for a keyword
  87. matching the newsgroup being posted to, or, by default, the keyword
  88. "backbone".  Matching occurs as in the "sys" file -- thus,
  89. "world" and "all" will also match everything, while "news" or 
  90. "news.all" will only match articles posted in the "news" category.
  91. This feature can be used to support local moderated groups.
  92.  
  93. Once a line has been matched, the name of the moderated group is
  94. transformed into an address.  This is done by first turning all the
  95. imbedded periods within the newsgroup name into hyphens (e.g.,
  96. "news.lists" becomes "news-lists") because many mailers mishandle
  97. addresses with periods in the username (periods are supposed to be
  98. delimiters only in the host/domain part of RFC822 addresses, but some
  99. mailers "overreact").  Next, the transformed group name is encoded into
  100. an address using the format-string present on the line matched from
  101. "mailpaths" and the article is mailed.  Thus, a posting to "news.lists"
  102. from a site with the line
  103.     backbone        emory!gatech!%s 
  104. in the mailpaths file would have the article mailed to
  105. "emory!gatech!news-lists".  Likewise, a line like
  106.     backbone    %s@gatech.edu
  107. would result in the article being mailed to "news-lists@gatech.edu".
  108. To make the mechanism for moderated postings simpler, a subset of the 
  109. best-connected sites (plus some others) have committed to keeping a complete
  110. up-to-date set of mail aliases for the moderated groups.  Therefore, to
  111. build this line in your "mailpaths" file, you need only construct
  112. an address to get the mail to one of these sites.  In turn, once the
  113. submission reaches that site, it will be forwarded on to the
  114. appropriate moderator's mailbox.
  115.  
  116. The sites currently maintaining these lists are given in the following
  117. list.  Pick the one that is "closest" to your site and use it in your
  118. "backbone" format string:
  119.  
  120.     ames.arc.nasa.gov        beaver.cs.washington.edu  cis.ohio-state.edu
  121.     decwrl.dec.com           linus.mitre.org           math.waterloo.edu
  122.     moderators.univ-lyon1.fr nac.no                    ncren.net
  123.     pipex.co.uk              rutgers.edu               tektronix.tek.com
  124.     ucsd.edu                 usenet.ufl.edu            uunet.uu.net
  125.  
  126. All EUnet customers should use their feeding EUnet news server as
  127. 'backbone' for posts to moderated groups.  For example, German EUnet
  128. customers would use news.germany.eu.net.  Non-EUnet sites in Europe
  129. may forward through pipex.co.uk (aka pipex.net).
  130.  
  131. The hostname moderators.uu.net is a pointer to all of the above sites.
  132. It is recommended that it be used rather than depending on any one of
  133. the sites all of the time.
  134.  
  135. Internet Mail
  136. -------------
  137. If you define the "INTERNET" flag when you build 2.11 news, the
  138. software will use the internet-style "From:" header when addressing
  139. replies mailed to postings.  If your mailer does not have this capability,
  140. you can still (possibly) achieve the same thing by defining the
  141. "internet" line in your "mailpaths" file to forward such mail to
  142. a host that does have a mailer which understands internet-style addresses.
  143.  
  144. The format of this line is very similar to the "backbone" line.  As an
  145. example, consider:
  146.     internet    emory!gatech!mcnc!%s
  147. Thus, if "INTERNET" was defined when this version of news was built,
  148. any reply to a news article would not travel along the "Path:", but
  149. would instead be sent to "mcnc" for interpretation and remailing.
  150. For example, to reply to this article, the mail would be sent to
  151. "emory!gatech!mcnc!tale@uunet.uu.net"  ->
  152. "emory!gatech!mcnc!uunet.uu.net!tale"
  153.  
  154. Note:  This is being provided as a service to sites which do not
  155. have routing mailers or which have difficulty replying to articles.
  156. It is *NOT* intended for everyone to pass mail to other sites to send.
  157. Excessive use of this feature may result in severe problems for
  158. the sites doing the relaying, so please simply define this field to
  159. be "%s" if your mailer understands domain-style (internet-style)
  160. addressing.
  161.  
  162. The following sites will accept internet-format mail for forwarding:
  163.  
  164.     beaver.cs.washington.edu    decwrl.dec.com  kddlab.kddlabs.co.jp
  165.     math.waterloo.edu           ncren.net       ucsd.edu
  166.     uunet.uu.net
  167.