[9055] in Athena Bugs
addresses with dots in To: lines break
daemon@ATHENA.MIT.EDU (John Carr)
Sat Mar 7 00:25:46 1992
To: bugs@Athena.MIT.EDU
Cc: postmaster@Athena.MIT.EDU
Date: Sat, 07 Mar 92 00:25:34 EST
From: John Carr <jfc@Athena.MIT.EDU>
In mail sent from an athena workstation, the "to" address gets rewritten
incorrectly if it looks like
11.22.33
Here is a sample message:
Received: by E40-PO.MIT.EDU (5.45/4.7) id AA07512; Thu, 5 Mar 92 12:58:04 EST
Received: from M14N-336-1.MIT.EDU by Athena.MIT.EDU with SMTP
id AA26235; Thu, 5 Mar 92 12:57:45 EST
From: ebarrett@Athena.MIT.EDU
Received: by m14n-336-1.MIT.EDU (5.61/4.7) id AA13349; Thu, 5 Mar 92 12:57:40 -0500
Message-Id: <9203051757.AA13349@m14n-336-1.MIT.EDU>
>> To: 780.3@21
Subject: proposal drafts
Date: Thu, 05 Mar 92 12:57:38 EST
[...]
The mail was sent to "21.780.3", but the to: line reads "780.3@21".
The mail was delivered correctly.
tytso and I looked at this, and found that mail sent from his workstation
with a modified sendmail.cf had the correct To: field, while mail sent from
his other workstation with a standard athena client sendmail.cf had an
incorrect to: field.
sendmail.cf rules 1 and 2 seem to do the right thing:
% /usr/lib/sendmail -bt -C/srvd/site/usr/lib/sendmail.cf
ADDRESS TEST MODE
Enter <ruleset> <address>
> 1 21.780.3
rewrite: ruleset 3 input: "21" "." "780" "." "3"
rewrite: ruleset 8 input: "21" "." "780" "." "3"
rewrite: ruleset 8 returns: "21" "." "780" "." "3"
rewrite: ruleset 3 returns: "21" "." "780" "." "3"
rewrite: ruleset 1 input: "21" "." "780" "." "3"
rewrite: ruleset 1 returns: "21" "." "780" "." "3"
> 2 21.780.3
rewrite: ruleset 3 input: "21" "." "780" "." "3"
rewrite: ruleset 8 input: "21" "." "780" "." "3"
rewrite: ruleset 8 returns: "21" "." "780" "." "3"
rewrite: ruleset 3 returns: "21" "." "780" "." "3"
rewrite: ruleset 2 input: "21" "." "780" "." "3"