Re: [dmarc-ietf] cleaning up the ABNF, was I-D Action: draft-ietf-dmarc-dmarcbis-07.txt

John Levine <johnl@taugh.com> Sat, 30 April 2022 02:26 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 45193C157B36 for <dmarc@ietfa.amsl.com>; Fri, 29 Apr 2022 19:26:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.852
X-Spam-Level:
X-Spam-Status: No, score=-1.852 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.248, SPF_PASS=-0.001, URIBL_BLOCKED=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=3JB+SVY0; dkim=pass (2048-bit key) header.d=taugh.com header.b=VS1954SU
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 yAGjfM96s89f for <dmarc@ietfa.amsl.com>; Fri, 29 Apr 2022 19:26:30 -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 4B40DC14F74F for <dmarc@ietf.org>; Fri, 29 Apr 2022 19:26:30 -0700 (PDT)
Received: (qmail 77326 invoked from network); 30 Apr 2022 02:26:27 -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=12e0b.626c9e53.k2204; bh=e89QbT42NdS5lCyMwmoMw3XloaYj1A7NjBClSjeNzx8=; b=3JB+SVY0wJAwfZRt0UIqLXivQrNngB4hePFKAkrCY+JPYBI4xdQ7J0VujHrFdqdwuqRpIliNCh+xzRe+DYoaxFqQjV6SYVMRNuzIvImpe9Tt7Zoi3CMrWyLIgcbhwtPozmfZnAiEjyu/Vv5DqimyN3sqXMzozMa/sj+HGcP6HQkuAqyQ60Bhx/OQiZvxBm4BHvz0fBM5AxUM0VNfHwFlr94rKew1OV3wCB/HxbiDPDlmTNAl/c7gWDbGMWO9lvFa6G3jnb4LTdJhqaqJAl2Vo7nTneq7avWB/c/zOaEBj/O3FXVQdsCIhirKrRZrQZb5bD6Kb5Z499w5MKXZKRlEjw==
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=12e0b.626c9e53.k2204; bh=e89QbT42NdS5lCyMwmoMw3XloaYj1A7NjBClSjeNzx8=; b=VS1954SUa1VIfRtmyjDLunm9QZOkUfM4HhgMYOlc7kUFtLdA/09/rqKrXaLhbaokFEm7FYJQah6ADxIau3stebES6To11duVC1+t5CbzwGcRPK6rBZtQBoZwBGWkQfeaHwom74Vr+H4eP9Ylq5keOpaBt2ZV1rF5lRAshYNlHBcZKA5fRQ1uMEroxc0bHTgTlNbX9yiAIxBsYx0zTn9791EPFL2vu6W4ObBTQmrAfCSpi0AV55M6YBj4WWif3WyIiv+YZcUvGK7ZHs890va4D8JCXgll3LTXs/eiMWP5opac6kD720ZIAh2ttVWOWfYw31TaQJf4sfshGy0iPUNBSw==
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; 30 Apr 2022 02:26:27 -0000
Received: by ary.qy (Postfix, from userid 501) id 6057B3F1EF88; Fri, 29 Apr 2022 22:26:25 -0400 (EDT)
Date: Fri, 29 Apr 2022 22:26:25 -0400
Message-Id: <20220430022626.6057B3F1EF88@ary.qy>
From: John Levine <johnl@taugh.com>
To: dmarc@ietf.org
Cc: sklist@kitterman.com
In-Reply-To: <43455779.Q0NcroJU1p@zini-1880>
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/y2VGdB7EQPH35UE4sqCQsuAUHoI>
Subject: Re: [dmarc-ietf] cleaning up the ABNF, was I-D Action: draft-ietf-dmarc-dmarcbis-07.txt
X-BeenThere: dmarc@ietf.org
X-Mailman-Version: 2.1.34
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: Sat, 30 Apr 2022 02:26:35 -0000

It appears that Scott Kitterman  <sklist@kitterman.com> said:
>I'm not any kind of an ABNF expert, but adding the missing "u" for dmarc-psd 
>is definitely correct and I believe the *WSP for dmarc-psd and dmarc-test are 
>correct also.

My inclination is to redo the ABNF to better match what
implementations actually do -- split the record up into tag=value pairs
and then interpret each value when used. So the ABNF would be
something like this:

 dmarc-record    = dmarc-version *WSP *(";" *WSP dmarc-tag) [ ";" ]
 
 dmarc-tag       = 1*ALPHA *WSP "=" *WSP dmarc-value *WSP
 dmarc-value     = 1*(%20-3a / %3c-7e) ; space and visible except semicolon
	; in dmarc-value leading and trailing spaces are in the WSP, not the value

Then define the specific syntax for the various values, and a rule that the "p" tag
if it is present has to go first.

If people are OK with this I can make a stab at it over the weekend.

R's,
John