home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / unix / armlinux / alpha / PARTITIONS / ROOT_GZ / root / etc / sendmail.cf < prev    next >
Encoding:
Text File  |  1995-05-24  |  7.7 KB  |  253 lines

  1. ##################################################################
  2. #####        SENDMAIL CONFIGURATION FILE  UK-1.4
  3. #####
  4. #####   Copyright Jim Crammond, Heriot-Watt University. Feb. 1986.
  5. #####
  6. #####    This configuration file maybe be freely distributed,
  7. #####    provided no profit is gained by doing so.
  8. ##################################################################
  9. #####        Edited by R.M.King for use over SLIP
  10. #####             at Southampton University
  11. ##################################################################
  12.  
  13. # offical site domain name
  14. DJecs.soton.ac.uk
  15. # offical host domain name
  16. Dj$w
  17. # my name
  18. DnMAILER-DAEMON
  19. # UNIX header format
  20. DlFrom $g $d remote from $U
  21. # delimiter (operator) characters (note '~' has been added)
  22. Do.:%@!^=/[]~
  23. # format of a total name
  24. Dq$?x$x <$g>$|$g$.
  25. #Dq <$g>
  26. # SMTP login message
  27. De$j Sendmail $v/$V ready at $b
  28. # location of alias file
  29. OA/etc/aliases
  30. # default delivery mode (deliver in background)
  31. Odbackground
  32. # mail to me too (needed for multihost sites)
  33. Om
  34. # (don't) connect to "expensive" mailers
  35. Oc
  36. # temporary file mode
  37. OF0644
  38. # default GID
  39. Og1
  40. # location of help file
  41. OH/usr/lib/sendmail.hf
  42. # log level
  43. OL9
  44. # default messages to old style
  45. Oo
  46. # send mail failure headers to user 'nameserver':
  47. OPnameserver
  48. # queue directory
  49. OQ/usr/spool/mqueue
  50. # read timeout -- violates protocols
  51. Or2h
  52. # status file
  53. OS/usr/sendmail.st
  54. # queue up everything before starting transmission
  55. # Os
  56. # ignore nameserver errors
  57. #OI
  58. # default timeout interval
  59. OT3w/9d
  60. # time zone names (V6 only)
  61. # OtGMT,BST
  62. # default UID
  63. Ou1
  64. # wizard's password
  65. # OWz3GvK.dPUxieQ
  66. # load averages at which to start queuing/refuse connections
  67. Ox16
  68. OX20
  69. ###   Message precedences   ###
  70. Pfirst-class=0
  71. Pspecial-delivery=100
  72. Pjunk=-100
  73. ###   Trusted users   ###
  74. Troot
  75. Tdaemon
  76. Tuucp
  77. Tmail
  78. ###   Format of headers   ###
  79. H?F?From: $q
  80. H?D?Date: $a
  81. H?M?Message-Id: <$p.$t@$j>
  82. H?F?Resent-From: $q
  83. H?D?Resent-Date: $a
  84. H?M?Resent-Message-Id: <$p.$t@$j>
  85. HSubject:
  86. H?R?Received: $?sfrom $s by $j; $b$.
  87. H?V?Via: $?s$s; $b$.
  88.  
  89. ###############################################
  90. #  Ruleset 0  --  Select mailer to be used    #
  91. ###############################################
  92. S0
  93. # strip local domain name(s)
  94. R$+@$+            $:$>15$1@$2
  95. # local mail
  96. R$-        $#local$:$1            local mail
  97. R$-.$-        $#local$:$1.$2            local mail
  98. R$-.$-.$-    $#local$:$1.$2.$3        local mail
  99. R$-.$-.$-.$-    $#local$:$1.$2.$3.$4        local mail
  100. R~$-        $#local$:$1            local mail
  101. #R$-        $#ether$@whirligig$:$1    local mail - maybe aliased
  102. #R$-.$-        $#ether$@whirligig$:$1.$2    added to handle F.Bloggs
  103. #R$-.$-.$-    $#ether$@whirligig$:$1.$2.$3    added to handle F.A.Bloggs
  104. #R$-.$-.$-.$-    $#ether$@whirligig$:$1.$2.$3.$4    added to handle F.A.C.Bloggs
  105. #R~$-        $#ether$@whirligig$:$1    local mail - no aliasing
  106. #
  107. # convert domain address into "<address>host.network" triple
  108. #  we would insist on .$=T, but let mail server work this out.
  109. R$+@$+            $:$>16$1@$2        routing and address conversion
  110. # select mailer
  111. R<$+>$-.ether        $#ether$@$2$:$1        local ethernet mail
  112. R<$+>$-.local        $#local$:$1        local mail
  113. # anything else with an '@' in is an error
  114. R$+@$+            $#error$:Domain Unknown
  115. # anything else - e.g. filenames, pipes etc goes to local mailer
  116. R$+            $#local$:$1        local
  117.  
  118. ##########################################
  119. #  Ruleset 3  --  Name Canonicalisation  #
  120. ##########################################
  121. S3
  122. #  handle special cases
  123. R$-            $@$1            return "user"
  124. R~$-            $@~$1            return "~ user"
  125. R<>            $@@            turn null into magic token
  126. #  basic textual canonicalisation
  127. R$*<$*>$*        $2            basic RFC 822 parsing
  128. R$+%$+            $1@$2            convert '%'s to '@'s
  129. R$+@$+@$+        $1%$2@$3        then reduce to only one '@'
  130.  
  131. ###########################################
  132. #  Ruleset 15  --  local domain handling  #
  133. ###########################################
  134. #
  135. #  This rule strips the domain part from local addresses
  136. #  and passes the local part back into ruleset 3
  137. S15
  138. #R$+@$J            $>3$1        strip local domain
  139. #R$+@$w          $@$>15$1@$J
  140.  
  141. #############################
  142. #  Ruleset 16  --  routing  #
  143. #############################
  144. S16
  145. R$+@$+            $:$>17$1@$2
  146. R<$+@$+>            $@$>16$1@whirligig.ecs.soton.ac.uk
  147.  
  148. ######################################
  149. #  Ruleset 17  --  channel matching  #
  150. ######################################
  151. #
  152. #  aka. "Gob it at Gloriana"
  153. S17
  154. R$+@arm.ecs.soton.ac.uk        $@<$1>arm.local
  155. R$+@arm.ecs.soton.ac        $@<$1>arm.local
  156. R$+@arm.ecs.soton        $@<$1>arm.local
  157. R$+@arm.ecs            $@<$1>arm.local
  158. R$+@arm            $@<$1>arm.local
  159. R$+@annex1.ecs.soton.ac.uk    $@<$1>arm.local
  160. R$+@annex1.ecs.soton.ac        $@<$1>arm.local
  161. R$+@annex1.ecs.soton        $@<$1>arm.local
  162. R$+@annex1.ecs            $@<$1>arm.local
  163. R$+@annex1            $@<$1>arm.local
  164. R$+@annex2.ecs.soton.ac.uk    $@<$1>arm.local
  165. R$+@annex2.ecs.soton.ac        $@<$1>arm.local
  166. R$+@annex2.ecs.soton        $@<$1>arm.local
  167. R$+@annex2.ecs            $@<$1>arm.local
  168. R$+@annex2            $@<$1>arm.local
  169. R$+@annex3.ecs.soton.ac.uk    $@<$1>arm.local
  170. R$+@annex3.ecs.soton.ac        $@<$1>arm.local
  171. R$+@annex3.ecs.soton        $@<$1>arm.local
  172. R$+@annex3.ecs            $@<$1>arm.local
  173. R$+@annex3            $@<$1>arm.local
  174. R$+@annex4.ecs.soton.ac.uk    $@<$1>arm.local
  175. R$+@annex4.ecs.soton.ac        $@<$1>arm.local
  176. R$+@annex4.ecs.soton        $@<$1>arm.local
  177. R$+@annex4.ecs            $@<$1>arm.local
  178. R$+@annex4            $@<$1>arm.local
  179. R$+@annex5.ecs.soton.ac.uk    $@<$1>arm.local
  180. R$+@annex5.ecs.soton.ac        $@<$1>arm.local
  181. R$+@annex5.ecs.soton        $@<$1>arm.local
  182. R$+@annex5.ecs            $@<$1>arm.local
  183. R$+@annex5            $@<$1>arm.local
  184. R$+@annex6.ecs.soton.ac.uk    $@<$1>arm.local
  185. R$+@annex6.ecs.soton.ac        $@<$1>arm.local
  186. R$+@annex6.ecs.soton        $@<$1>arm.local
  187. R$+@annex6.ecs            $@<$1>arm.local
  188. R$+@annex6            $@<$1>arm.local
  189. R$+@annex7.ecs.soton.ac.uk    $@<$1>arm.local
  190. R$+@annex7.ecs.soton.ac        $@<$1>arm.local
  191. R$+@annex7.ecs.soton        $@<$1>arm.local
  192. R$+@annex7.ecs            $@<$1>arm.local
  193. R$+@annex7            $@<$1>arm.local
  194. R$+@annex8.ecs.soton.ac.uk    $@<$1>arm.local
  195. R$+@annex8.ecs.soton.ac        $@<$1>arm.local
  196. R$+@annex8.ecs.soton        $@<$1>arm.local
  197. R$+@annex8.ecs            $@<$1>arm.local
  198. R$+@annex8            $@<$1>arm.local
  199. R$+@annex9.ecs.soton.ac.uk    $@<$1>arm.local
  200. R$+@annex9.ecs.soton.ac        $@<$1>arm.local
  201. R$+@annex9.ecs.soton        $@<$1>arm.local
  202. R$+@annex9.ecs            $@<$1>arm.local
  203. R$+@annex9            $@<$1>arm.local
  204. R$+@annex10.ecs.soton.ac.uk    $@<$1>arm.local
  205. R$+@annex10.ecs.soton.ac    $@<$1>arm.local
  206. R$+@annex10.ecs.soton        $@<$1>arm.local
  207. R$+@annex10.ecs            $@<$1>arm.local
  208. R$+@annex10            $@<$1>arm.local
  209. R$+@annex11.ecs.soton.ac.uk    $@<$1>arm.local
  210. R$+@annex11.ecs.soton.ac    $@<$1>arm.local
  211. R$+@annex11.ecs.soton        $@<$1>arm.local
  212. R$+@annex11.ecs            $@<$1>arm.local
  213. R$+@annex11            $@<$1>arm.local
  214. R$+@annex12.ecs.soton.ac.uk    $@<$1>arm.local
  215. R$+@annex12.ecs.soton.ac    $@<$1>arm.local
  216. R$+@annex12.ecs.soton        $@<$1>arm.local
  217. R$+@annex12.ecs            $@<$1>arm.local
  218. R$+@annex12            $@<$1>arm.local
  219. R$+@ecs.soton.ac.uk        $@<$1>bright.ether
  220. R$+@whirligig.ecs.soton.ac.uk    $@<$1>whirligig.ether
  221. R$+@$+                $@<$1@$2>whirligig.ether
  222. R$+                $@<$1>whirligig.ether
  223.  
  224. ###############################################################################
  225. #####        Local and Program Mailer specification
  226. ###############################################################################
  227. # lsSDFMhPfnR
  228. Mlocal, P=/usr/bin/procmail, F=lsSDFMhPf, S=10, R=20,
  229.         A=procmail -a $h -d $u
  230.  
  231. Mbinmail, P=/bin/mail, F=nlsmFDR, S=20, R=20, A=mail -d $u
  232. Mprog,      P=/bin/sh,   F=nlsFDR,   S=20, R=20, A=sh -c $u
  233. #  Apparent uucp addresses are converted back to old style so that
  234. #  ucb-mail can cope with replies.
  235. #  Otherwise addresses are presented as fully qualified domain names.
  236. S20
  237. R@            MAILER-DAEMON        errors to mailer-daemon
  238. R~$+            $1            remove '~' in To: line
  239. R$+@[$+]        $@$1@[$2]        domain literals
  240.  
  241. ###############################################################################
  242. #####        Ethernet Mailer specification
  243. ###############################################################################
  244.  
  245. Mether,    P=[IPC], F=nsmFDMRuXC, S=21, R=21, A=IPC $h
  246. S21
  247. R$+@uk.ac.soton.ecs.$w    $@$1@ecs.soton.ac.uk    kludge for Linux Elm.
  248. R$+@$+            $@$1@$2            address ok
  249. R$+            $@$1@$J            add local hostname
  250.  
  251. Mprocmail, P=/usr/bin/procmail, F=mSDFMhun, S=11, R=21, A=procmail \-m $h $f $u
  252.  
  253.