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

Scott Kitterman <sklist@kitterman.com> Fri, 22 April 2022 03:55 UTC

Return-Path: <sklist@kitterman.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 F119B3A0C63 for <dmarc@ietfa.amsl.com>; Thu, 21 Apr 2022 20:55:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.109
X-Spam-Level:
X-Spam-Status: No, score=-2.109 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, RCVD_IN_DNSWL_BLOCKED=0.001, 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=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=kitterman.com header.b=Ili6wQPe; dkim=pass (2048-bit key) header.d=kitterman.com header.b=QWscWs38
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 2ZMlKYxF7GpC for <dmarc@ietfa.amsl.com>; Thu, 21 Apr 2022 20:55:11 -0700 (PDT)
Received: from interserver.kitterman.com (interserver.kitterman.com [IPv6:2604:a00:6:1039:225:90ff:feaa:b169]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D76AE3A0DCE for <dmarc@ietf.org>; Thu, 21 Apr 2022 20:55:11 -0700 (PDT)
Received: from interserver.kitterman.com (interserver.kitterman.com [64.20.48.66]) by interserver.kitterman.com (Postfix) with ESMTPS id 7A464F80259 for <dmarc@ietf.org>; Thu, 21 Apr 2022 23:55:07 -0400 (EDT)
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=kitterman.com; i=@kitterman.com; q=dns/txt; s=201903e; t=1650599707; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type : from; bh=6GTL0ZxeCyp+Tf6+WsIhBDY97PcvMOnguCt1y4iBjfg=; b=Ili6wQPezS3QtzJligHL5pJKgxzBxYw08nyUUunkhkylCZfD9v05QJa+3sGJ9YUyV/bE/ vk1JlvbHv4K+92WDA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kitterman.com; i=@kitterman.com; q=dns/txt; s=201903r; t=1650599707; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type : from; bh=6GTL0ZxeCyp+Tf6+WsIhBDY97PcvMOnguCt1y4iBjfg=; b=QWscWs38bZpW40B+JCY0qRqHhYKzB9ax5vHXlGnsaLejKBFaF4ISrESrNVwz48D07irCx uBA7OF6ysVkNmSu8FqZ7h5Z6GvVewPIwLFPm6cD3euGRt+MX3hcKDOTh//NIuE9M/lhU8Zn HhiSxfSF7GhVwxTaTd4RzWgSG87+r3w6GUZlFLCVAsusrH5GP14NGodCoXiFrs26vN0EvO9 50Wp93YRFhWGKhPszUCsVjbQPGJj/YiiBefqv65TDWTDABowLOXmnvGKRq1jyOuHGy1CyUV UepZiNpipiKshWeanDY3UY/4F7o2RnwARsdEmCS6dKN5MVqUjnno3X4qAzUA==
Received: from zini-1880.localnet (static-72-81-252-22.bltmmd.fios.verizon.net [72.81.252.22]) by interserver.kitterman.com (Postfix) with ESMTP id 603D6F801D4 for <dmarc@ietf.org>; Thu, 21 Apr 2022 23:55:07 -0400 (EDT)
From: Scott Kitterman <sklist@kitterman.com>
To: dmarc@ietf.org
Date: Thu, 21 Apr 2022 23:55:07 -0400
Message-ID: <9380369.aQOLRvjIFn@zini-1880>
In-Reply-To: <61ab8474-e9a5-33bd-4c79-19e46f979803@univ-grenoble-alpes.fr>
References: <20220421165506.A8F1C3E43764@ary.qy> <61ab8474-e9a5-33bd-4c79-19e46f979803@univ-grenoble-alpes.fr>
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dmarc/dPtnUTK0KklLdoRHMfqATlGJjs4>
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 03:55:18 -0000

On Thursday, April 21, 2022 1:21:22 PM EDT Olivier Hureau wrote:
> Hello,
> 
> Todd pointed out that the  with the "v=DMARC1" txt records for external
> verification explain why 'dmarc-request' is optional but we can still
> modified the rules in this way.
> 
> I also found out that on the with current rules : tags can be in
> uppercase (the only strings that are "hardcoded" are the "DMARC1" from v
> tag) and it also allow whitespace between the tag, the "=" and the value.
> 
> As it the above TXT records are valid :
> - "V=DMARC1;P=REJECT"
> - "v=DMARC1; p=ReJeCt"
> - "v=DMAR1; p     =    reject"
> 
> A lot of dmarc libraries out there says that the records is not valid,
> but according to the RFC7489 : it is.
> Doing some active measurements on some email service provider i also
> found that some are case/whitespace sensitive.
> 
> I am currently writing a paper and want to submit it at the Applied
> Networking Research Workshop - IETF-114. I hope I will share all my
> results with you in a near future.

Thanks.  authheaders [1] handled the space/no space difference correctly and 
passed the DMARC records through with the case unchanged.  I just did an 
update to lower case everything except DMARC1 since that seems to match most 
people's expectations.

Scott K

[1] https://github.com/ValiMail/authentication-headers