Re: [dmarc-ietf] Thoughts on choosing N

Todd Herr <todd.herr@valimail.com> Mon, 15 April 2024 14:02 UTC

Return-Path: <todd.herr@valimail.com>
X-Original-To: dmarc@ietfa.amsl.com
Delivered-To: dmarc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9C210C14F6F2 for <dmarc@ietfa.amsl.com>; Mon, 15 Apr 2024 07:02:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.995
X-Spam-Level:
X-Spam-Status: No, score=-1.995 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, MIME_BOUND_DIGITS_15=0.1, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=valimail.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QzgbQR_lNrLg for <dmarc@ietfa.amsl.com>; Mon, 15 Apr 2024 07:02:11 -0700 (PDT)
Received: from mail-yw1-x112d.google.com (mail-yw1-x112d.google.com [IPv6:2607:f8b0:4864:20::112d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 88650C14F618 for <dmarc@ietf.org>; Mon, 15 Apr 2024 07:02:11 -0700 (PDT)
Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-61865eed63dso24519687b3.0 for <dmarc@ietf.org>; Mon, 15 Apr 2024 07:02:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=valimail.com; s=google2048; t=1713189730; x=1713794530; darn=ietf.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=eKQ6L72xipTMQi34CgEq7c+TnyVS5q7QgsXD7z9K3yg=; b=Awy2bYyI36c9FNqNky7dA9Tb8xOuOyEahZInpjY5iabFLPyU1S0y41TR4dzCaPJFVr xNSFbmDsnnsuXzYFmSsOLsTbtMX894k1KVJ1fe6ahNpcXWtdxpOv+8nyJLbqnb9yddkk wa0rLYZwqtMWd7qRaTtehCKKK0sw+j+xsHrQ9GPhHlkYQ23RSIXFNYiz1CphD5sqqv45 VMFqRPBnu7xiSnbPIu4b2Te1iuGKszKCaCRcURYliznQ0x937ycv7QfkJjStAFmloLDZ dE0EP40mQSkcpU61OC7jD/kbXukRqlBJqr0GMva5eBgH+65AGLg0/eNXzXQH4euFzzf4 92Aw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713189730; x=1713794530; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=eKQ6L72xipTMQi34CgEq7c+TnyVS5q7QgsXD7z9K3yg=; b=gwcDvFMAmB/zulF1RrW7GUTnBeJiRclXIJYj7TbJaVUDBpp70S/XNOw+zHrkrtsQHm iMTTioyyYRF5+1VzOkBnSmnUF7D7eBJnJEs3lyzqKi0I7BCntDsz1M3urrWoYg1vPqGU iCphKz1XUow73AtowPlcO7Dv0pkvNw+HiFGWK4lhRjN4zmXcKcIKpsbsllN/NYhcI4VH MQz2BMbFKufFKm9vlWsgA2mFYyHTvimjb3XCPYxiTpv9kMWxwlkRtFMaWnfFi6cVdeCp mveCM5u9Y2cD0jIT9P48256OzHHALekpcog2Yqz2OeFkKGA0y2tAo97mKI8TckFviOCj vSfw==
X-Gm-Message-State: AOJu0YxxPizqzi4jr4ojcI1WG3X1yw7Wf1YQANnErh6fiVY3jE4nRDy2 QuOLilSRCr626Lrko7dCUOR8CJ2wiYT44rtk/r9uIMgVyDse0TIdZ5qTVP+PJgSFBdeT7JLTPko kAIiSUMIi14nbuIMenxAPwO1Eo2UFH1FAkhrbEYFs1MhrUQff
X-Google-Smtp-Source: AGHT+IHxaW8yLNKn6jRw46jwXNHOP88q8GKxLLIMTgNwDc57bUFAuWiGEWNwuVvFjFV+hpMWOhY4jhdv3t+O2Ezynrc=
X-Received: by 2002:a25:880f:0:b0:dc6:5570:898e with SMTP id c15-20020a25880f000000b00dc65570898emr7390373ybl.17.1713189729950; Mon, 15 Apr 2024 07:02:09 -0700 (PDT)
MIME-Version: 1.0
References: <CAOZAAfPwJHKGyLjTkdGDqkMeK4RQX4Fj0rw-Upn0cLZ+cE74aA@mail.gmail.com> <2764165.rv8vZNihtd@zini-1880> <53f29df5-031a-8711-aed6-25c310f539a2@iecc.com> <8C54A48A-5665-41A1-B64F-93A39CF0B12C@kitterman.com> <CAL0qLwZ2TuV_EW6D9HZYwErmwL_n7q4ZKTEpHBZbyxnkKJ8m6w@mail.gmail.com> <CAH48ZfzckPscoSPUVEqy1WS71iAnKyj7gQVDOW4Hi=FXo0PzYg@mail.gmail.com> <a2bd52d6-7bb3-4526-a0d8-075f4ab44f33@tana.it> <92E339E5-0A4C-4929-A751-375B892C2C53@kitterman.com>
In-Reply-To: <92E339E5-0A4C-4929-A751-375B892C2C53@kitterman.com>
From: Todd Herr <todd.herr@valimail.com>
Date: Mon, 15 Apr 2024 10:01:53 -0400
Message-ID: <CAHej_8m8H2RRH2uMjtqgw7yf093a10do22swt0j0C-yCTNPL6A@mail.gmail.com>
To: dmarc@ietf.org
Content-Type: multipart/alternative; boundary="0000000000004978360616231156"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dmarc/XDqJGIDT3PY55LMLwxn0cbzYGR0>
Subject: Re: [dmarc-ietf] Thoughts on choosing N
X-BeenThere: dmarc@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "Domain-based Message Authentication, Reporting, and Compliance \(DMARC\)" <dmarc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dmarc>, <mailto:dmarc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dmarc/>
List-Post: <mailto:dmarc@ietf.org>
List-Help: <mailto:dmarc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dmarc>, <mailto:dmarc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Apr 2024 14:02:15 -0000

On Mon, Apr 15, 2024 at 7:58 AM Scott Kitterman <sklist@kitterman.com>
wrote:

>
>
> On April 15, 2024 11:43:08 AM UTC, Alessandro Vesely <vesely@tana.it>
> wrote:
> >On Mon 15/Apr/2024 13:16:50 +0200 Douglas Foster wrote:
> >> Our original choice of N was based on the PSL.    The PSL could not
> detect organizational boundaries could not boundaries below level 5,
> because it had no entries longer than 5 labels, and we determined that the
> 5-label entries were not used for mail.    Therefore, any increase in N is
> new capability.   That new capability is probably desirable, but need not
> be limitless.  Using an N of 8 introduces a lot of new capability.
> >
> >
> >8 is not needed and not justified.  A mail site using 8 labels would have
> troubles with the RFC 7489 version, which uses the PSL.  They'd have to ask
> for PSL upgrades, right?
> >
> >Now, we can relax our ambition to be PSL-free and state N=max number of
> labels of public suffixes used by mail.  Or we could put N in an IANA
> registry that can be updated by expert review.  Such methods allow to have
> N low enough, yet upgradable and equal for all (compliant) implementations.
> >
> >Otherwise we can drop the requirement that N be equal for all
> implementations, and just make it configurable.  After all, it is an
> anti-abuse measure, akin to SPF lookup limit.  We can also keep it fixed at
> 5 and be sure that implementations will differ anyway.
> >
> Whatever we decide, I think it needs to be specified.  If N is whatever,
> you will end up with difficult to troubleshoot interoperability issues when
> various sites pick different values.
>
> I don't think we need to worry about revising it later.  In general, DNS
> is getting wider (new TLDs), not deeper.
>
>
An inspection of data collected by my employer reveals the longest observed
RFC5322.From address to include seven labels in the domain part. I am not
at liberty to reveal the specific domains due to customer privacy, but
they're there.

For a domain with seven labels, a.b.c.d.e.f.g, the Tree Walk as currently
described would miss any DMARC policy records published at b.c.d.e.f.g and
c.d.e.f.g.

I would propose the following first draft of expository text regarding
setting N at 8:

The point of the Tree Walk is to allow for the publishing and discovery of
DMARC policy records at any level in the DNS hierarchy that strikes a
balance between what the domain registrant deems reasonable and what
operational needs deem reasonable. The setting of N is done with an eye to
putting a thumb on the scale on the side of operational needs, to guard
against the truly silly or abusive cases with domain names with label
counts in the dozens or even triple digits. Based on an observation at the
time of publishing that RFC5322.From domains with seven labels were in
active but uncommon use, eight was chosen as the value of N in order to not
only accommodate for current usage but also to allow for a bit of future
expansion of the depth of the name space used for RFC5322.From domains.



-- 

Todd Herr | Technical Director, Standards & Ecosystem
Email: todd.herr@valimail.com
Phone: 703-220-4153


This email and all data transmitted with it contains confidential and/or
proprietary information intended solely for the use of individual(s)
authorized to receive it. If you are not an intended and authorized
recipient you are hereby notified of any use, disclosure, copying or
distribution of the information included in this transmission is prohibited
and may be unlawful. Please immediately notify the sender by replying to
this email and then delete it from your system.