Re: [ietf-smtp] Are A-label and U-label addresses supposed to be equivalent ?

Jiankang Yao <yaojk@cnnic.cn> Mon, 13 July 2020 02:46 UTC

Return-Path: <yaojk@cnnic.cn>
X-Original-To: ietf-smtp@ietfa.amsl.com
Delivered-To: ietf-smtp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E4DD23A094C for <ietf-smtp@ietfa.amsl.com>; Sun, 12 Jul 2020 19:46:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.001
X-Spam-Level:
X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 tests=[HTML_MESSAGE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jRSKPYxGPu-k for <ietf-smtp@ietfa.amsl.com>; Sun, 12 Jul 2020 19:46:53 -0700 (PDT)
Received: from cnnic.cn (smtp13.cnnic.cn [218.241.118.13]) by ietfa.amsl.com (Postfix) with ESMTP id F1B1E3A094A for <ietf-smtp@ietf.org>; Sun, 12 Jul 2020 19:46:50 -0700 (PDT)
Received: from TestYJ-PC (unknown [218.241.103.64]) by ocmail02.zx.nicx.cn (Coremail) with SMTP id AQAAf0CpqbYWywtfhQSkAA--.6922S2; Mon, 13 Jul 2020 10:46:46 +0800 (CST)
Date: Mon, 13 Jul 2020 10:46:44 +0800
From: Jiankang Yao <yaojk@cnnic.cn>
To: John C Klensin <john@jck.com>, John R Levine <johnl@taugh.com>, ietf-smtp <ietf-smtp@ietf.org>
Reply-To: yaojk <yaojk@cnnic.cn>
References: <alpine.OSX.2.22.407.2007112221060.44735@ary.qy>, <B952EF2B98EC9E710ED099CC@PSB>
X-Priority: 3
X-Has-Attach: no
X-Mailer: Foxmail 7.0.1.92[cn]
Mime-Version: 1.0
Message-ID: <2020071310464065986314@cnnic.cn>
Content-Type: multipart/alternative; boundary="----=_001_NextPart085617878363_=----"
X-CM-TRANSID: AQAAf0CpqbYWywtfhQSkAA--.6922S2
X-Coremail-Antispam: 1UD129KBjvJXoWxXr1fAF4UWryktFyrJF4xWFg_yoW5Cr1UpF W5Kr4kKF1kJw47WFs7Zr18X3y0gr9IyF45AFn0qa4UAa45ZFyIvrW7Kw4YvFZ7urn7X3WU Zr4jvr1kWan5ZaDanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUvKb7Iv0xC_Kw4lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Xr0_Ar1l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I 8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVCF0I0E 4I0vr24lYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4 IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwACY4xI67k04243AVAKzVAKj4xxMxkIecxE wVAFwVW8JwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F4 0E14v26r106r1rMI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jrv_JF1l IxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxV AFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6rW3Jr0E3s1lIxAIcVC2z280aVAFwI0_ Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVWUJVW8JwCE64xvF2IEb7IF0Fy7YxBIdaVFxh VjvjDU0xZFpf9x07beEfrUUUUU=
X-CM-SenderInfo: x1dryyw6fq0xffof0/
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-smtp/Sz6zq4VUpv05yEgNzGiSMuSLUrM>
Subject: Re: [ietf-smtp] Are A-label and U-label addresses supposed to be equivalent ?
X-BeenThere: ietf-smtp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Discussion of issues related to Simple Mail Transfer Protocol \(SMTP\) \[RFC 821, RFC 2821, RFC 5321\]" <ietf-smtp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf-smtp>, <mailto:ietf-smtp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf-smtp/>
List-Post: <mailto:ietf-smtp@ietf.org>
List-Help: <mailto:ietf-smtp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf-smtp>, <mailto:ietf-smtp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 13 Jul 2020 02:46:56 -0000

From: John C Klensin
Date: 2020-07-12 11:42
To: John R Levine; ietf-smtp
CC: YAO Jiankang
Subject: Re: [ietf-smtp] Are A-label and U-label addresses supposed to be equivalent ?
>(adding Jiankang since I'm not sure he is on this list)
>

Dear John,
Thanks for adding me. I will add more comments after yours.

> > --On Saturday, July 11, 2020 22:30 -0400 John R Levine
> <johnl@taugh.com> wrote:

> > Let's say I had these two addresses, which are the same except
> > that one has a U-label and the other has the equivalent
> > A-label.  They're both non-ASCII addresses since the mailbox
> > name is in Chinese
> > 
> > 用户1@后缀.services.net
> > 用户1@xn--fqr621h.services.net
> > 
> > Presumably if you're sending mail to those addresses, you
> > should send them to the same place.

> Given the way the interactions between RFC 6531, RFC 5321, and
> IDNA work, you have little choice: the sending MTA needs to go
> through IDNA to get an FQDN that can actually get looked up and,
> after that, the place where it sends (or tries to send) the
> message is all about the MX records. 
> 

> >   But on the final delivery
> > MTA, is that one address or two?  Different mail software
> > implement it differently.

I think that it SHOULD implement it in the same way. That is to treat these two addresses to be same. 

用户1@后缀.services.net
用户1@xn--fqr621h.services.net


Besides john's example,
there is another example:

Do we regard these two addreses to be same?
user@EXAMPLE.com
user@example.com


I think that it is yes.
user@EXAMPLE.com is another form of user@example.com.

For the same reason, 
用户1@后缀.services.net in another form of 
用户1@xn--fqr621h.services.net




> > Looking at RFCs 6530 and 6531 I get the impression the authors
> > assumed they'd be the same but I don't see anywhere it
> > explicitly says so.

>Speaking as one of the authors, I don't think we discussed it
>(rather than assuming anything).  There is a specific reason why
>we probably didn't, which goes to the "what questions are you
>really asking" issue.  The core SMTPUTF8 specs rather strongly
>discourage using anything but native character UTF-8 strings
>anywhere other than in the SMTP client when it is trying to
>figure the next hop out.  
>


Besides john's explanation,
RFC6531 has some clarification.

Section 3.7.  Additional ESMTP Changes and Clarifications

   The information carried in the mail transport process involves
   addresses ("mailboxes") and domain names in various contexts in
   addition to the MAIL and RCPT commands and extended alternatives to
   them.  In general, the rule is that, when RFC 5321 specifies a
   mailbox, this SMTP extension requires UTF-8 form to be used for the
   entire string.  When RFC 5321 specifies a domain name, the
   internationalized domain name SHOULD be in U-label form if the
   SMTPUTF8 extension is supported; otherwise, it SHOULD be in A-label
   form.

So in the email address, both U-label and A-label are different forms for the Internationalized Domain Names.


Best Regards
Jiankang Yao