Re: [dmarc-ietf] ABNF errors on RFC7489 and dmarcbis-07

John Levine <johnl@taugh.com> Fri, 22 April 2022 15:41 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 C21843A1748 for <dmarc@ietfa.amsl.com>; Fri, 22 Apr 2022 08:41:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.862
X-Spam-Level:
X-Spam-Status: No, score=-6.862 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, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, 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=adeOcUIF; dkim=pass (2048-bit key) header.d=taugh.com header.b=D5FyRWRB
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 II__vZjBX88n for <dmarc@ietfa.amsl.com>; Fri, 22 Apr 2022 08:41:36 -0700 (PDT)
Received: from gal.iecc.com (gal.iecc.com [IPv6:2001:470:1f07:1126:0:43:6f73:7461]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0DA583A1747 for <dmarc@ietf.org>; Fri, 22 Apr 2022 08:41:35 -0700 (PDT)
Received: (qmail 23212 invoked from network); 22 Apr 2022 15:41:34 -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=5aa9.6262ccae.k2204; bh=QHZWsyLyzfIiy8AGMeLi9VTv1HQT/Q7f3aq5JPOqQNY=; b=adeOcUIFO6dBMnoyBTBdIfhxb8HUqUnzrLeAjgv5ioxRt2RnpatuIrrQjjPGgoeXDRiP2ugonhiUgTnWRrYSA5jZUgmENxUZI0ZyPPA+0K4blYXcYo14AfvevJY2iaptlBeEHcbqaQ4DrmHwzB/QOMhCz01H1JWIrakl3my3gHi4cxvPgiVzSCSDhYDwnvoUNtrhNO0yekAAF9fBsfqslIe5jI25IBWx4vJNzgAeKE5fHECXEDmO6JfEgfa/vNqmlWxkkJ6n+Y3G7vw5rOCzdFvWgDgeBFlfuyvx4iZuqTdAGzefVokT3l1iuIME2vR/8Uyivg3wXkOmhkAkSkz3/g==
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=5aa9.6262ccae.k2204; bh=QHZWsyLyzfIiy8AGMeLi9VTv1HQT/Q7f3aq5JPOqQNY=; b=D5FyRWRBuCw9673F0e2vJFGh2tZymm8ZsZinc31t3cWft9isnzFSoiEoTq31NFyyODML/7LFfog0fqJG4+B7TIA/aIwdRgxnavthhZeoUcCNNsnYl6c3YDV+jXafOS5AXVMw0IT3Yl8/7WlfFTM/GIafrpgVEX126JDhNDbkFaehAKoz0ymETj5mJhGXhc7e1LlEXwaDrTtDD66HYOBC90daAe9YiMf9kThlS8+eq0ezYrDKzg2Ir/JUHMZxdreDAE6cF3k9HMFeWFRo9akhq1iXkPUO67KfRbULNHqgZ0mGuHpjVX9T2Th/hDnOHBbzOl/j9KWRo+8f5u0t11lKJw==
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; 22 Apr 2022 15:41:33 -0000
Received: by ary.qy (Postfix, from userid 501) id 249BF3E575BF; Fri, 22 Apr 2022 11:41:32 -0400 (EDT)
Date: Fri, 22 Apr 2022 11:41:32 -0400
Message-Id: <20220422154133.249BF3E575BF@ary.qy>
From: John Levine <johnl@taugh.com>
To: dmarc@ietf.org
Cc: rfc@arcsin.de
In-Reply-To: <dc0210cb-5241-bce7-609d-352faf2b5132@arcsin.de>
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/vtesmAg0U5qtGxOq37eX8RwEkW4>
Subject: Re: [dmarc-ietf] ABNF errors on RFC7489 and dmarcbis-07
X-BeenThere: dmarc@ietf.org
X-Mailman-Version: 2.1.29
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: Fri, 22 Apr 2022 15:41:44 -0000

It appears that Damian Lukowski  <rfc@arcsin.de> said:
>> In practice, the code that parses DMARC just splits the input into
>> xxx=yyy pairs of tag and value strings and checks the values
>> semantically.
>
>For those, who do not work at the IETF,

Nobody here works at the IETF.

> the spec comes before the implementation. 

Well, sometimes.  The most successful IETF standards are generally ones that document
and clarify existing practice rather than that invent something totally new.

>> Unknown tags MUST be ignored.  Syntax errors in the remainder
>> of the record SHOULD be discarded in favor of default values (if any)
>> or ignored outright.

Now that I look at it, the whole ABNF section is confused. I would
delete the second sentence in that section, and simplify the ABNF to
say that it's a mostly unordered list of tag=value clauses. Then make
a second section showing the syntax of the clauses that mean
something, and don't offer any advice for what to do with syntax
errors. If you want to interoperate, follow the spec. If you don't
follow the spec, you're on your own.

R's,
John