Re: [dmarc-ietf] auth-res vs. dmarc

Alessandro Vesely <vesely@tana.it> Wed, 30 December 2020 19:38 UTC

Return-Path: <vesely@tana.it>
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 F24653A0C43 for <dmarc@ietfa.amsl.com>; Wed, 30 Dec 2020 11:38:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 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_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1152-bit key) header.d=tana.it
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 g5tBPnQqRuI9 for <dmarc@ietfa.amsl.com>; Wed, 30 Dec 2020 11:38:45 -0800 (PST)
Received: from wmail.tana.it (wmail.tana.it [62.94.243.226]) (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 980963A0C40 for <dmarc@ietf.org>; Wed, 30 Dec 2020 11:38:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tana.it; s=delta; t=1609357123; bh=02t+V00tuHb0AD8HV8mYi2TzzhUEeblj/FfWR666UZI=; l=1716; h=To:References:From:Date:In-Reply-To; b=BDle1F7XkyYdKcYo/wN6IbG49NvCOpiRQw/PVC/J4ZtMxyMyZXAtZDvamdZVn/Byg D4Y7oZZEdJZkeJEs51fs/wGV7wur7DG7zKV53dJAS41NZmLL4Og6I9Lpm97teEJSOj sNnj5GjzMCn7/4JS82KUGgMFrzUmAwkD5MN87hoEG8IP55ZPYmz11EsKLy9Fe
Authentication-Results: tana.it; auth=pass (details omitted)
Original-From: Alessandro Vesely <vesely@tana.it>
Received: from [172.25.197.111] (pcale.tana [172.25.197.111]) (AUTH: CRAM-MD5 uXDGrn@SYT0/k, TLS: TLS1.3, 128bits, ECDHE_RSA_AES_128_GCM_SHA256) by wmail.tana.it with ESMTPSA id 00000000005DC056.000000005FECD743.0000653D; Wed, 30 Dec 2020 20:38:43 +0100
To: dmarc@ietf.org
References: <9f6782b1-e85b-1a9c-9151-98feff7e18ea@mtcc.com> <CAHej_8m0OWsTt+tcSgUh+Fxu=HH_57nsb2O1Q_fgA2453ceh4g@mail.gmail.com> <140485eb-020f-4406-3f2f-e2c475ea51e5@mtcc.com> <CAHej_8mApfoF2ORgL+DoYTanrdhMjvT9H27kORwLKCQc1C9sRw@mail.gmail.com> <5588dbbe-b876-ed80-c80f-792380e3718f@mtcc.com> <CAHej_8=kW_t_JkOxUud1Uz8+PrbMh5CfwfxZK=mhe0wjW8wQpw@mail.gmail.com> <54dd9978-bcd1-6757-ad27-dcef6db6e5f7@mtcc.com> <CAHej_8kCi=7oqojDH_rbjn7kRg-PTDJWLgcKTGK9z-baUnKeMw@mail.gmail.com> <ef32de1e-d47e-1d0f-3cec-5994c7fdb7ae@mtcc.com> <CAHej_8kjSsQK_XEbdjWzV5npa29YjGadzD06Fmx3QLB4p+n_Cg@mail.gmail.com> <937f1019-a028-308d-2a0f-1e720fd49dcd@mtcc.com> <d8014c2a-c1c9-9eac-e64a-5f285bab7fd3@tana.it> <53A477E1-3FE1-4D84-A930-BBC6AD006C05@wordtothewise.com> <1c25c82e-db21-ba8b-cd56-3978019e32c4@mtcc.com>
From: Alessandro Vesely <vesely@tana.it>
Message-ID: <2717cf5f-bec9-d561-d7f7-ac167dc7ca6f@tana.it>
Date: Wed, 30 Dec 2020 20:38:43 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0
MIME-Version: 1.0
In-Reply-To: <1c25c82e-db21-ba8b-cd56-3978019e32c4@mtcc.com>
Content-Type: text/plain; charset="us-ascii"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/dmarc/VmCVE-Xa9LMKxfcITr7zHblzSoM>
Subject: Re: [dmarc-ietf] auth-res vs. dmarc
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: Wed, 30 Dec 2020 19:38:50 -0000

On Wed 30/Dec/2020 16:17:21 +0100 Michael Thomas wrote:
> 
> On 12/30/20 7:06 AM, Laura Atkins wrote:
>> The auth-res result posted as an example of DMARC failing earlier in this 
>> thread:
>> Authentication-Results:mx.google.com;
>>         dkim=passheader.i=@ietf.org  header.s=ietf1 header.b=aayvF8Pg;
>>         dkim=passheader.i=@ietf.org  header.s=ietf1 header.b="PwU4/yuQ";
>>         dkim=neutral (body hash did not verify)header.i=@mrochek.com  header.s=201712 header.b=PRr8Q7Zv;
>>         spf=pass (google.com: domain ofdmarc-bounces@ietf.org  designates 4.31.198.44 as permitted sender)smtp.mailfrom=dmarc-bounces@ietf.org;
>>         dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mrochek.com
>> The policy statement is right there: p=NONE.
>>
> No. That is not guaranteed whatsoever. It could say "(eat at Joe's)" and be valid.


Correct.  However, it could have been:

     dmarc=fail policy.dmarc=none header.from=mrochek.com

where the property meaning is defined as "Evaluated DMARC policy applied/to be 
applied after policy options including pct: and sp: have been processed. Must 
be none, quarantine, or reject."

That value appears on the IANA page[*] referring to RFC7489 for its definition. 
  However, Section 11.1 of RFC 7489 only mentions the "from" property.

IMHO, dmarc=quarantine is more direct than dmarc=fail policy.dmarc=quarantine.

In addition, policy.dmarc as a ptype.property pair sounds redundant.  Perhaps 
it should be policy.result, to emphasize that it has been computed after 
checking pct= and sp= (to be added: np=) and the alignment of header.from with 
respect to the dns zone where the record was found.

Best
Ale
-- 

[*] https://www.iana.org/assignments/email-auth/email-auth.xhtml