home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / popsrv22.zip / SENDMAIL.CF < prev   
Text File  |  1997-07-28  |  7KB  |  369 lines

  1. #########################################################################
  2. #                                    #
  3. #  Sendmail                                #
  4. #  Copyright (c) 1983  Eric P. Allman                    #
  5. #  Berkeley, California                            #
  6. #                                    #
  7. #  Copyright (c) 1983 Regents of the University of California.        #
  8. #  All rights reserved.  The Berkeley software License Agreement    #
  9. #  specifies the terms and conditions for redistribution.        #
  10. #                                    #
  11. #  This configuration file was created specifically for sendmail on the    #
  12. #  IBM OS/2 Operating System at habcnx.stben.be for pop server.        #
  13. #                                    #
  14. #  Created by:     Jean-Louis Noel (jln@stben.be)                #
  15. #        for use at habcnx.stben.be with mail.exe        #
  16. #                                    #
  17. #              March 21, 1996                        #
  18. #                                    #
  19. #########################################################################
  20.  
  21. # Name for the local host
  22. #
  23. Dwhabcnx
  24. Cwhabcnx rout-dom mail localhost
  25.  
  26. # Domain name
  27. #
  28. DDstben.be
  29.  
  30. # Remote subdomain (tcp)
  31. #
  32. C1chanae
  33.  
  34. # Local subdomain (all users in one pop3 mailbox)
  35. #
  36. C2prof student mn2
  37.  
  38. # UUCP nodes
  39. #
  40. C3Uchanae
  41.  
  42. # Valid mail users
  43. #
  44. #     default
  45. C4postmaster newsmaster webmaster mailer-daemon os2user
  46. #
  47. #     at domain level
  48. #    (a list of users [left part of address])
  49. F5f:/tcpip/etc/stbenusr
  50. #
  51. #     at host level
  52. #    (a list of users [left part of address])
  53. F6f:/tcpip/etc/mailusr
  54.  
  55. # my official host name
  56. #
  57. Dj$w$?D.$D$.
  58.  
  59. # Version number
  60. #
  61. DZ2.2
  62.  
  63. # My name
  64. #
  65. DnMailer-Daemon
  66.  
  67. # UNIX header format
  68. #
  69. DlFrom $g $d remote from $w
  70.  
  71. # Delimiter characters
  72. #
  73. Do.:%@!^=/[]
  74.  
  75. # Format of a total name
  76. #
  77. Dq$g$?x ($x)$.
  78.  
  79. # SMTP login message
  80. #
  81. De$j Sendmail $v/$Z ready at $b
  82.  
  83. # Alias file
  84. #
  85. OAf:/tcpip/etc/aliases
  86.  
  87. # Substutution for space characters
  88. #
  89. OB.
  90.  
  91. # (don't) connect to "expensive" mailers
  92. #
  93. Oc
  94.  
  95. # Default delivery mode
  96. #
  97. Odbackground
  98.  
  99. # Location of help file
  100. #
  101. OHf:/tcpip/etc/sendmail.hf
  102.  
  103. # Queue directory
  104. #
  105. OQd:/mqueue
  106.  
  107. # Default messages to old style
  108. #
  109. Oo
  110.  
  111. # Status file
  112. #
  113. OSf:/tcpip/etc/sendmail.st
  114.  
  115. # Queue up everything before starting transmission
  116. #
  117. Os
  118.  
  119. # Return/warning queued mail after
  120. #
  121. OT5d/2d
  122.  
  123. # Load average at which we refuse connections
  124. #
  125. #OX
  126.  
  127. # Work recipient factor
  128. #
  129. #Oy
  130.  
  131. # Work msg class factor
  132. #
  133. #Oz
  134.  
  135. # Work time factor
  136. #
  137. #OZ
  138.  
  139. ###########################
  140. #   Message precedences   #
  141. ###########################
  142.  
  143. Pfirst-class=0
  144. Pspecial-delivery=100
  145. Pbulk=-60
  146. Pjunk=-100
  147.  
  148. # Trusted users
  149. Troot daemon uucp
  150.  
  151. #########################
  152. #   Format of headers   #
  153. #########################
  154.  
  155. H?P?Return-Path: <$g>
  156. HReceived: $?sfrom $s $.by $j ($v/$Z) id $i; $b
  157. H?D?Date: $a
  158. H?F?From: $q
  159. H?M?Message-Id: <$t.$i@$j>
  160. #H?D?Resend-Date: $a
  161. H?F?Resent-From: $q
  162. H?M?Resent-Message-Id: <$t.$i@$j>
  163. H?x?Full-Name: $x
  164. HSubject:
  165.  
  166. #########################################################
  167. #                                                       #
  168. #                        MAILERS                        #
  169. #                                                       #
  170. #########################################################
  171.  
  172. #
  173. # Local
  174. #
  175. Mlocal,    P=f:/tcpip/bin/mail.exe, F=lnsDFMP, S=10, R=20, A=d:/mail $u $f
  176.  
  177. # Local Sender rules
  178. S10
  179.  
  180. # Local Recipient rules
  181. S20
  182.  
  183. #
  184. # POP
  185. #
  186. Mpop,   P=f:/tcpip/bin/mail.exe, F=lnsDFMP, S=11, R=21, A=d:/mail $u $f
  187.  
  188. # POP Sender rules
  189. S11
  190.  
  191. # POP Recipient rules
  192. S21
  193.  
  194. #
  195. # Program
  196. #
  197. Mprog,    P=c:/os2/command.com,    F=lsDFM,   S=12, R=22, A=command -c $u
  198.  
  199. # Program Sender rules
  200. S12
  201.  
  202. # Program Recipient rules
  203. S22
  204.  
  205. #
  206. # UUCP
  207. #
  208. Muucp,    P=d:/uupc/bin/umail.exe, F=DFMhuU,  S=13, R=13, A="-x 1" $u
  209.  
  210. # UUCP Sender rules
  211. S13
  212. R$+<@$D> $*        $: $w!$1<@$D>$2
  213. R$+<@$-.$*$-.$-> $*    $2!$1<@$3$4.$5>$6
  214.  
  215. # UUCP Recipient rules
  216. S23
  217.  
  218. #
  219. # TCP mailer
  220. #
  221. Mtcp,    P=[IPC],                 F=mDFMueXL, S=14, R=24, A=IPC $h
  222.  
  223. # TCP Sender rules
  224. S14
  225.  
  226.  
  227. # TCP Recipient rules
  228. S24
  229.  
  230.  
  231. #########################################################
  232. #                                                       #
  233. #                    REWRITING RULES                    #
  234. #                                                       #
  235. #########################################################
  236.  
  237. #
  238. #      Initial input for all requests -- Name Canonicalization
  239. #
  240. S3
  241.  
  242. # handle null input (translate to <@> special case)
  243. R$@            $@ <@>
  244.  
  245. # basic textual canonicalization -- note RFC733
  246. R$*<$*>$*<$*>$*        $2$3<$4>$5    strip multiple <> <>
  247. R$*<$*<$+>$*>$*        <$3>$5        2-level <> nesting
  248. R$*<>$*            $@ <@>        MAIL FROM: <> case
  249. R$*<$+>$*        $2        basic RFC821/822 parsing
  250.  
  251. # handle list:; syntax as special case
  252. R$*:;$*            $@ $1:;<@>
  253.  
  254. # change a%b to a@b
  255. #
  256. R$+%$-            $1@$2
  257.  
  258. # change a!b@c to b@a.c
  259. #
  260. R$-!$+@$+        $2@$1.$3
  261.  
  262. # change commas(,) to colons(:)
  263. #
  264. R$+,$+            $1:$2
  265.  
  266. # focus and call localizer
  267. R@$+:$*            $@$>9<@$1>:$2    handle <route-addr>
  268. #R$-!$+            $@$>8<$1>!$2    UUCP route
  269.  
  270. # detect domain!user convert to user@domain (RFC976)
  271. # rule set 8 detect local addresses and strip periods
  272. R$-.$*!$+        $@$>8<$1.$2>!$3
  273.  
  274. # Focus
  275. #
  276. R$+@$+            $:$1<@$2>
  277.  
  278. #
  279. # Determine delivery agent
  280. #
  281. S0
  282.  
  283. R<@>            $#local $: jln        error msg
  284. R$*:$*;            $#error $@ USAGE $: "list:; syntax illegal for recipient addresses"
  285. R<@$+>            $#error $@ USAGE $: "user address required"
  286. R<$*:$*>        $#error $@ USAGE $: "colon illegal in host name part"
  287.  
  288. # handle numeric address spec
  289. R$*<@[$+]>$*        $#smtp  $@ [$2]  $: $1<@[$2]>$3
  290.  
  291. # change a%b<$*> to <$*>:a@b
  292. #
  293. R$+%$-<$*>        <$3>:$1@$2
  294.  
  295. # deal with UUCP
  296. #
  297. R$+ <@ $* $=3> $*    $#uucp $@$3 $:$1@$2$3.$D
  298. R$+<@ $* $=3 . $D> $*    $#uucp $@$3 $:$1@$2$3.$D
  299.  
  300. # Canonicalize, (pass to nameserver)
  301. R$*<@$+>$*        $:$1<@$[$2$]>$3
  302.  
  303. # Send to pop mailbox's
  304. #
  305. # subdomain level
  306. #
  307. R$+ <@ $=2 . $D> $*    $#pop    $: $2    subdomain level (pop delivred)
  308. R$=4 <@ $D> $*        $#local $: $1    reserved names (domain level)
  309. R$=5 <@ $D> $*        $#local $: $1    domain users names
  310. R$=4 <@ $w . $D> $*    $#local $: $1    reserved names (local level)
  311. R$=6 <@ $w . $D> $*    $#local $: $1    local users names
  312. R$=4            $#local $: $1    reserved names
  313. R$=6            $#local $: $1    local users names
  314. R$* <@ $D> $*        $#error $:Unknow user $1    at domain level
  315. R$* <@ $w . $D> $*    $#error $:Unknow user $1    at machine level
  316.  
  317. #
  318. # Send external mail
  319. # at subdomains
  320. R$+ <@ $* $=1 . $D> $*    $#tcp   $@ $3.$D  $:$1<@$2$3.$D>$4
  321. R$+ <@ $* $-. $D> $*    $#error $:Unknow subdomain $3
  322. # other recipicients (if Relay host is defined send at relay)
  323. R$*<@$+>$*        $#tcp   $@ $?R $R $| $2 $. $:$1<@$2>$3
  324. #
  325. R<@$+>:$+        $#tcp   $@ $1     $:$2
  326.  
  327. R/$*            $#local $: /$1    file name
  328. # I am wrong! :-)
  329. R$*            $#error $:Fail to decode $1
  330.  
  331. S1
  332. S2
  333.  
  334. ##########################
  335. # Final output rewriting #
  336. ##########################
  337. S4
  338.  
  339. # Handle <> and list :;
  340. R$*<@>            $@ $1
  341.  
  342. # Strip trailling dot off
  343. R$*<@$+.>$*        $1<@$2>$3
  344.  
  345. # Remove focus brackets
  346. R$*<$+>$*        $1$2$3
  347. R@$+:@$+:$+        @$1,@$2:$3
  348.  
  349. ########################
  350. # Deal with subdomains #
  351. ########################
  352. S6
  353.  
  354. # test if subdomain is know
  355. #
  356. R$*<@$*$->$*        $:$1<@$2$[$3$:UNKNOW$]>$4
  357.  
  358.  
  359. S8
  360.  
  361. ##################################
  362. # Canonicalize and test if local #
  363. ##################################
  364. S9
  365.  
  366. R<@$*$-.$D>:$*        $:<@$1$[$2$:$2.UNKNOW$]>:$3
  367. R<@$w.$D>:$+        $:$>3$1
  368.  
  369.