home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Spezial / SPEZIAL2_97.zip / SPEZIAL2_97.iso / ANWEND / ONLINE / LYNXOS27 / LYNXOS27.ZIP / sendmail.lyx < prev    next >
Text File  |  1995-04-30  |  9KB  |  345 lines

  1. #
  2. # Copyright (c) 1983 Eric P. Allman
  3. # Copyright (c) 1988, 1993
  4. #    The Regents of the University of California.  All rights reserved.
  5. #
  6. # Redistribution and use in source and binary forms, with or without
  7. # modification, are permitted provided that the following conditions
  8. # are met:
  9. # 1. Redistributions of source code must retain the above copyright
  10. #    notice, this list of conditions and the following disclaimer.
  11. # 2. Redistributions in binary form must reproduce the above copyright
  12. #    notice, this list of conditions and the following disclaimer in the
  13. #    documentation and/or other materials provided with the distribution.
  14. # 3. All advertising materials mentioning features or use of this software
  15. #    must display the following acknowledgement:
  16. #    This product includes software developed by the University of
  17. #    California, Berkeley and its contributors.
  18. # 4. Neither the name of the University nor the names of its contributors
  19. #    may be used to endorse or promote products derived from this software
  20. #    without specific prior written permission.
  21. #
  22. # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  23. # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  24. # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  25. # ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  26. # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  27. # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  28. # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  29. # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  30. # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  31. # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  32. # SUCH DAMAGE.
  33. #
  34.  
  35.  
  36. ######################################################################
  37. ######################################################################
  38. #####
  39. #####        SENDMAIL CONFIGURATION FILE
  40. #####
  41. ##### built by mattes@figaro on Sat Feb 4 17:33:35 MET 1995
  42. ##### in /home/mattes/sendmail/cf/cf
  43. #####
  44. ######################################################################
  45. ######################################################################
  46.  
  47. #####  @(#)cf.m4    8.4 (Berkeley) 12/24/93  #####
  48.  
  49. #####  @(#)clientproto.mc    8.2 (Berkeley) 8/21/93  #####
  50.  
  51.  
  52.  
  53.  
  54. #####  @(#)proto.m4    8.45 (Berkeley) 3/4/94  #####
  55.  
  56.  
  57. # level 5 config file format
  58. # V5
  59.  
  60. ##################
  61. #   local info   #
  62. ##################
  63.  
  64. CwLOCALHOST.DOMAIN
  65.  
  66. #IBM sendmail seems not to set $j...
  67. Dj$w
  68.  
  69.  
  70. #####  @(#)nullrelay.m4    8.5 (Berkeley) 2/1/94  #####
  71.  
  72. #
  73. #  This configuration applies only to relay-only hosts.  They send
  74. #  all mail to a hub without consideration of the address syntax
  75. #  or semantics, except for adding the hub qualification to the
  76. #  addresses.
  77. #
  78. #    This is based on a prototype done by Bryan Costales of ICSI.
  79. #
  80.  
  81. # hub host (to which all mail is sent)
  82. DHPOPHOST.DOMAIN
  83.  
  84. # name from which everyone will appear to come
  85. DMHUB.DOMAIN
  86.  
  87. # route-addr separators
  88. C: : ,
  89.  
  90.  
  91. ######################
  92. #   Special macros   #
  93. ######################
  94.  
  95. # SMTP initial login message
  96. De$j Sendmail $v/$Z ready at $b
  97.  
  98. # UNIX initial From header format
  99. DlFrom $g  $d
  100.  
  101. # my name for error messages
  102. DnMAILER-DAEMON
  103.  
  104. # delimiter (operator) characters
  105. Do.:%@!^/[]
  106.  
  107. # format of a total name
  108. Dq<$g>
  109.  
  110. # Configuration version number
  111. DZ8.6.9
  112.  
  113.  
  114. ###############
  115. #   Options   #
  116. ###############
  117.  
  118. # strip message body to 7 bits on input?
  119. O7False
  120.  
  121. # no aliases here
  122.  
  123. # substitution for space (blank) characters
  124. OB.
  125.  
  126. # default delivery mode
  127. Odbackground
  128.  
  129. # error message header/file
  130. #OE/etc/sendmail.oE
  131.  
  132. # error mode
  133. Oem
  134.  
  135. # save Unix-style "From_" lines at top of header?
  136. OfFalse
  137.  
  138. # temporary file mode
  139. OF0600
  140.  
  141. # default GID
  142. Og1
  143.  
  144. # maximum hop count
  145. Oh17
  146.  
  147. # location of help file
  148. OHc:\tcpip\etc\sendmail.hf
  149.  
  150. # ignore dots as terminators in incoming messages?
  151. OiFalse
  152.  
  153. # Insist that the BIND name server be running to resolve names
  154. OI
  155.  
  156. # deliver MIME-encapsulated error messages?
  157. OjTrue
  158.  
  159. # open connection cache size
  160. Ok2
  161.  
  162. # open connection cache timeout
  163. OK5m
  164.  
  165. # use Errors-To: header?
  166. OlFalse
  167.  
  168. # log level
  169. OL9
  170.  
  171. # send to me too, even in an alias expansion?
  172. OmFalse
  173.  
  174. # default messages to old style headers if no special punctuation?
  175. OoTrue
  176.  
  177. # SMTP daemon options
  178. #OOPort=esmtp
  179.  
  180. # privacy flags
  181. Opauthwarnings
  182.  
  183. # who (if anyone) should get extra copies of error messages
  184. #OPPostmaster
  185.  
  186. # slope of queue-only function
  187. #Oq600000
  188.  
  189. # queue directory
  190. OQc:\tcpip\etc\mqueue
  191.  
  192. # read timeout -- now OK per RFC 1123 section 5.3.2
  193. #Ordatablock=10m
  194.  
  195. # queue up everything before forking?
  196. OsTrue
  197.  
  198. # status file
  199. OSc:\tcpip\etc\sendmail.st
  200.  
  201. # default message timeout interval
  202. OT5d/4h
  203.  
  204. # time zone handling:
  205. #  if undefined, use system default
  206. #  if defined but null, use TZ envariable passed in
  207. #  if defined and non-null, use that info
  208. #Ot
  209.  
  210. # default UID
  211. Ou1
  212.  
  213. # deliver each queued job in a separate process?
  214. OYFalse
  215.  
  216. # work class factor
  217. #Oz1800
  218.  
  219. # work time factor
  220. #OZ90000
  221.  
  222. ###########################
  223. #   Message precedences   #
  224. ###########################
  225.  
  226. Pfirst-class=0
  227. Pspecial-delivery=100
  228. Plist=-30
  229. Pbulk=-60
  230. Pjunk=-100
  231.  
  232. #####################
  233. #   Trusted users   #
  234. #####################
  235.  
  236. Troot
  237. Tdaemon
  238. Tuucp
  239.  
  240. #########################
  241. #   Format of headers   #
  242. #########################
  243.  
  244. H?P?Return-Path: $g
  245. HReceived: $?sfrom $s $.$?_($_) $.by $j ($v/$Z)$?r with $r$. id $i$?u for $u$.; $b
  246. H?D?Resent-Date: $a
  247. H?D?Date: $a
  248. H?F?Resent-From: $q
  249. H?F?From: $q
  250. H?x?Full-Name: $x
  251. HSubject:
  252. # HPosted-Date: $a
  253. # H?l?Received-Date: $b
  254. H?M?Resent-Message-Id: <$t.$i@$j>
  255. H?M?Message-Id: <$t.$i@$j>
  256. #
  257. ######################################################################
  258. ######################################################################
  259. #####
  260. #####            REWRITING RULES
  261. #####
  262. ######################################################################
  263. ######################################################################
  264.  
  265. ###########################################
  266. ###  Rulset 3 -- Name Canonicalization  ###
  267. ###########################################
  268. S3
  269.  
  270. # handle null input and list syntax (translate to <@> special case)
  271. R$@            $@ <@>
  272. R$*:;$*            $@ $1 :; <@>
  273.  
  274. # basic textual canonicalization -- note RFC733 heuristic here
  275. R$*<$*>$*<$*>$*        $2$3<$4>$5            strip multiple <> <>
  276. R$*<$*<$+>$*>$*        <$3>$5                2-level <> nesting
  277. R$*<>$*            $@ <@>                MAIL FROM:<> case
  278. R$*<$+>$*        $2                basic RFC821/822 parsing
  279.  
  280. # eliminate local host if present
  281. R@ $=w $=: $+        $@ @ $M $2 $3            @thishost ...
  282. R@ $+            $@ @ $1                @somewhere ...
  283.  
  284. R$+ @ $=w        $@ $1 @ $M            ...@thishost
  285. R$+ @ $+        $@ $1 @ $2            ...@somewhere
  286.  
  287. R$=w ! $+        $@ $2 @ $M            thishost!...
  288. R$+ ! $+        $@ $1 ! $2 @ $M            somewhere ! ...
  289.  
  290. R$+ % $=w        $@ $1 @ $M            ...%thishost
  291. R$+ % $+        $@ $1 @ $2            ...%somewhere
  292.  
  293. R$+            $@ $1 @ $M            unadorned user
  294.  
  295.  
  296. ######################################
  297. ###   Ruleset 0 -- Parse Address   ###
  298. ######################################
  299.  
  300. S0
  301.  
  302. R$*:;<@>        $#error $@ USAGE $: "list:; syntax illegal for recipient addresses"
  303.  
  304. # pass everything else to a relay host
  305. R$*            $#nullclient $@ $H $: $1
  306.  
  307. #
  308. ######################################################################
  309. ######################################################################
  310. #####
  311. #####            MAILER DEFINITIONS
  312. #####
  313. ######################################################################
  314. ######################################################################
  315.  
  316. ############################################
  317. ###   Null Client Mailer specification   ###
  318. ############################################
  319.  
  320.  
  321. Mnullclient,    P=[IPC], F=mDFMuCX, A=IPC $h
  322.  
  323.  
  324. ##################################################
  325. ###   Local and Program Mailer specification   ###
  326. ##################################################
  327.  
  328. #####  @(#)local.m4    8.6 (Berkeley) 10/24/93  #####
  329.  
  330. #Mlocal,        P=/bin/mail, F=lsDFMrmn, S=10, R=20/29,
  331. #        A=mail -d $u
  332. Mlocal, P=c:/tcpip/bin/deliver.exe, F=lsDFMP, S=10, R=20,
  333.         A=deliver -Dc:/tcpip/spool/mail -M $u
  334. Mprog,        P=/bin/sh, F=lsDFMeu, S=10, R=20/29, D=$z:/,
  335.         A=sh -c $u
  336.  
  337. S10
  338. R<@>            $n            errors to mailer-daemon
  339. R$+            $: $>29 $1
  340.  
  341. S20
  342. R$+ < @ $* >        $: $1            strip host part
  343.  
  344. S29
  345.