home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / mail / sendmail / 1948 < prev    next >
Encoding:
Text File  |  1992-07-26  |  2.5 KB  |  50 lines

  1. Newsgroups: comp.mail.sendmail
  2. Path: sparky!uunet!decwrl!pa.dec.com!vixie
  3. From: vixie@pa.dec.com (Paul A Vixie)
  4. Subject: Re: Why does buildaddr() [parseaddr.c] rewrite using the R= rules?
  5. In-Reply-To: eps@futon.SFSU.EDU's message of Sun, 26 Jul 1992 10:10:46 GMT
  6. Message-ID: <VIXIE.92Jul26162326@cognition.pa.dec.com>
  7. Sender: news@PA.dec.com (News)
  8. Organization: DEC Network Software Lab
  9. References: <1992Jul26.101046.962@csus.edu>
  10. Date: 26 Jul 92 16:23:26
  11. Lines: 37
  12.  
  13. The published documentation is, as you say, not very clear on which ruleset
  14. will be called for which addresses and what times.  I'm not going to try to
  15. clear up that general problem here, but I will point out that the IDA mods
  16. to sendmail let you get around the problems you're noticing.
  17.  
  18. And IDA-derived sendmail (mine is called King James Sendmail and it can be
  19. had via anonymous FTP from gatekeeper.dec.com in /pub/misc/vixie/kjs.tar.Z)
  20. has the ability to use different rulesets for the RCPT TO:<> (called the
  21. "envelope" addresses) than for the To:/Cc: (called the "header" addresses).
  22. If you include a line in sendmail.cf that says:
  23.  
  24.     O/
  25.  
  26. ...then two useful things happen: first, rulesets 5 and 6 become "automatic"
  27. in the same way that 1, 2, 3, and 4 are.  But whereas 1 and 2 continue to
  28. get the envelope sender/recipient, 5 and 6 get the header sender/recipient.
  29. (I'm not sure which is which, actually, but there's documentation in the
  30. "ida" subdirectory of all IDA-derived sendmail source kits.)
  31.  
  32. Second, the R= and S= keywords of the mailer definition are allowed to be
  33. stated as R=nn/nn and S=nn/nn rather than the old S=nn and R=nn.  The number
  34. after the "/" is the ruleset to be applied to headers, and if specified then
  35. the first number is used only for the envelopes.  If "O/" was not specified
  36. than the "/" is a syntax error; if "O/" was specified and no "/" is used in
  37. S= or R=, then single ruleset specified by S=nn or R=nn is used for both
  38. envelope and header addresses, as is the case for non-IDA sendmails.
  39.  
  40. Note that my IDA-derived sendmail has a very old config kit and that the
  41. one available from UIUC (Neil R or Paul P will be replying here shortly with
  42. the ftp server and pathname) has a much newer and nicer config kit.  My
  43. config files are all hacked by hand, which is why I don't include anything
  44. spiffy config-file-wise in my KJS kits.
  45. --
  46. Paul Vixie, DEC Network Systems Lab    
  47. Palo Alto, California, USA             "Don't be a rebel, or a conformist;
  48. <vixie@pa.dec.com> decwrl!vixie        they're the same thing, anyway.  Find
  49. <paul@vix.com>     vixie!paul        your own path, and stay on it."  -me
  50.