Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!vsi1!teraida!mikel From: mikel@teraida.UUCP (Mikel Lechner) Newsgroups: comp.mail.sendmail Subject: Re: rulesets after resolved in ruleset 0 Message-ID: <3079@teraida.UUCP> Date: 15 Mar 89 21:39:42 GMT References: <44@crdgw1.crd.ge.com> Reply-To: mikel@teraida.UUCP (Mikel Lechner) Organization: Teradyne EDA Inc., Santa Clara, Calif. Lines: 36 In article <44@crdgw1.crd.ge.com> barnett@crdgw1.crd.ge.com (Bruce Barnett) writes: >> A simple question. After ruleset 0 resolves an address >> into a mailer, host, user triplet, what exactly is passed to >> the sender/recipient rulesets? Is it just the user part? >> Or the entire triplet? Only the user part of the triplet is passed to the recipient rulesets. >> Say I have a UUCP address, and I want to see how the address is re-written. >> Say the recipient ruleset for the UUCP mailer is 25. I would think >> that I could test this by using debug mode and giving it >> > 0,25,4 user@machine.UUCP Here's an example: Let the rewrite rule for your UUCP mailer be 26. Then after ruleset 0 determines selects this UUCP mailer the "From:", "To:", and recipient lines are rewritten. The "From:" line is passed through 3,1,26,4. The "To:" line is passed through 3,2,25,4. The user part of the triplet (the recipient) is passed through 3,2,25,4. This means that the recipient address goes through the canonicalization, etc. twice. You might think of it as being passed through rulesets 3,0,3,2,25,4. But as stated above only the user part of the triplet gets passed from ruleset 0 to the second occurance of ruleset 3. Unfortunately, you cannot give 0,2,25,4 directly to the sendmail debuger. If you do, the subsequent rulesets get the mailer and host part of the triplet, which just confuses things. You have to do the second pass throught the rulesets manually. These comments are based on my experience with sendmail under SunOS 3.2 and 4.0. Mikel Lechner UUCP: {decwrl,sun}!teraida!mikel Teradyne EDA Phone: (408) 980-5200 5155 Old Ironsides Drive Santa Clara, Ca 95054