home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / upc12bad.zip / hostpath < prev    next >
Text File  |  1991-10-06  |  6KB  |  92 lines

  1. # *--------------------------------------------------------------------*
  2. # *   HOSTPATH                                                         *
  3. # *                                                                    *
  4. # *   Sample host path file for UUPC/extended; this file defines       *
  5. # *   routing for connected hosts which are not defined in the         *
  6. # *   systems file, aliases for remote and local hosts, and            *
  7. # *   information for routing mail through external programs           *
  8. # *   (gateways).                                                      *
  9. # *                                                                    *
  10. # *   If used, this file must be named HOSTPATH and MUST be placed     *
  11. # *   in the directory defined by the ConfDif variable in in your      *
  12. # *   UUPC.RC Use of this file is optional; if omitted, mail to        *
  13. # *   directly connected hosts is routed queued for it, mail for       *
  14. # *   other hosts is routed via the default mailserver defined in      *
  15. # *   the UUPC.RC file.                                                *
  16. # *                                                                    *
  17. # *   Do NOT use this file if you have installed UUPC/extended and     *
  18. # *   customized this file.                                            *
  19. # *--------------------------------------------------------------------*
  20.  
  21. # *--------------------------------------------------------------------*
  22. # *   As one might guess, empty lines and lines beginning with a       *
  23. # *   pound sign (#) are ignored; on all other lines, tokens are       *
  24. # *   separated by one or whitespace characters.                       *
  25. # *--------------------------------------------------------------------*
  26.  
  27. # *--------------------------------------------------------------------*
  28. # *   Special note:  To avoid loops, the most number of hops in a      *
  29. # *   defined path is 100 hops.  After that, UUPC/extended gives       *
  30. # *   up and uses the last system.                                     *
  31. # *--------------------------------------------------------------------*
  32.  
  33. # *--------------------------------------------------------------------*
  34. # *   Here's a routing entry for the remote system "foo"; it           *
  35. # *   defines all mail for foo (or routed through foo via an           *
  36. # *   address such as foo!fie!jack to be delivered via the system      *
  37. # *   beanstalk.  If beanstalk is not defined in either this file      *
  38. # *   or in the SYSTEMS file, mail for beanstalk (and by               *
  39. # *   extension, foo) will routed via the default mail server.         *
  40. # *--------------------------------------------------------------------*
  41. foo             beanstalk
  42.  
  43. # *--------------------------------------------------------------------*
  44. # *   Another routing entry, this time using an asterisk to denote     *
  45. # *   wildcards for an entire sub-domain.  The asterisk, if it         *
  46. # *   appears, must be the first character in the entry be             *
  47. # *   immediately be followed by a period.  This example defines       *
  48. # *   that all mail for the domain kew.com is routed via the           *
  49. # *   system kewgate.kew.com.                                          *
  50. # *--------------------------------------------------------------------*
  51. *.kew.com       kewgate.kew.com
  52.  
  53. # *--------------------------------------------------------------------*
  54. # *   This file is also used to define aliases for a local or          *
  55. # *   remote system.  For example, if the local system name is         *
  56. # *   "bar" and mail for "fubar" should be delivered locally, then     *
  57. # *   the following entry will suffice.                                *
  58. # *--------------------------------------------------------------------*
  59. fubar           =       bar
  60.  
  61. # *--------------------------------------------------------------------*
  62. # *   A more complex use of aliases is site hiding, where your         *
  63. # *   mail server handles multiple hosts but presents a single         *
  64. # *   system name for all of the systems to the world.  This is        *
  65. # *   ill-advised in the general case, but useful where defining       *
  66. # *   each hidden host is impractical or costly.  To use site          *
  67. # *   hiding, define the system name you specified in the UUPC.RC      *
  68. # *   variable domain as the alias of the system you are hiding        *
  69. # *   behind; this overrides the default definition of the domain      *
  70. # *   name being an alias of your nodename.  For example, if your      *
  71. # *   your mail server is mainframe, and your (and your mail           *
  72. # *   server's) domain name is mainframe.xxx.yyy, then the             *
  73. # *   following hides you behind mainframe.                            *
  74. # *                                                                    *
  75. # *     Note:  You can use the domain/fdomain variables in UUPC.RC     *
  76. # *            to perform site hiding as well.                         *
  77. # *--------------------------------------------------------------------*
  78. mainframe.xxx.yyy       =       mainframe
  79.  
  80. # *--------------------------------------------------------------------*
  81. # *   Finally, this file can also direct mail for a host or domain     *
  82. # *   to an external program for final delivery.  For example,         *
  83. # *   mail can be fed to a batch file which invokes a LAN mail         *
  84. # *   delivery program.  The invoked program will be passed three      *
  85. # *   parameters; they are, in order:  the name of the gateway as      *
  86. # *   defined in this file, the name of the host the mail is to be     *
  87. # *   delivered to, and the user on the host the mail is to be         *
  88. # *   delivered to.  To deliver all mail for *.lan.xxx.yyy to the      *
  89. # *   program "forward", the following example will suffice.           *
  90. # *--------------------------------------------------------------------*
  91. *.lan.xxx.yyy   |       forward
  92.