msir@uhura.cc.rochester.edu (Mark Sirota) (02/09/89)
I just tried the following trick and am now trying to determine just what I've figured out. I created a file with a To: line and a From: line, and executed the following command: /usr/lib/sendmail -t -d21.2 < testletter The file contains: ] To: recipient@rhost ] From: sender@shost In short, I don't understand what happens when it's generating the From: address. Note that my account name is "msir". As for the To: address, that seems pretty clear. Any comments are quite welcome. Here are the results. Note that S6 and S5 are defined by me; they are called from S3. I've broken it up into parts that I can see. I also added the "] " at the beginning of each line. Version number; this is under SunOS 3.5. ] Version 3.2 This section appears to be generating the From: address. It would seem that the From: address goes 3-0-2-4-3-1-4. Strange... Don't know why it goes through zero, or why it goes through twice... Perhaps this is generating two different addresses - envelope sender and header sender? ] rewrite: ruleset 3 input: "msir" ] rewrite: ruleset 5 input: "msir" ] rewrite: ruleset 5 returns: "msir" ] rewrite: ruleset 3 returns: "msir" ] rewrite: ruleset 0 input: "msir" ] rewrite: ruleset 0 returns: "^V" "local" "^X" "msir" ] rewrite: ruleset 2 input: "msir" ] rewrite: ruleset 2 returns: "msir" ] rewrite: ruleset 4 input: "msir" ] rewrite: ruleset 4 returns: "msir" ] rewrite: ruleset 3 input: "msir" ] rewrite: ruleset 5 input: "msir" ] rewrite: ruleset 5 returns: "msir" ] rewrite: ruleset 3 returns: "msir" ] rewrite: ruleset 1 input: "msir" ] rewrite: ruleset 1 returns: "msir" ] rewrite: ruleset 4 input: "msir" ] rewrite: ruleset 4 returns: "msir" This section seems to be generating the recipient address. Note that the local-part goes through 2-[R=]-4; this answers some recent questions. ] rewrite: ruleset 3 input: "recipient" "@" "rhost" ] rewrite: ruleset 5 input: "recipient" "@" "rhost" ] rewrite: ruleset 6 input: "recipient" "<" "@" "rhost" ">" ] rewrite: ruleset 6 returns: "recipient" "<" "@" "rhost" ">" ] rewrite: ruleset 5 returns: "recipient" "<" "@" "rhost" ">" ] rewrite: ruleset 3 returns: "recipient" "<" "@" "rhost" ">" ] rewrite: ruleset 0 input: "recipient" "<" "@" "rhost" ">" ] rewrite: ruleset 0 returns: "^V" "tcp" "^W" "rhost" "^X" "recipient" "<" "@" "rhost" ">" ] rewrite: ruleset 2 input: "recipient" "<" "@" "rhost" ">" ] rewrite: ruleset 2 returns: "recipient" "@" "rhost" ] rewrite: ruleset 14 input: "recipient" "@" "rhost" ] rewrite: ruleset 14 returns: "recipient" "@" "rhost" ] rewrite: ruleset 4 input: "recipient" "@" "rhost" ] rewrite: ruleset 4 returns: "recipient" "@" "rhost" -- Mark Sirota - University of Rochester, Rochester, NY Internet: msir@cc.rochester.edu Bitnet: msir_ss@uordbv.bitnet UUCP: ...!rochester!ur-cc!msir