Re: [dmarc-ietf] "psd=" tag early assignment

John Levine <johnl@taugh.com> Sun, 10 July 2022 01:05 UTC

Return-Path: <johnl@iecc.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 2EDFEC15A731 for <dmarc@ietfa.amsl.com>; Sat, 9 Jul 2022 18:05:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.857
X-Spam-Level:
X-Spam-Status: No, score=-1.857 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, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, 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=iecc.com header.b=H2Dlm7PZ; dkim=pass (2048-bit key) header.d=taugh.com header.b=F4bcFDPG
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 pTsMRakVbvKQ for <dmarc@ietfa.amsl.com>; Sat, 9 Jul 2022 18:05:51 -0700 (PDT)
Received: from gal.iecc.com (gal.iecc.com [IPv6:2001:470:1f07:1126:0:43:6f73:7461]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 D90E2C15A72E for <dmarc@ietf.org>; Sat, 9 Jul 2022 18:05:50 -0700 (PDT)
Received: (qmail 90917 invoked from network); 10 Jul 2022 01:05:48 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:cc:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:cleverness; s=16323.62ca25ec.k2207; bh=7hNJT8IC9usfpzcDmkIDyAQVSkgznpouG15/NPCn1AQ=; b=H2Dlm7PZvg/jE+J3oEddxSL+rsvGEjwDUn8cpnQM6Ug6VRCPBLMxg5IPG2QqKxJ26vPyLNNh66kGn7Z7cgIfj/0stBjoH0asmOff68Bvs+RlFb04fJV0/YIciFccOsKQlkBHh/va9mApFStGzSM30PSp+3CK4gofDOChuxAI5DQAeVJ38I9zzO0oScDvzCjA2Qn6vMO1y7hYLKgUle0PT2/3rb+VgqZTOU6MO1s/mwtPhL1lLcoHv/BtRFo50/MuJ3houfhJrBpJWLWNy88bi2Jq+q9WrGRCpjxaSuqBGpAYn8bFm5tDD9V+M3pEhkzBi5/BA8bAIH2jlrnPelldaw==
DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=taugh.com; h=date:message-id:from:to:cc:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:cleverness; s=16323.62ca25ec.k2207; bh=7hNJT8IC9usfpzcDmkIDyAQVSkgznpouG15/NPCn1AQ=; b=F4bcFDPGRV6m4jcSppld/E4U1VKZAQdKAyzui9Ff+jdsta69YmC0Av24oszWV9kXrv8oTRrDn9sgKdvR6jTcLwrtfh3HIhyug0HJlVsqHzG1b0CT3CLXHnYzyLOP++BMDrYz2MugbbdNYLKMKA0sdXd21h6xxUivslGEma0BkTJW7k9sN7Zu6YzAsjoG0Y+4DykuYog/+zcc1PqmA3wsKMfUuFjcg6axqkZknGC7gMvYympZOkRqFagFFtEKEdGY6AwHno1DrNUZMB4Hm76oSVsnVdE/1pgPllKyzUe5gfIpxZhVVIBXV/DXB8CMCwzvGejhpaihisFi9Ml3uUVbVQ==
Received: from ary.qy ([IPv6:2001:470:1f07:1126::78:696d:6170]) by imap.iecc.com ([IPv6:2001:470:1f07:1126::78:696d:6170]) with ESMTPS (TLS1.3 ECDHE-RSA AES-256-GCM AEAD) via TCP6; 10 Jul 2022 01:05:48 -0000
Received: by ary.qy (Postfix, from userid 501) id DB3B04532F40; Sat, 9 Jul 2022 21:05:47 -0400 (EDT)
Date: Sat, 09 Jul 2022 21:05:47 -0400
Message-Id: <20220710010547.DB3B04532F40@ary.qy>
From: John Levine <johnl@taugh.com>
To: dmarc@ietf.org
Cc: sklist@kitterman.com
In-Reply-To: <E608F735-A35F-4785-9978-D136062C88BE@kitterman.com>
Organization: Taughannock Networks
X-Headerized: yes
Cleverness: minimal
Mime-Version: 1.0
Content-type: text/plain; charset="utf-8"
Content-transfer-encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/dmarc/3x-jKEGmEET6kQ0NTKPCWqWR4NE>
Subject: Re: [dmarc-ietf] "psd=" tag early assignment
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: Sun, 10 Jul 2022 01:05:55 -0000

It appears that Scott Kitterman  <sklist@kitterman.com> said:
>
>
>On July 9, 2022 5:07:43 PM UTC, Alessandro Vesely <vesely@tana.it> wrote:
>>>> Yeah, /should/!  The very fact that you yourself changed your mind about how it works, without going into the hassle
>of explaining your reasoning, ...
>>> 
>>> Um, what?  Scott and I went through some rounds of debugging to be sure the tree walk handled some obscure edge cases
>in a reasonable way.  It was all on this very mailing list with examples.  I think what we have now is OK but if you find
>something in the tree walk that is unclear or gets an unreasonable result, let us know, preferably with a concrete example.
>>
>>I think I received all list messages (although I don't check against your weekly count) an I read all of them.  Perhaps
>I've been inattentive, but I don't recall the switch from stop on psd=y to continue on psd=y if it's the first lookup.  Any
>pointer?
>
>I don't recall having changed this.  If you can check the previous draft revisions to see when it changed, maybe I could
>find it.  I'm confident that any changes to the way the tree walk works have been discussed on the list.

I changed it in a pull request a few weeks ago.

If you don't stop on the first psd=y that is not the original domain,
you get the wrong result if there are DMARC records above the psd=y.

I sent this example on June 21, link is
https://mailarchive.ietf.org/arch/msg/dmarc/T-8NX63L8ilHPhHXMygKdTJ6zMM/

a NXDOMAIN (or psd=y, doesn't matter)
b.a blah
c.b.a psd=y
d.c.b.a blah
e.d.c.b.a NXDOMAIN

I think the org domain for e.d.c.b.a is d.c.b.a.

If you don't stop at the psd=y, you get b.a as the org domain which still looks wrong to me.

The description in the current draft gets d.c.b.a.

R's,
John