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

  1. This is a diff to convert sendmail.main.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.main.cf    Sat May  7 18:43:55 1988
  16. --- sendmail.main.new    Sat May  7 19:10:07 1988
  17. ***************
  18. *** 48,53 ****
  19. --- 48,58 ----
  20.   # Otherwise, the default is to use the hosts.byname map if YP
  21.   # is running (or else the /etc/hosts file if no YP).
  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. *** 91,96 ****
  32. --- 96,104 ----
  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. *** 154,163 ****
  43.   #########################
  44.   ###   Trusted users   ###
  45.   #########################
  46.   Troot
  47.   Tdaemon
  48.   Tuucp
  49.   
  50.   #############################
  51.   ###   Format of headers   ###
  52. --- 162,174 ----
  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. *** 269,274 ****
  68. --- 280,287 ----
  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. *** 366,373 ****
  79. --- 379,408 ----
  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.   
  100. + S14
  101. + # none needed
  102. + S24
  103. + # none needed
  104.   ############################################################
  105.   ############################################################
  106.   #####
  107. ***************
  108. *** 415,420 ****
  109. --- 450,470 ----
  110.   
  111.   # Clean up addresses for external use -- kills LOCAL, route-addr ,=>: and etc.
  112.   R$*            $:$>9 $1            Then continue...
  113. + # added by DBJ
  114. + ####################################################
  115. + #  This gets shoved in the center of Ruleset 0 in 
  116. + #  order to handle decnet nodes.
  117. + #
  118. + #  If $S (decnet gateway) is defined, then forward to $S, else
  119. + #  resolve to dna mailer.
  120. + #
  121. + #  added by DBJ
  122. + ####################################################
  123. + R$+<@$=S>        $?S $#ether $@$S $:$2!$1 $| $#dna $@$2 $:$1 $.
  124. + R$+<@$=S.uucp>        $?S $#ether $@$S $:$2!$1 $| $#dna $@$2 $:$1 $.
  125.   
  126.   # resolve UUCP domain
  127.   R<@$-.uucp>:$+        $#uucp  $@$1 $:$2        @host.uucp:...
  128.