home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / fido / sendmail.ufg < prev    next >
Internet Message Format  |  1994-03-07  |  6KB

  1. From: merlin@ieee.org (Burt Juda)
  2. Reply-To: hostmaster@fidonet.fidonet.org
  3. Subject: sendmail rules for MXing for .fidonet.org sites
  4.  
  5. # The header lines which your gate receives in 'mail' messages from
  6. # the Internet *can* be forced into "Internet" format by your MX-receiver,
  7. # even though it's being transmitted via UUCP.  Most sites will typically
  8. # use different sets of header re-writing rules when dealing with a
  9. # "UUCP" site as opposed to sending over the Internet via SMTP.
  10. #
  11. # The UFGATE utilities MailIn/MailOut *CAN* deal with things being in
  12. # Internet format, it does NOT have to have things in bangpath format.
  13. # The biggest advantage this has is to allow your smart-host to handle
  14. # sending to a destination where the 'path' has changed since the message
  15. # came thru (it might be a reply to a 2-month old message).  Better yet,
  16. # it allows the smart-host to use the DNS for sending those replies
  17. # whereever possible.
  18. #
  19. # Essentially a set of rules for handling UUCP transmission with "Internet"
  20. # headers is what is called for.  I have been using this configuration
  21. # successfully between my machines using sendmail since I've been running
  22. # 'ieee.org'.
  23. #
  24. # If you have an MX-receiver (ie: he has an IP address and running an SMTP
  25. # daemon) and we have your MX-record pointing to him, you may want to
  26. # forward this on to the administrator of the system you deal with.
  27. # If he's willing and able to install the extra rulesets for your system,
  28. # the end result will be less bounces for both you and him to deal with
  29. # along with more efficient mail delivery.
  30. #
  31. ######################################################################
  32. #   Burt Juda         Internet:  merlin@ieee.org
  33. ######################################################################
  34.  
  35. # If you only handle MXing for ONE .fidonet.org site, you can use the
  36. # following macro.  Otherwise, the uucpname of the site will have to
  37. # be spelled out explicitly in Ruleset 0.
  38. CX fidosite
  39.  
  40. # If you have given the FidoNet gateway SysOp a logon on your machine,
  41. # you can set the following to a FILE in his $HOME directory so that
  42. # he can maintain the list of FidoNet Nets that must be mapped to
  43. # delivery to his system.
  44. FF/home/sysop_login/gatenets
  45.  
  46. # otherwise, you can set the class-macro to be a list of the Nets which
  47. # get delivered to his system.
  48. # CF n###
  49. # CF n###
  50.  
  51.  
  52. ######################################################################
  53. #
  54. # "ufgate" UUCP mailer: Uses UUCP transport but domain-style naming
  55. #          Contains special hacks for FidoNet gateway
  56. #          Use this mailer definition for delivery to sites which
  57. #          are gateways for .fidonet.org.
  58. #
  59. ######################################################################
  60.  
  61. # Mufgate, P=/usr/bin/uux, F=msDFMhuU, S=17, R=23, 
  62.  
  63. Mufgate, P=/usr/bin/uux, F=msDFMC, S=27, R=28, 
  64.     A=uux - -r $h!rmail ($u)
  65.     
  66. S27
  67. # convert Sender field
  68. # use this if your site can handle the .BITNET pseudo-domain
  69. R$+%$+.BITNET<@$+>    $@$1<@$2.bitnet>    user@host.BITNET
  70.  
  71. # use this if you map your system to the mail domainname
  72. R$*<@$=w>$*        $:$1<@$m>$3        LOCAL => hostname
  73. R$*<@$m.LOCAL>$*    $:$1<@$m>$3        LOCAL => hostname
  74. R$*<@$m>$*        $:$1<@$m>$2        LOCAL => hostname
  75.  
  76. # otherwise use only the following
  77. R$*<@$=w.$m>$*        $:$1<@$m>$3        LOCAL => hostname
  78. R$*<@$+.$m>$*        $:$1<@$2.$m>$3        send our domain as is
  79.  
  80. R$*<@$+>$*        $@$1<@$2>$3        already ok
  81.  
  82. # if you map outgoing mail as the domain, leave as is
  83. # otherwise change $m to  $w.$m
  84. R$-            $@$1<@$m>
  85. R$-.$-            $@$1.$2<@$m>
  86. R$-.$-.$-        $@$1.$2.$3<@$m>
  87.  
  88. S28
  89. # Convert recipient (To, Cc) fields
  90. # The following will re-map UUCP-style addresses to Internet-style
  91. # addresses so that REPLIES can use your Nameserver instead of possibly
  92. # being sent to bad paths, thus minimizing bounces.
  93. # The class-macro T is assumed to be a list of the valid Top-Level domains
  94. # which your Nameserver can resolve, ie:  com org edu net mil gov, etc.
  95. #
  96. # strip preceeding path
  97. R$+!$+.fidonet.org!$+    $2.fidonet.org!$3
  98. # site.fidonet.org!user@domain => user@site.fidonet.org
  99. R$+.fidonet.org!$+<@$+.$=T>    $:$2<@$1.fidonet.org>
  100. # strip any preceeding path remaining from what is left
  101. R$+!$+<@$+.fidonet.org>        $@$2<@$3.fidonet.org>
  102.  
  103. # use this if your site can handle the .BITNET pseudo-domain
  104. R$+%$+.BITNET<@$+>    $@$1<@$2.bitnet>    user@host.BITNET
  105.  
  106. # use this if you map your system to the mail domainname
  107. R$*<@LOCAL>$*        $:$1<@$m>$2        LOCAL => hostname
  108. R$*<@$m.LOCAL>$*    $:$1<@$m>$2        LOCAL => hostname
  109. R$*<@$m>$*        $:$1<@$m>$2        LOCAL => hostname
  110.  
  111. R$*<@$=w>$*        $:$1<@$m>$3        LOCAL => hostname
  112. R$*<@$=w.$m>$*        $:$1<@$m>$3        LOCAL => hostname
  113. R$*<@$=w.LOCAL>$*    $:$1<@$m>$3        LOCAL => hostname
  114. R$*<@$=w.$m.LOCAL>$*    $:$1<@$m>$3        LOCAL => hostname
  115.  
  116. # if you map outgoing mail as the domain, leave as is
  117. # otherwise change $m to  $w.$m
  118. R$+<@LOCAL>        $:$1<@$m>        make sure domain is tacked on
  119. R$*<@$+.$m>$*        $:$1<@$2.$m>$3        send our domain as is
  120.  
  121. R$*<@$+>$*        $@$1<@$2>$3        already ok
  122.  
  123. # if you map outgoing mail as the domain, leave as is
  124. # otherwise change $m to  $w.$m
  125. R$-            $@$1<@$m>
  126. R$-.$-            $@$1.$2<@$m>
  127. R$-.$-.$-        $@$1.$2.$3<@$m>
  128.  
  129. R$+            $:$>7$1
  130.  
  131. ###############
  132. # Ruleset 0
  133. ###############
  134.  
  135. # map the site itself
  136. R$X.fidonet.org!$+        $#ufgate $@$X $:$1.fidonet.org!$2
  137. R$+<@$X.fidonet.org>        $#ufgate $@$X $:$2.fidonet.org!$1
  138.  
  139. # map the Nets that get gated thru this site
  140. R$+.$=F.z1.fidonet.org!$+    $#ufgate $@$X $:$1.$2.z1.fidonet.org!$3
  141. R$+<@$+.$=F.z1.fidonet.org>    $#ufgate $@$X $:$2.$3.z1.fidonet.org!$1
  142.  
  143. ############################ eof ######################################
  144.  
  145.