home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!mips!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!ux1.cso.uiuc.edu!mp.cs.niu.edu!rickert
- From: rickert@mp.cs.niu.edu (Neil Rickert)
- Newsgroups: comp.mail.sendmail
- Subject: Re: Why does buildaddr() [parseaddr.c] rewrite using the R= rules?
- Message-ID: <1992Jul27.152444.26405@mp.cs.niu.edu>
- Date: 27 Jul 92 15:24:44 GMT
- References: <1992Jul26.101046.962@csus.edu>
- Organization: Northern Illinois University
- Lines: 40
-
- In article <1992Jul26.101046.962@csus.edu> eps@futon.SFSU.EDU (Eric P. Scott) writes:
- >I was under the impression that the recipient rewriting rules
- >only applied to headers (To: and Cc:). However, sendmail also
- >runs the "RCPT TO:" address through the same rules! (This is
- >not clear from the documentation.)
-
- >Am I Unclear On The Concept or is this a design stupidity?
-
- This is not design stupidity. There is an assumption in the design
- that if a different address format is required, it is required for the
- envelope as well as for the header. Generally this is a reasonable
- assumption, although it happens this is not always true, and as Paul
- Vixie has pointed out, the IDA versions of sendmail specifically separate
- the header rewrite from the envelope rewrite.
-
- However, the envelope recipient should not give you a problem. Even
- without IDA versions, you can treat the envelope and header recipients
- differently. IDA is really needed to do the same for the sender addresses
- which are difficult to treat separately in a non-IDA sendmail.
-
- All you need to is make sure that your ruleset 0 puts the recipient
- address in a distinguishable form, and then make use of that in your
- other rewrite rules. For example,
-
- Ruleset 0:
-
- R$+<@$+.uucp> $#uucp $@$2 $: <$1>
- [this makes the address distinguishable by <bracketing it>
-
- Ruleset 2:
-
- R<$+> $@ <$1> Leave bracketed address alone
-
- Ruleset R=:
-
- (same as above)
-
- Ruleset 4:
-
- R<$+> $@ $1 Return fully bracketed address
-