[11188] in Athena Bugs
Re: Workstation sendmail.cf strips quotes in addresses
daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Sun Oct 10 19:42:22 1993
Date: Sun, 10 Oct 1993 19:42:38 -0400
From: "Jonathan I. Kamens" <jik@security.ov.com>
To: hoffmann@MIT.EDU
Cc: bugs@MIT.EDU, postmaster@MIT.EDU
In-Reply-To: <9310102331.AA26713@Paddington> (hoffmann@MIT.EDU)
The 's' mailer flag doesn't affect the addresses in the header of the
message. It affects only the envelope addresses that are sent to the
remote SMTP server with the MAIL FROM and RCPT TO commands.
To test this, create two sendmail.cf files -- one with the 's' flag
for the SMTP mailer, and one without it. Using each of those files,
run "/usr/lib/sendmail -oi -t -v" on this message:
----- cut here -----
To: "/foo=12/bar=bazz/quux=frobnitz/foo./"@x400.gateway.host
Subject: This is a test.
This is a test.
----- cut here -----
Here's what happens when I do this (note the "RCPT To" lines in each
case):
# /usr/lib/sendmail -oi -t -v -Csendmail.cf.with-stripping < test-message
"/foo=12/bar=bazz/quux=frobnitz/foo./"@x400.gateway.host... Connecting to mail.aktis.com (ether)...
220-pad-thai.aktis.com Sendmail 8.6.beta.12/ ready at Sun, 10 Oct 1993 19:40:49 -0400
220 ESMTP spoken here
>>> EHLO gza-client1.aktis.com
250-pad-thai.aktis.com Hello gza-client1.aktis.com [192.231.148.26], pleased to meet you
250-EXPN
250-SIZE
250 HELP
>>> MAIL From:<jik> SIZE=100
250 <jik>... Sender ok
>>> RCPT To:</foo=12/bar=bazz/quux=frobnitz/foo./@x400.gateway.host>
550 </foo=12/bar=bazz/quux=frobnitz/foo./@x400.gateway.host>... Cannot mail directly to files
"/foo=12/bar=bazz/quux=frobnitz/foo./"@x400.gateway.host... User unknown
>>> RSET
250 Reset state
>>> RSET
250 Reset state
>>> MAIL From:<> SIZE=200
250 <>... Sender ok
>>> RCPT To:<jik>
250 <jik>... Recipient ok
>>> DATA
354 Enter mail, end with "." on a line by itself
>>> .
250 TAA04830 Message accepted for delivery
jik... Sent (TAA04830 Message accepted for delivery)
MAILER-DAEMON... Closing connection to mail.aktis.com
>>> QUIT
221 pad-thai.aktis.com closing connection
# /usr/lib/sendmail -oi -t -v -Csendmail.cf.without-stripping < test-message
"/foo=12/bar=bazz/quux=frobnitz/foo./"@x400.gateway.host... Connecting to mail.aktis.com (ether)...
220-pad-thai.aktis.com Sendmail 8.6.beta.12/ ready at Sun, 10 Oct 1993 19:41:08 -0400
220 ESMTP spoken here
>>> EHLO gza-client1.aktis.com
250-pad-thai.aktis.com Hello gza-client1.aktis.com [192.231.148.26], pleased to meet you
250-EXPN
250-SIZE
250 HELP
>>> MAIL From:<jik> SIZE=100
250 <jik>... Sender ok
>>> RCPT To:<"/foo=12/bar=bazz/quux=frobnitz/foo./"@x400.gateway.host>
250 <"/foo=12/bar=bazz/quux=frobnitz/foo./"@x400.gateway.host>... Recipient ok
>>> DATA
354 Enter mail, end with "." on a line by itself
>>> .
250 TAA04835 Message accepted for delivery
"/foo=12/bar=bazz/quux=frobnitz/foo./"@x400.gateway.host... Sent (TAA04835 Message accepted for delivery)
Closing connection to mail.aktis.com
>>> QUIT
221 pad-thai.aktis.com closing connection
#
Jonathan Kamens | OpenVision Technologies, Inc. | jik@security.ov.com