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

John C Klensin <john@jck.com> Sun, 12 July 2020 05:08 UTC

Return-Path: <john@jck.com>
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 8E8D13A0D2A for <ietf-smtp@ietfa.amsl.com>; Sat, 11 Jul 2020 22:08:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=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 3JURZ4B79Fxa for <ietf-smtp@ietfa.amsl.com>; Sat, 11 Jul 2020 22:08:31 -0700 (PDT)
Received: from bsa2.jck.com (ns.jck.com [70.88.254.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 48E0B3A0D28 for <ietf-smtp@ietf.org>; Sat, 11 Jul 2020 22:08:31 -0700 (PDT)
Received: from [198.252.137.10] (helo=PSB) by bsa2.jck.com with esmtp (Exim 4.82 (FreeBSD)) (envelope-from <john@jck.com>) id 1juUE1-000Nai-4O; Sun, 12 Jul 2020 01:08:29 -0400
Date: Sun, 12 Jul 2020 01:08:23 -0400
From: John C Klensin <john@jck.com>
To: John R Levine <johnl@taugh.com>, ietf-smtp@ietf.org
cc: YAO Jiankang <yaojk@cnnic.cn>
Message-ID: <C81AD5B0FDD51A1B78EE21BE@PSB>
In-Reply-To: <alpine.OSX.2.22.407.2007120001350.45249@ary.qy>
References: <alpine.OSX.2.22.407.2007112221060.44735@ary.qy> <B952EF2B98EC9E710ED099CC@PSB> <alpine.OSX.2.22.407.2007120001350.45249@ary.qy>
X-Mailer: Mulberry/4.0.8 (Win32)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
X-SA-Exim-Connect-IP: 198.252.137.10
X-SA-Exim-Mail-From: john@jck.com
X-SA-Exim-Scanned: No (on bsa2.jck.com); SAEximRunCond expanded to false
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-smtp/o3FRkbfc_IM4gKuqwYyW4kWTmqU>
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: Sun, 12 Jul 2020 05:08:33 -0000


--On Sunday, July 12, 2020 00:13 -0400 John R Levine
<johnl@taugh.com> wrote:

> On Sat, 11 Jul 2020, John C Klensin wrote:
>> [ Are corresponding A-label and U-label addresses different
>> mailboxes? ]
> 
>> As distinct mailboxes, I think it would be within its rights
>> to do so.  I also think that, like the "user" and "UseR"
>> local part distinction, doing so would be fairly dumb and, if
>> I were implementing the MTA that <whatever> was going to use,
>> I don't think I'd go out of my way to make separating the two
>> easy.
> 
> That's what I was thinking.  But I was also thinking it might
> be different from upper/lower case mailboxes since, there is a
> defined mapping betwen A-labels and U-labels, and we already
> have at least one place, DNS lookups, where the MTA has to
> turn one into the other.

But, while, again, I'd think that taking advantage of the
distinction would be dumb, an MTA also has to do DNS lookups to
get the MX records but substituting the MX-target domain into
either the RCPT command or header "To:" would not work and would
be catastrophically stupid as well as clearly non-conforming.
So, as far as the MTA is concerned, that is a one-way
transformation with no need that I can thinks of to ever map tan
A-label to a U-label except _maybe_ in error reporting.

> I'm doing a project for the UASG testing the EAI conformance
> of a bunch of mail software.  It appears that Postfix treats
> A-label and U-label addresses differently, and Coremail may
> only accept the U-label and reject the A-label, although it's
> hard to tell because at the moment, its mail server for the
> 互联网.中国 domain doesn't accept anything.

The last I looked at Coremail, my impression was that it had
that MUA, MSA, and MTA functions a little confused.  Whether the
above would be plausible might depend on sorting that out.  In
addition, if the local-part is all-ASCII, a conversion to
A-labels is allowed by IDNA, especially in the MSA (just another
application) and SMTPUTF8 need not be involved.  I'm not going
to go back and look, but I think the SMTPUTF8 specs are fairly
clear that A-labels anywhere prior to the MTA's interface to the
DNS are strongly discouraged but, because of how IDNA works, not
prohibited.

> MUA support leaves a lot to be desired, e.g. Roundcube webmail
> always turns the domain into A-labels, even if the mailbox is
> non-ASCII.

That is clearly non-conforming to the intent of the specs;
whether it is clearly non-conforming is another question.  But I
suggest that USAG does no one any favors by hair-splitting about
the difference between intent (which was intended to promote
both operability and a decent user experience) and conformance
(which is closer to the former only).

> PS:
> 
> Coremail isn't accepting any mail at all for the
> 互联网.中国 domain. Telnet to port 25 and it says:
> 
>   554 IP<10.12.1.170> is rejected: 0
> 
> Huh? What?

If it sees your Telnet client as 10.12.1.170 and absent any
other information, I'd be inclined to wonder whether that is a
"we aren't accepting connections or mail from RFC 1918
addresses" rather than anything having to do with the address.

best,
   john