home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / sys5 / r4 / 550 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  5.3 KB

  1. Xref: sparky comp.unix.sys5.r4:550 comp.mail.misc:3735
  2. Newsgroups: comp.unix.sys5.r4,comp.mail.misc
  3. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!linac!uchinews!machine!chinet!les
  4. From: les@chinet.chi.il.us (Leslie Mikesell)
  5. Subject: Re: Email header problems on SVR4.
  6. Message-ID: <BxxC7p.C2A@chinet.chi.il.us>
  7. Organization: Chinet - Public Access UNIX
  8. References: <BxvJL6.FIA@chinet.chi.il.us> <1992Nov18.163903.26405@news.acns.nwu.edu>
  9. Date: Wed, 18 Nov 1992 18:19:00 GMT
  10. Lines: 108
  11.  
  12. In article <1992Nov18.163903.26405@news.acns.nwu.edu> skrenta@casbah.acns.nwu.edu (Rich Skrenta) writes:
  13.  
  14. >upas doesn't fork for each rewrite, BTW.  I bet my mailer is done
  15. >with local delivery before smail3 has finished paging in.  Down with
  16. >monolithic megabyte executables with 10 links!  :-)
  17.  
  18. You don't fork for each rewrite but you have to for each transformation
  19. that requires an external process, and you have to repeat each of
  20. those processess until there are no more new addresses produced.
  21.  
  22. With smail, not only can you do all the steps in a single process you
  23. can configure it to run in daemon mode where sending a message
  24. simply writes the spool file and a daemon process periodically wakes
  25. up to deliver them.  This can dramatically smooth the load on a busy
  26. machine while imposing only a minute or two of delay on the worst
  27. case deliveries.  If you are running sysVr4 you should have a decent
  28. paging mechanism and shouldn't worry about large executables or
  29. how many links they have.  When you have a running copy, executing
  30. any of the links will automatically do the right thing with shared
  31. text. 
  32.  
  33. >I can add a paths file with one line:
  34. >
  35. >    alias    '(?*)@([^@]+)'    'sed -n -e "s/^\2[ \t]*//p" /usr/lib/paths'
  36.  
  37. Note the fork/exec that will happen here.  And for the equivalent alias
  38. file lookup, and for lists.  And that you have to loop through this
  39. again for every expansion that the lists and alias lookups produce.
  40. Also, you are doing a linear search, where smail knows how to use
  41. dbm or sorted files, or yellow pages.  (Yes, I know you could invoke
  42. programs that do those things as well, but it's starting to get
  43. complicated).  And when you run smail as a daemon it will cache some
  44. of it's lookup data instead of reopening the files for every message.
  45. Also, you can ask for debugging information and get it for every
  46. step taken.  It's pretty hard to manage that when you've tied together
  47. a collection of external programs.
  48.  
  49. >> >    Make mail for bozo deliver locally instead
  50. >> 
  51. >> Can't be done - smail never looks at the local part of the address
  52. >> unless the host portion resolves to the local machine. (1)
  53. >
  54. >I'd be surprised if this was true.  I want to hide hosts behind
  55. >a mail hub all the time.  What if your paths file mapped mail for
  56. >bozo onto the localhost?
  57.  
  58. Hiding a complete host is built-in.  You just supply a list of
  59. names that the local machine considers to be itself and it
  60. checks those before doing any routing operations.  If it matches
  61. the next steps are "directors" rather than "routers" to perform
  62. the aliasing and forwarding steps.  I thought "bozo" was a user
  63. instead of a hostname in your example.
  64.  
  65. >I remember seeing someone over in comp.mail.sendmail asking
  66. >if he could customize his bounce messages, and have a copy of
  67. >the bounced mail saved.  This is the sort of thing that is trivial
  68. >to do in R4 mail, but nearly impossible in other mailers unless the
  69. >capability has been directly supported.
  70. >
  71. >For example, I have different bounce messages and behaviors for
  72. >"unknown local user" vs. "no such host in this domain".
  73.  
  74. These are built-in, but generally appropriate.  You do have an option
  75. to send a copy of all bounces to the postmaster, or just the headers.
  76. Problems relating to configuration errors are always spooled and
  77. deferred.  As I recall, the r4 mailer was happy to just discard
  78. everything.  There's an option to forward messages to unknown
  79. hosts to another machine and a similar but separate option for messages
  80. to unknown local users. 
  81.  
  82. > [grouping by host]
  83. >You are right, the R4 mailer is weak in this area.  But this problem
  84. >is easy to work around for mailing lists on leaf sites.  I ran a list
  85. >of 150 or so addresses just fine under R4.
  86.  
  87. Mine "look" like leaf lists, but because of host hiding the addresses
  88. expand to a few dozen people on each of several machines one of
  89. which is connected by a slow satellite link.  It's important to me
  90. to be able to hold the groups together.
  91.  
  92. >I even got the admin for my feed to stick a short "zrmail" script
  93. >into /usr/bin:
  94. >
  95. >    #!/bin/sh
  96. >    uncompress | rmail $*
  97. >
  98. >so I could send compressed mail.
  99. >
  100. >    deliver    'host!(?*)'    'compress | rmail - -r host!rmail (\1)'
  101. >    deliver '([^!]+)!(?*)'    'rmail - -r \1!rmail (\2)'
  102. >
  103. >A one line change to my config file to add compressed mail!
  104.  
  105. So it takes 5 or 6 lines in an smail "transports" definition, but you
  106. get to specify the limits for how many addresses may be used in
  107. a single invocation and how many characters may be in the command line,
  108. along with the address format and the uid to execute as.
  109.  
  110. >I'll admit that smail3 is probably better in many ways.  But being
  111. >able to wire in new capabilities like fake hosts, new lookup
  112. >mechanisms and transports in seconds without looking at a manual
  113. >is just great.
  114.  
  115. Agreed, but both systems have those capabilities.  The "looking at the
  116. manual" part is pretty subjective.  
  117.  
  118. Les Mikesell
  119.   les@chinet.chi.il.us
  120.