home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / sendmail / uk-sendmail2.1 / Rules.a / mailers.m4 < prev    next >
Encoding:
Text File  |  1988-11-18  |  6.1 KB  |  197 lines

  1. ###############################################################################
  2. ###############################################################################
  3. #####
  4. #####    @(#)mailers.m4    UK-2.1 sendmail configuration        18/11/88
  5. #####
  6. #####        The Mailer specifications
  7. #####
  8. ###############################################################################
  9. ###############################################################################
  10.  
  11.  
  12. ####################################################################
  13. ###
  14. ###        Local and Program Mailer specification
  15. ###
  16. ####################################################################
  17.  
  18. Mlocal,   P=/bin/mail, F=rnlsmFD, S=20, R=20, A=mail -d $u 
  19. Mbinmail, P=/bin/mail, F=rnlsmFD, S=20, R=20, A=mail -d $u 
  20. Mprog,    P=/bin/sh,   F=nlsFD,   S=20, R=20, A=sh -c $u 
  21.  
  22. S20
  23. R<$+>            $@<$1>            return transport addr
  24.  
  25. R~$+            $1            remove '~' in To: line
  26. R$+@[$+]        $@$1@[$2]        domain literals
  27.  
  28. ifdef(`LOCALSHOWUUCP',
  29. `# we assume an address is a uucp address if it contains more than two
  30. # hostnames (as opposed to domain names). This is not always right..
  31. R$+%$-%$-@$+        $:$>12$1%$2%$3@$4    strip outer domain name
  32. R$+%$-%$-@$+        $@$>8$1%$2%$3@$4    convert to uucp address')
  33.  
  34. ifdef(`LOCALSHOWNRS',
  35. `R$+@$-.$+        $@$>9$1@$2.$3        convert to NRS ordering')
  36.  
  37. ifdef(`LOCALSHOWLDOMAIN',
  38. `R$+@$+            $@$1@$2            return non-local address
  39. ifdef(`LOCALSHOWNRS',
  40. `R$+            $@$>9$1@$J        add local domain - NRS style',
  41. `R$+            $@$1@$J            add local domain - 822 style')')
  42.  
  43. ifdef(`ETHERNAME',`
  44. ###################################################################
  45. ###
  46. ###        Ethernet Mailer specification
  47. ###
  48. ###################################################################
  49.  
  50. Mether,    P=[IPC], F=nsmFDMuXC, S=21, R=21, A=IPC $h
  51.  
  52. S21
  53. R$+@$+            $@$1@$2            address ok
  54. R$+            $@$1@ETHERNAME        add ether domain name')
  55.  
  56. ifdef(`TCPNAME',`
  57. ###################################################################
  58. ###
  59. ###        TCP Mailer specification
  60. ###
  61. ###################################################################
  62.  
  63. Mtcp,    P=[IPC], F=nsmFDMuXL, S=22, R=22, A=IPC $h, E=\r\n 
  64.  
  65. #
  66. #  header addresses are kept in percent style, rather than 822 style as
  67. #  sendmail can not produce a correct routed 822 address from another style
  68. #
  69. S22
  70. R<$+>            $@$>6$1            transport addr in 822 style
  71.  
  72. R$+@$+            $@$1@$2            address ok
  73. R$+            $@$1@TCPNAME        add tcp domain name')
  74.  
  75. ifdef(`UUCPNAME',`
  76. ###################################################################
  77. ###
  78. ###        UUCP Mailer specification
  79. ###
  80. ###################################################################
  81.  
  82. ifdef(`UUCPMUUCP',`
  83. Muucp, F=nsmFDMuh, S=23, R=23, M=100000, ifdef(`UUCPAUTH',`
  84.     P=/usr/lib/authorise, A=authorise uucp $g $h /usr/lib/uucp/',`
  85.     P=/usr/lib/uucp/muucp, A=')muucp -r -gA -f$f@UUCPNAME -H$U $h $u
  86.  
  87. #
  88. #  RFC 976 style.  Note, however, that addresses are kept in percent style,
  89. #  rather than 822 style as sendmail can not produce a correct routed 822
  90. #  address from another style
  91. #
  92. S23
  93. R<$+>            $@<$1>            return transport addr
  94.  
  95. R$+@$+            $@$1@$2            address ok
  96. R$+            $@$1@UUCPNAME        add uucp domain name',`
  97. Muucp, F=sFDMuh, S=23, R=23, M=100000, ifdef(`UUCPAUTH',`
  98.     P=/usr/lib/authorise, A=authorise uucp $g $h /usr/bin/',`
  99.     P=/usr/bin/uux, A=')uux - -r -gA $h!rmail ($u)
  100.  
  101. #
  102. #  Addresses are converted back to uucp style.
  103. #
  104. S23
  105. R<$+>            $@<$1>            return transport addr
  106.  
  107. R$+@$+            $:$>8$1@$2        convert to uucp style
  108. R$+!$+            $@$1!$2            address ok
  109. R$+            $@UUCPNAME!$1        add uucp domain name')')
  110.  
  111. ifdef(`JANETNAME',`
  112. ###################################################################
  113. ###
  114. ###        Janet Mailer specification
  115. ###
  116. ###################################################################
  117.  
  118. ifdef(`JANETHHSEND',`
  119. Mniftp, F=nsmFDMxu, S=24, R=24, M=100000, ifdef(`JANETAUTH',`
  120.     P=/usr/lib/authorise, A=authorise janet $g $h /usr/lib/x25/',`
  121.     P=/usr/lib/x25/hhsend, A=')hhsend $h $u',`
  122. Mniftp, F=SnsmFDMxu, S=24, R=24, M=100000, ifdef(`JANETAUTH',`
  123.     P=/usr/lib/authorise, A=authorise janet $g $h /usr/lib/niftp/',`
  124.     P=/usr/lib/niftp/ni_send, A=')ni_send -f $g $h $u')
  125.  
  126. S24
  127. R<$+>            $@<$1>            return transport addr
  128.  
  129. R$+@$+            $@$>9$1@$2        RFC822 -> NRS style
  130.  
  131. R$+            $:$1@JANETNAME        add janet domain name
  132. R$+@$+            $@$>9$1@$2        RFC822 -> NRS style')
  133.  
  134. ifdef(`NEWSNAME',`
  135. ###################################################################
  136. #####
  137. #####           News Mailer specification
  138. #####
  139. ###################################################################
  140. ifdef(`NEWSRELAYED',`
  141. # This host forwards all news messages to a relay',`
  142. Mnews, P=/usr/lib/news/mail-news, F=nlsmFDMPuh, S=25, A=inews -f $g -n $u -h
  143.  
  144. S25
  145. R<$+>            $@<$1>            return transport addr
  146. R$+@$+            $@$1@$2            address ok
  147. R$+            $@$1@NEWSNAME        add local domain')')
  148.  
  149. ifdef(`CSNETNAME',`
  150. ###################################################################
  151. ###
  152. ###        CSNet PhoneNet Mailer specification
  153. ###
  154. ###################################################################
  155.  
  156. Mpmdf, F=nsmFDM, S=26, R=26, M=100000, ifdef(`CSNETAUTH',`
  157.     P=/usr/lib/authorise, A=authorise csnet $g $h /usr/local/lib/pmdf/',`
  158.     P=/usr/local/lib/pmdf/pmdf-submit, A=')pmdf-submit -f $g $u
  159.  
  160. S26
  161. R<$+>            $@<$1>            return transport addr
  162.  
  163. R$+@$+            $@$1@$2            address ok
  164. R$+            $@$1@CSNETNAME        add csnet domain name')
  165.  
  166. ifdef(`DECNETNAME',`
  167. ###################################################################
  168. #####
  169. #####           DECNET Mailer specification
  170. #####
  171. ###################################################################
  172.  
  173. Mmail11, F=nsmFDM, S=27, R=27, M=100000, ifdef(`DECNETAUTH',`
  174.     P=/usr/lib/authorise, A=authorise decnet $g $h /usr/bin/',`
  175.     P=/usr/bin/mail11, A=')mail11 $f $x $h $u
  176.  
  177. S27
  178. R<$+>            $@<$1>            return transport addr
  179. R$+@$+            $:$>8$1@$2        convert to uucp style
  180. R$+!$+            $1::$2            and then to decnet style
  181. #R$+            $@DECNETNAME::$1    add local decnet name')
  182.  
  183. ifdef(`XEROXNAME',`
  184. ###################################################################
  185. #####
  186. #####           Xerox Ethernet Mailer specification
  187. #####
  188. ###################################################################
  189.  
  190. Mxerox, F=nsmFDSEuX, S=28, R=28, M=100000, ifdef(`XEROXAUTH',`
  191.     P=/usr/lib/authorise, A=authorise xerox $g $h /usr/lib/',`
  192.     P=/usr/lib/mxerox, A=')mxerox $u
  193.  
  194. S28
  195. R$+@$+                  $@$1@$2                 address ok
  196. R$+            $@$1@XEROXNAME        add local domain')
  197.