Re: homework, not an experiment, draft-crocker-email-deliveredto

Sam Varshavchik <[email protected]> Wed, 04 Aug 2021 19:29:17 -0400
Newsgroups gmane.ietf.smtp
Message-ID <[email protected]>
Dave Crocker writes:

>>
>>    "Delivered-To:" FWS Mailbox CRLF
>>                     ; Mailbox is from [SMTP]
>
>
> I don't see anything in either that prohibits what you've described.

The sticking point is "Mailbox is from [SMTP]" is getting interpreted to  
mean "literally what's in the RCPT TO'.

This is not always the case. Example: mail received by a mailing list  
server, and then delivered to a local mailbox (that's subscribed to the  
mailing list), will have two Delivered-To: headers. The first one will be  
the mailing list's public SMTP address (or may be not, but it will be  
[email protected] where "something" is how example.com's mail server  
knows the mailing list's mailbox by), the second one will be the recipient's  
address, which may or may not be a public SMTP address (for the same  
reasons).

Another live example, using my isolated network, but with a couple of  
servers that occasionally swap SMTP mail:

$ telnet localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 monster.email-scan.com ESMTP
EHLO monster.email-scan.com
250-monster.email-scan.com Ok.
250-AUTH CRAM-SHA256 CRAM-SHA1 CRAM-MD5
250-STARTTLS
250-XVERP=Courier
250-XEXDATA
250-XSECURITY=NONE,STARTTLS
250-PIPELINING
250-8BITMIME
250-SMTPUTF8
250-SIZE
250 DSN
MAIL FROM:<[email protected]>
250 Ok.
RCPT TO:<[email protected]>
250 Ok.
DATA
354 Ok.
Subject: test
From: [email protected]
To: [email protected]
Subject: local mail

test
.
250 Ok. 00000000610B21CB.00014A01
QUIT
221 Bye.
Connection closed by foreign host.

Would anyone care how the headers would look like?

Delivered-To: [email protected]
Return-Path: <[email protected]>
Received: from monster.email-scan.com (localhost [::1])
  by monster.email-scan.com with ESMTP
  id 0000000000068359.00000000610B21CB.00014A01; Wed, 04 Aug 2021 19:24:44 -0400
Subject: test
From: [email protected]
To: [email protected]
Subject: local mail

test

The Delivered-To: header has nothing to do with the SMTP recipient. This  
node owns @monster.email-scan.com, and it's up to this node to decide what  
goes in there.

_______________________________________________
ietf-smtp mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/ietf-smtp
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEMWrVnbBKLOeG9ifkazpiviedvyUFAmELIs0ACgkQazpivied
vyX8exAA889FFvru0UoanMzfbz291/qDjRSbLeVRM8A3WEPLSuXYU911pWGxXvGn
qLKTwPwA82Fl0EZNleZ2Yp8QDSpGkC2fF2A7S+pWmGjt9RFST/xupfMlymLhru2/
xwE2XdhE/+BAMWgndztXwZqWBSTqBrkPK0eZRumfPZAACCPGFOnLcvqvD2BLIDbD
3LjE/sU83nDNgBzSFQYdr8bqXJOWe+rFOp7aLDvqp2gqHmXAdpJrZNpxhdiI9f8I
65B881yVoRDedfdics5hWbNehMD6B8dU4lnMSrGdzfrOxb7u1ZAJYAV/jpv34Xk5
bN2c4N90WIEE27R/NPKaZ+s8PnnzybMZyf587vJ/IHCpav8ErY+fv+hOaaQlGCYI
vfC85KC+kpAfOVGuuRvg66ESI92ksH+mIspc37nndUCDScRlL0/M/BsshREq0eOc
m1vATs0ekB/lhNji+oUg6NiVPIOfnNl2g2/8ydEBH8iYFEl50aqLveax8j/OgefR
Ne/qbKFVgnhuq1fsfaYtEqxq4qmkxmj++9zMRC9pW4p2jG7YBpuK+oSd8TXpyOtM
wi/yG0rItKrWg8W29ItzUMZMhWZt/vN9YwRtT81pxFimQ5iB5Zgefvh6va7M7+LC
26vprZBHTdjHorHS4q831BZSFPA0wOCTfWnaxyzKaSS2PwdGfAo=
=oLdg
-----END PGP SIGNATURE-----