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

  1. Xref: sparky comp.unix.sys5.r4:536 comp.mail.misc:3722
  2. Newsgroups: comp.unix.sys5.r4,comp.mail.misc
  3. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!ncar!uchinews!machine!chinet!les
  4. From: les@chinet.chi.il.us (Leslie Mikesell)
  5. Subject: Re: Email header problems on SVR4.
  6. Message-ID: <BxvJL6.FIA@chinet.chi.il.us>
  7. Organization: Chinet - Public Access UNIX
  8. References: <BxtoEJ.B1L@chinet.chi.il.us> <1992Nov17.170729.3540@news.acns.nwu.edu>
  9. Date: Tue, 17 Nov 1992 19:03:05 GMT
  10. Lines: 79
  11.  
  12. In article <1992Nov17.170729.3540@news.acns.nwu.edu> skrenta@casbah.acns.nwu.edu (Rich Skrenta) writes:
  13.  
  14. >What I find tragic is that the R4 mailer could have been really great.
  15. >Not doing RFC-822 headers, and being short-circuited by useless bloat
  16. >ruined it.
  17.  
  18. Well personally I like the anarchistic nature of relative addresses
  19. and agree that mailers should not be forced into a strict scheme
  20. conrolled by someone else.  Realistically though, you need something
  21. to understand and generate RFC-822 headers when you want them.
  22.  
  23. >I've used smail 3 and it's certainly a powerful mailer.  The neat thing
  24. >about the upas style is the vast power you get from one simple, relatively
  25. >short configuration file.  I remember smail 3 having a bunch of big
  26. >configuration files and a thick manual needed to understand them.
  27.  
  28. But the inherent problem is that you need external databases for any
  29. real work and external programs to perform the transformations. And
  30. when any transformation occurs you have to start over at the top so
  31. you can end up running lots of processes to expand a list.  Smail
  32. does each step internally so it can be much more efficient at the
  33. recursion.
  34.  
  35. >I'm not criticising smail; it's an industrial-strength mailer.  But
  36. >regex-style rewriting makes some things really easy.  Some stylized
  37. >examples from my mailer:
  38.  
  39. More concise maybe - I'm not sure about easier.  (I'm not against
  40. regexps at all - they would make a nice addition to Smail's more
  41. intimate knowledge of mail addressing)
  42.  
  43. >    Map all mail for foo.com to bar.com:
  44. >        rewrite '(?*)@foo.com'    '\1@bar.com'
  45.  
  46. An appropriate "paths" entry.
  47.  
  48. >    Make mail for bozo deliver locally instead
  49. >        rewrite '(?*)@bozo'    '\1'
  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. >    Give address of the form <box-number>@mailbox-service.host to
  55. >    my mailbox-server script:
  56. >        deliver '([0-9]+)@mailbox-service.host'  'script \1'
  57.  
  58. You would have to assign a transport to this host either with a
  59. special router that matched it or with a "methods" lookup, then
  60. define the transport to run your script.  But you couldn't constrain
  61. the legal addresses to the numeric set - the transport script would
  62. have to check and generate the bounce (1)
  63.  
  64. >    stupid.host doesn't have SMTP or uucp-over-tcp.  Deliver mail
  65. >    to it with rsh:
  66. >        deliver '(?*)@stupid.host'  'rsh stupid "/usr/bin/rmail \1"'
  67.  
  68. Same as above.
  69.  
  70. (1) There is a provision to run an external program as a router, and it
  71. can optionally return a transport as well as the transformed address.  That
  72. approach could handle these situations at the cost of starting an
  73. external process per address.
  74.  
  75. I think those are pretty unusual address handling requirements anyway.  I
  76. have a lot of mail to local lists where the lists are maintained in the
  77. form of local aliases and the aliases are maintained in a form that
  78. just gives the host!user and thus requires a path lookup.  Suppose a
  79. list expands to 100 aliases. How many external programs will the
  80. r4 mailer have to run to resolve the real user names and the paths to
  81. their hosts, and can it perform the delivery by grouping the expanded
  82. addresses by the "next-hop" sites instead of generating a copy per
  83. address?
  84.  
  85. If you need the regexp functions and have both the r4 mailer and smail3
  86. it should be possible to let the r4 mailer do the regexp transformations
  87. first and hand anything left over to smail for final processing.
  88.  
  89. Les Mikesell
  90.   les@chinet.chi.il.us
  91.