Re: [dane] email canonicalization for SMIMEA owner names

Ben Laurie <benl@google.com> Fri, 12 December 2014 16:28 UTC

Return-Path: <benl@google.com>
X-Original-To: dane@ietfa.amsl.com
Delivered-To: dane@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 554F91A6F38 for <dane@ietfa.amsl.com>; Fri, 12 Dec 2014 08:28:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.389
X-Spam-Level:
X-Spam-Status: No, score=-3.389 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, GB_I_LETTER=-2, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 RDG-QBCpH9rW for <dane@ietfa.amsl.com>; Fri, 12 Dec 2014 08:28:35 -0800 (PST)
Received: from mail-qc0-x235.google.com (mail-qc0-x235.google.com [IPv6:2607:f8b0:400d:c01::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7530E1A1BD6 for <dane@ietf.org>; Fri, 12 Dec 2014 08:28:35 -0800 (PST)
Received: by mail-qc0-f181.google.com with SMTP id m20so5717786qcx.40 for <dane@ietf.org>; Fri, 12 Dec 2014 08:28:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=2IVh3YnQiDz+1FW9o1IiDxZHb0lzHHB+N+EOxbsLRVA=; b=P5cqtDsQKkE6O1VycQhgzYrdzKg/QGurUYEcfObhzF2cMj3fa7o0nNebWQkulMw3R6 w+S0QM0wtu98T3dfEtFT6Lb9mkGmwDwiUBRN+SssUn7IEQLQ4uARmWnyRu8g8pEqI0BB cdkJlncsCltjduDYIKWy9DYuHXoBk1wWoZpkf0kRKCsIhUVO4DeIMnfbESaZ6HWUda/L v4bVnYuT5IdDrnCEeZlGWGAIpqQ/6UNthX4s6/L6CfYVWGBSELOpbh+rJ2jXTV9Rf24L eBHo2O0h1JUKttuPE5+89kl+96egqtz7pli2I0QW/xWBtxvvWhRD9SBwZ4Z95wZU4xAK 7Vyw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=2IVh3YnQiDz+1FW9o1IiDxZHb0lzHHB+N+EOxbsLRVA=; b=cq60yZ3icKpkxpSKmyGRp/4dM8IdnqAFoyj+mDP0cSsc9GbGpdK02V1A/86j1C6hbt RunXc8nhdKdKvFK3POKmZzNTdoVyNow6uuk3OAllOFcPhNMf4Xbw+NOHhi1EoE8tOrbo oGs13GV8GgG/5xP+GREFIuhRCW+s6un5G3FGAqIiq7lxkCSxJ0NY22jhuxHWzbav2Ol8 FYVJN/fqQBNiKDIlIDpN4ZNmHcmyipL3ZoGAC4U9iuyYYwLG3llIFaJa4icEwG1KaQFm xjRjOZhWZNuLr7n7AwQLY34fKJVNKHTn4vkzlsNy4OhRRPjMKFtHWcQcxiD48Xru8b8x OhIQ==
X-Gm-Message-State: ALoCoQl5705VverZ2zJhRTtQhCLjNEPK8xPH41kIzCJ7Qug+btnrNtIMgPjfv5X0g1bLYdtsr1mT
MIME-Version: 1.0
X-Received: by 10.224.136.194 with SMTP id s2mr32838489qat.82.1418401714528; Fri, 12 Dec 2014 08:28:34 -0800 (PST)
Received: by 10.229.183.201 with HTTP; Fri, 12 Dec 2014 08:28:34 -0800 (PST)
In-Reply-To: <548B1013.4090000@isode.com>
References: <95826148-4F06-4942-87A4-2F6601BA0F90@nist.gov> <CABrd9SQ1umsP731hvghV92EL5y2P4i++ESyrvxUhJD==z=pKpw@mail.gmail.com> <F79847E4-C748-467F-ADA3-0DBCD5CFE697@nohats.ca> <548B1013.4090000@isode.com>
Date: Fri, 12 Dec 2014 16:28:34 +0000
Message-ID: <CABrd9SQt6gqt_hAUECY4GN5_xDamTLJJnPAZAT8vVnovH1MeBg@mail.gmail.com>
From: Ben Laurie <benl@google.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>
Content-Type: text/plain; charset="UTF-8"
Archived-At: http://mailarchive.ietf.org/arch/msg/dane/zG-6D_Ak9EDD0kP3JSQpwbaMbEA
Cc: Paul Wouters <paul@nohats.ca>, dane WG list <dane@ietf.org>
Subject: Re: [dane] email canonicalization for SMIMEA owner names
X-BeenThere: dane@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DNS-based Authentication of Named Entities <dane.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dane>, <mailto:dane-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/dane/>
List-Post: <mailto:dane@ietf.org>
List-Help: <mailto:dane-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dane>, <mailto:dane-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Dec 2014 16:28:37 -0000

On 12 December 2014 at 15:56, Alexey Melnikov <alexey.melnikov@isode.com> wrote:
> On 12/12/2014 15:38, Paul Wouters wrote:
>>
>> Whoever starts using variant email addresses should publish records for
>> it? As John said, clients shouldn't start guessing addressing schemes used
>> by others
>
> +1. Nobody other than the final MTA/MDA knows that certain forms are
> equivalent.

True, but does not make your scheme workable.

>
>> Sent from my iPhone
>>
>>> On Dec 12, 2014, at 06:37, Ben Laurie <benl@google.com> wrote:
>>>
>>>> On 11 December 2014 at 19:51, Rose, Scott W. <scott.rose@nist.gov>
>>>> wrote:
>>>> Realized the other action item I was assigned to from the interim
>>>> meeting was email canonicalization for SMIMEA.  I believe it stems from
>>>> Viktor Dukhovni's email to the endymail list:
>>>> http://www.ietf.org/mail-archive/web/endymail/current/msg00134.html
>>>>
>>>> I was wondering if we can borrow a page from RFC 4034 Section 6.2 and
>>>> include text in the draft Section 3, item 1 in the numbered list:
>>>>
>>>>      1.   The user name (the "left-hand side" of the email address,
>>>> called
>>>>        the "local-part" in the mail message format definition [RFC2822]
>>>>        and the "local part" in the specification for internationalized
>>>>        email [RFC6530]), is hashed using the SHA2-224 [RFC5754]
>>>>        algorithm (with the hash being represented in its hexadecimal
>>>>        representation, to become the left-most label in the prepared
>>>>        domain name.  This does not include the "@" character that
>>>>        separates the left and right sides of the email address.  The
>>>>        string that is used for the local part is a Unicode string
>>>>        encoded in UTF-8 **with all upper case letters converted to their
>>>>        corresponding lower case letters where appropriate.**
>>>>
>>>>
>>>> The text between the '**' is new.  The goal is to prevent a situation
>>>> when the email address is "JRandom@example.com" and the SMIMEA is created
>>>> using "jrandom" as the user name.   Would this be enough, or are there
>>>> scripts where this would result in different or potentially conflicting
>>>> owner names?
>>>
>>> Speaking of canonicalisation:
>>>
>>> 1. What about X+Y@Z - for almost all MTAs, this is the same as X@Z.
>>>
>>> 2. What about GMail's a.b.c@gmail.com == abc@gmail.com ==
>>> ab.c@gmail.com == a.bc@gmail.com?
>
>