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

Olivier Hureau <olivier.hureau@univ-grenoble-alpes.fr> Thu, 21 April 2022 17:21 UTC

Return-Path: <olivier.hureau@univ-grenoble-alpes.fr>
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 D630B3A1896 for <dmarc@ietfa.amsl.com>; Thu, 21 Apr 2022 10:21:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.108
X-Spam-Level:
X-Spam-Status: No, score=-2.108 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, NICE_REPLY_A=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=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=univ-grenoble-alpes.fr
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 3wJ39hl0Saa4 for <dmarc@ietfa.amsl.com>; Thu, 21 Apr 2022 10:21:25 -0700 (PDT)
Received: from zm-mta-out-3.u-ga.fr (zm-mta-out-3.u-ga.fr [152.77.200.56]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 302113A1897 for <dmarc@ietf.org>; Thu, 21 Apr 2022 10:21:24 -0700 (PDT)
Received: from mailhub.u-ga.fr (mailhub-1.u-ga.fr [129.88.178.98]) by zm-mta-out-3.u-ga.fr (Postfix) with ESMTP id 94DA440259 for <dmarc@ietf.org>; Thu, 21 Apr 2022 19:21:22 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=univ-grenoble-alpes.fr; s=2020; t=1650561682; bh=H3MhBC/1uUjwtAIgggJFBXg5bWgHba8c7zpgVaHULbw=; h=Date:Subject:To:References:From:In-Reply-To:From; b=ibp4mTKGLxj8EADZupArwyqsHUIwGgZHFxGAGx5CaCjY9Tb7XBfPqLZ6WprI9ZzYE mJoOSNwQz99h1kSCIWiA7LZJ8JdcU8qpv8NpbV4zFCQCLoLVz9QTZnJ2Tx2HReAjNm hfHW8cJWlXfnfiLWi1sKrkYGU0Fie3knnKX3ZuPjkQqYcyJ8uRSAxDOPb2zwEfWzfZ YAbUCswQulsy1Y2kzEiVI6534oxaMpYEa5tDf+qSnQ5SydFtYY2fM6oHo8vFvVgfEg 7NDrHSvDo+xsHnaPH43oQ/8bOC4xb11h2TU9a5pdD4kVUM7Ll7oACPvkF8jVYyDxzR 2FzdvchYHyfyQ==
Received: from smtps.univ-grenoble-alpes.fr (smtps3.u-ga.fr [195.83.24.62]) by mailhub.u-ga.fr (Postfix) with ESMTP id 92A63100065 for <dmarc@ietf.org>; Thu, 21 Apr 2022 19:21:22 +0200 (CEST)
Received: from [129.88.52.186] (hureauo.imag.fr [129.88.52.186]) (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) (Authenticated sender: hureauo@univ-grenoble-alpes.fr) by smtps.univ-grenoble-alpes.fr (Postfix) with ESMTPSA id 8E9C040062 for <dmarc@ietf.org>; Thu, 21 Apr 2022 19:21:22 +0200 (CEST)
Message-ID: <61ab8474-e9a5-33bd-4c79-19e46f979803@univ-grenoble-alpes.fr>
Date: Thu, 21 Apr 2022 19:21:22 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0
Content-Language: en-US
To: dmarc@ietf.org
References: <20220421165506.A8F1C3E43764@ary.qy>
From: Olivier Hureau <olivier.hureau@univ-grenoble-alpes.fr>
In-Reply-To: <20220421165506.A8F1C3E43764@ary.qy>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
X-Greylist: Whitelist-UGA SMTP Authentifie (hureauo@univ-grenoble-alpes.fr) via submission-587 ACL (41)
Archived-At: <https://mailarchive.ietf.org/arch/msg/dmarc/HoVTALTik7OolOI6pLZdqK9gM8s>
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: Thu, 21 Apr 2022 17:21:30 -0000

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.

Regards,

Olivier