home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / mail / sendmail / 3260 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  8.7 KB

  1. Path: sparky!uunet!underg!max
  2. From: max@underg.ucf.org (Max Cray)
  3. Newsgroups: comp.mail.sendmail
  4. Subject: Why somewhere?
  5. Message-ID: <y5NTXB10w165w@underg.ucf.org>
  6. Date: Sat, 23 Jan 93 02:58:57 CST
  7. Organization: Underground Computing Foundation
  8. Lines: 376
  9.  
  10.  
  11. Help. I need some help configuring sendmail. I only have a couple of
  12. uucp nieghbors and want to send all out going mail to a smart host.
  13. I also want a minimum of header changes by sendmail. I got it working
  14. pretty good, but am having trouble with incoming pass-through mail.
  15. My mailer is altering the top from line to say:
  16.  
  17. From uucp@uu2.psi.com   Fri Jan 22 05:38:28 1993 remote from somewhere
  18.                                                              ^^^^^^^^^
  19.  
  20. Why 'somewhere'? Where does this come from? Why not a specific
  21. machine name? This somewhere name also appears in the outgoing execute
  22. file:
  23.  
  24. --
  25.  
  26. U daemon medianet
  27. # return status on failure
  28. Z
  29. # return address for status or input return
  30. R somewhere!uucp@uu2.psi.com
  31. F D.media1f5660f
  32. I D.media1f5660f
  33. C rmail zackh
  34.  
  35. --
  36.  
  37. As you can see the return address is wrong and it has that strange
  38. 'somewhere' added in. I am not sure where this is coming from. Any
  39. clues would be much appreciated.
  40.     Here is the sendmail.cf in question. Also, if you see any pending
  41. disasters in it I would appreciate any advice. Thanks!
  42.  
  43. --
  44.  
  45. #
  46. #
  47. # Copyright (c) 1983 Eric P. Allman
  48. # Copyright (c) 1988 The Regents of the University of California.
  49. # All rights reserved.
  50. #
  51. # Redistribution and use in source and binary forms are permitted
  52. # provided that the above copyright notice and this paragraph are
  53. # duplicated in all such forms and that any documentation,
  54. # advertising materials, and other materials related to such
  55. # distribution and use acknowledge that the software was developed
  56. # by the University of California, Berkeley.  The name of the
  57. # University may not be used to endorse or promote products derived
  58. # from this software without specific prior written permission.
  59. # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  60. # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  61. # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  62. #
  63. #    @(#)uucpproto.mc    1.2 (Berkeley) 1/24/89
  64. #    @(#)proto.mc    1.21 (Berkeley) 2/15/89
  65. #
  66. #
  67. ############################################################
  68. ############################################################
  69. #####
  70. #####        SENDMAIL CONFIGURATION FILE
  71. #####
  72. ############################################################
  73. ############################################################
  74.  
  75.  
  76. ##################
  77. #   local info   #
  78. ##################
  79.  
  80. # file containing our internet aliases
  81. # Fw/usr/lib/sendmail.cw
  82.  
  83. # uucp hostnames
  84. DUmedianet
  85. CUMedianet medianet sq1
  86.  
  87. # local UUCP connections
  88. CV    underg
  89. CV    uupsi2
  90. CV    mnet-sv
  91.  
  92.  
  93. ######################
  94. #   General Macros   #
  95. ######################
  96.  
  97. # local domain name
  98. DDmedianet.com
  99.  
  100.  
  101. # UUCP relay host
  102. DRuupsi2
  103.  
  104.  
  105. # my official hostname
  106. Dj$D
  107.  
  108.  
  109. ###############
  110. #   Classes   #
  111. ###############
  112.  
  113. # Internal ("fake") domains that we use in rewriting
  114. CIUUCP BITNET CSNET
  115.  
  116.  
  117.  
  118. ######################
  119. #   Version Number   #
  120. ######################
  121.  
  122. DZ1.35
  123.  
  124.  
  125. ######################
  126. #   Special macros   #
  127. ######################
  128.  
  129. # my name
  130. DnMAILER-DAEMON
  131. # UNIX header format
  132. DlFrom $g  $d
  133. # delimiter (operator) characters
  134. Do.:%@!^=/[]
  135. # format of a total name
  136. Dq$g$?x ($x)$.
  137. # SMTP login message
  138. De$j Sendmail $v/$Z ready at $b
  139.  
  140. ###############
  141. #   Options   #
  142. ###############
  143.  
  144. # location of alias file
  145. OA/usr/lib/aliases
  146. # wait up to ten minutes for alias file rebuild
  147. Oa10
  148. # substitution for space (blank) characters
  149. OB.
  150. # (don't) connect to "expensive" mailers
  151. #Oc
  152. # default delivery mode (deliver in background)
  153. Odbackground
  154. # temporary file mode
  155. OF0600
  156. # default GID
  157. Og1
  158. # location of help file
  159. OH/usr/lib/sendmail.hf
  160. # log level
  161. OL9
  162. # default network name
  163. ONARPA
  164. # default messages to old style
  165. Oo
  166. # queue directory
  167. OQ/usr/spool/mqueue
  168. # read timeout -- violates protocols
  169. Or2h
  170. # status file
  171. OS/usr/lib/sendmail.st
  172. # queue up everything before starting transmission
  173. Os
  174. # default timeout interval
  175. OT3d
  176. # time zone names (V6 only)
  177. OtCST,CDT
  178. # default UID
  179. Ou1
  180. # wizard's password
  181. OW*
  182. # load average at which we just queue messages
  183. Ox8
  184. # load average at which we refuse connections
  185. OX12
  186.  
  187. ###########################
  188. #   Message precedences   #
  189. ###########################
  190.  
  191. Pfirst-class=0
  192. Pspecial-delivery=100
  193. Pbulk=-60
  194. Pjunk=-100
  195.  
  196. #####################
  197. #   Trusted users   #
  198. #####################
  199.  
  200. Troot
  201. Tdaemon
  202. Tuucp
  203.  
  204. #########################
  205. #   Format of headers   #
  206. #########################
  207.  
  208. H?P?Return-Path: <$g>
  209. HReceived: $?sfrom $s $.by $j ($v/$Z)
  210.     id $i; $b
  211. H?D?Resent-Date: $a
  212. H?D?Date: $a
  213. H?F?Resent-From: $q
  214. H?F?From: $q
  215. H?x?Full-Name: $x
  216. HSubject:
  217. H?M?Resent-Message-Id: <$t.$i@$j>
  218. H?M?Message-Id: <$t.$i@$j>
  219.  
  220.  
  221. ###########################
  222. ###   Rewriting Rules   ###
  223. ###########################
  224.  
  225.  
  226. ################################
  227. #  Sender Field Pre-rewriting  #
  228. ################################
  229. S1
  230. #R$*<$*>$*        $1$2$3                defocus
  231.  
  232. ###################################
  233. #  Recipient Field Pre-rewriting  #
  234. ###################################
  235. S2
  236. #R$*<$*>$*        $1$2$3                defocus
  237.  
  238.  
  239. ###########################
  240. #  Name Canonicalization  #
  241. ###########################
  242. S3
  243.  
  244. # handle "from:<>" special case
  245. R$*<>$*            $@@                turn into magic token
  246.  
  247. # basic textual canonicalization -- note RFC733 heuristic here
  248. R$*<$*<$*<$+>$*>$*>$*    $4                3-level <> nesting
  249. R$*<$*<$+>$*>$*        $3                2-level <> nesting
  250. R$*<$+>$*        $2                basic RFC821/822 parsing
  251.  
  252. # make sure <@a,@b,@c:user@d> syntax is easy to parse -- undone later
  253. R@$+,$+            @$1:$2                change all "," to ":"
  254.  
  255. # localize and dispose of route-based addresses
  256. R@$+:$+            $@$>6<@$1>:$2            handle <route-addr>
  257.  
  258. # more miscellaneous cleanup
  259. R$+            $:$>8$1                host dependent cleanup
  260. R$+:$*;@$+        $@$1:$2;@$3            list syntax
  261. R$+:$*;            $@$1:$2;            list syntax
  262. R$+@$+            $:$1<@$2>            focus on domain
  263. R$+<$+@$+>        $1$2<@$3>            move gaze right
  264. R$+<@$+>        $@$>6$1<@$2>            already canonical
  265.  
  266.  
  267. ###############################
  268. # Final Output Post-rewriting #
  269. ###############################
  270. S4
  271.  
  272. R@            $@                handle <> error addr
  273.  
  274. # exernalize local domain info
  275. R$*<$+>$*        $1$2$3                defocus
  276. R@$+:@$+:$+        @$1,@$2:$3            <route-addr> canonical
  277.  
  278.  
  279. #################################
  280. #   special local conversions   #
  281. #################################
  282.  
  283. S6
  284. R$*<@$=w>$*        $:$1<@$D>$3            get into u@$w form
  285. R$*<@$=w.$D>$*        $:$1<@$D>$3
  286. R$*<@$=U.UUCP>$*    $:$1<@$D>$3
  287.  
  288.  
  289. #
  290. #  Local Conversions by Chris
  291. #
  292.  
  293. S8
  294.  
  295. # Return if correct Internet mail address format
  296. R$+@$+.$+        $@$1@$2.$3
  297. # Convert Internet addresses missing domain names to bang path format
  298. R$+@$+            $@$2!$1
  299.  
  300.  
  301. ###################
  302. ###   Mailers   ###
  303. ###################
  304.  
  305.  
  306. ############################################################
  307. ############################################################
  308. #####
  309. #####        Local and Program Mailer specification
  310. #####
  311. ############################################################
  312. ############################################################
  313.  
  314. Mlocal,    P=/bin/mail, F=rlsDFMmn, S=10, R=20, A=mail -d $u
  315. Mprog,    P=/bin/sh,   F=lsDFMe,   S=10, R=20, A=sh -c $u
  316.  
  317. S10
  318. R@            $n            errors to mailer-daemon
  319.  
  320.  
  321. ############################################################
  322. ############################################################
  323. #####
  324. #####        UUCP Mailer specification
  325. #####
  326. ############################################################
  327. ############################################################
  328.  
  329. Muucp,    P=/usr/bin/uux, F=CDFMRUhmsu, S=13, R=23, M=100000,
  330.     A=uux - -a$f -gC $h!rmail ($u)
  331.  
  332. S13
  333. R$+<@$+>        $@$1@$2
  334. R$+!$+            $@$U!$1!$2
  335. R$+            $@$1@$j
  336.  
  337. S23
  338. R$+            $@$1
  339.  
  340.  
  341. ############################################################
  342. ############################################################
  343. #####
  344. #####        RULESET ZERO PREAMBLE
  345. #####
  346. #####    The beginning of ruleset zero is constant through all
  347. #####    configurations.
  348. #####
  349. ############################################################
  350. ############################################################
  351.  
  352. S0
  353.  
  354. # first make canonical
  355. R$*<$*>$*        $1$2$3                defocus
  356. R$+            $:$>3$1                make canonical
  357.  
  358. # handle special cases
  359. R@            $#local$:$n            handle <> form
  360.  
  361. # now delete the local info and retry
  362. R$*<@$j>        $@$>0$1                ...@here -> ...
  363. R$j!$+            $@$>0$1
  364. R$=U!$+            $@$>0$2
  365.  
  366. ###############################################
  367. ###   Machine dependent part of Rule Zero   ###
  368. ###############################################
  369.  
  370.  
  371. # resolve local UUCP connections
  372. R$+<@$=V.$+>        $#uucp$@$2$:$1            user@host.UUCP
  373. R$=V!$+            $#uucp$@$1$:$2
  374.  
  375. # Forward all non-local net mail to server (by Chris)
  376. R$+<@$+>        $#uucp$@$R$:$1@$2
  377. R$+!$+            $#uucp$@$R$:$1!$2
  378.  
  379. # remaining names must be local
  380. R$+            $#local$:$1            everything else
  381.  
  382.                                           -= Max =-
  383.  
  384. ---------------------------------------------------------------------
  385.                The ideal home computer is a network.
  386.