home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume3 / dnamail / sub.diff < prev   
Text File  |  1989-02-03  |  4KB  |  137 lines

  1. This is a diff to convert sendmail.subsidiary.cf to use dnamail.
  2.  
  3. Changes:
  4.  
  5.   1) Define macro 'S' to be name of machine that can forward DECnet
  6.      mail (default is 'dnahost').  Comment out this line for
  7.      if this machine runs Sunlink/DNI.
  8.   2) Define class 'S' to be list of machines we can send mail to
  9.      via DECnet.
  10.   3) Add 'dna' as a trusted user.
  11.   4) Add 'dna' as a mailer
  12.   5) Addresses to machines in class 'S' are mailed by #dna
  13.      or forwarded to 'dnahost' to be mailed.
  14.  
  15. *** sendmail.subsidiary.cf    Sat May  7 18:43:55 1988
  16. --- sendmail.subsidiary.new    Sat May  7 19:10:58 1988
  17. ***************
  18. *** 36,41 ****
  19. --- 36,46 ----
  20.   DRmailhost
  21.   CRmailhost
  22.   
  23. + # define this $S if you want to forward decnet mail to $S
  24. + # if this node can handle decnet, then DON'T define $S
  25. + # DBJ
  26. + DSdnahost
  27.   #################################################
  28.   #
  29.   #    General configuration information
  30. ***************
  31. *** 79,84 ****
  32. --- 84,92 ----
  33.   DVSMI-3.2
  34.   
  35.   
  36. + # get list of decnet machines we can send mail to
  37. + FS/usr/sunlink/dna/dnahosts
  38.   ##########################
  39.   ###   Special macros   ###
  40.   ##########################
  41. ***************
  42. *** 142,151 ****
  43.   #########################
  44.   ###   Trusted users   ###
  45.   #########################
  46.   Troot
  47.   Tdaemon
  48.   Tuucp
  49.   
  50.   #############################
  51.   ###   Format of headers   ###
  52. --- 150,162 ----
  53.   #########################
  54.   ###   Trusted users   ###
  55.   #########################
  56. ! #
  57. ! # added dna, since dnamaild gets run as that user..
  58. ! #
  59.   Troot
  60.   Tdaemon
  61.   Tuucp
  62. + Tdna
  63.   
  64.   #############################
  65.   ###   Format of headers   ###
  66. ***************
  67. *** 257,262 ****
  68. --- 268,275 ----
  69.   S6
  70.   R$*<@$*$=D>$*        $1<@$2LOCAL>$4            convert local domain
  71.   R$*<@$*$=D.$=U>$*    $1<@$2LOCAL>$5            or full domain name
  72. + #added by DBJ - just in case someone still uses the old form
  73. + R$*<$*.decnet>$*    $1<$2.uucp>$3            convert to uucp
  74.   
  75.   ############################################################
  76.   ############################################################
  77. ***************
  78. *** 354,360 ****
  79. --- 367,396 ----
  80.   S23
  81.   R$+            $:$>5$1                convert to old style
  82.   
  83. + ############################################################
  84. + ############################################################
  85. + #####
  86. + #####        DECnet Mailer specification
  87. + #####
  88. + #####    Messages processed by this configuration are assumed to leave
  89. + #####   the internet domain.  Hence, they may not necessarily correspond
  90. + #####    to RFC822 in all details.
  91. + #####
  92. + #####   added by DBJ
  93. + #####
  94. + ############################################################
  95. + ############################################################
  96.   
  97. + Mdna,    P=/usr/sunlink/dna/dnamail, F=mnSF, S=14, R=24,
  98. +     A=dnamail -f $f -n $h $u
  99. + S14
  100. + # none needed
  101. + S24
  102. + # none needed
  103.   ############################################################
  104.   ############################################################
  105.   #####
  106. ***************
  107. *** 407,412 ****
  108. --- 443,463 ----
  109.   R<@$=V.uucp>:$+        $:$>9 $1            First clean up, then...
  110.   R<@$=V.uucp>:$+        $#uucp  $@$1 $:$2        @host.uucp:...
  111.   R$+<@$=V.uucp>        $#uucp  $@$2 $:$1        user@host.uucp
  112. + # added by DBJ
  113. + ####################################################
  114. + #  This gets shoved in the center of Ruleset 0 in 
  115. + #  order to handle decnet nodes.
  116. + #
  117. + #  If $S (decnet gateway) is defined, then forward to $S, else
  118. + #  resolve to dna mailer.
  119. + #
  120. + #  added by DBJ
  121. + ####################################################
  122. + R$+<@$=S>        $?S $#ether $@$S $:$2!$1 $| $#dna $@$2 $:$1 $.
  123. + R$+<@$=S.uucp>        $?S $#ether $@$S $:$2!$1 $| $#dna $@$2 $:$1 $.
  124.   
  125.   # optimize names of known ethernet hosts
  126.   R$*<@$*$%y.LOCAL>$*    $#ether $@$3 $:$1<@$2$3>$4    user@host.here
  127.