Re: [dmarc-ietf] Ticket #1 - SPF alignment

John Levine <johnl@taugh.com> Wed, 03 February 2021 18:12 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 C15653A0D05 for <dmarc@ietfa.amsl.com>; Wed, 3 Feb 2021 10:12:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.851
X-Spam-Level:
X-Spam-Status: No, score=-1.851 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.249, 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=ZNkwqTaC; dkim=pass (2048-bit key) header.d=taugh.com header.b=CKah99Or
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 ugdbIc-GMN1w for <dmarc@ietfa.amsl.com>; Wed, 3 Feb 2021 10:12:31 -0800 (PST)
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 EE55A3A09EA for <dmarc@ietf.org>; Wed, 3 Feb 2021 10:12:30 -0800 (PST)
Received: (qmail 44374 invoked from network); 3 Feb 2021 18:12: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=ad52.601ae78b.k2102; bh=bbYnEdizRY3k4Od162wPSnMZTyeKeQ7TQqBIf1rQyy8=; b=ZNkwqTaCKm9f+82YV1nU69u9ByV31kZfiM//N6sGLUhI1OuHEorge1ye1362omUh5iAXJUpGy5LZ2K+b4w1q1jnOO/+2OQCG7aNPxxlkcJeGFWaev7ywlBHGEJ0F33MNDx7OrpOavOyjO4g0wLcd50Mo14OLZO7qLR5t0HJq3aj7nJcOzCFtJIwTBAP2b+C1+PzFM22mYiFcxnCvg9ZZZq+XOGgzXi1T4LHEi8nDumhp1SdaKswKiIyY16Nzo7gPmix6oOja6AIeWXhEO8KuL6jPuKCrveIe0itDl9bErTPZRbOJmO96BtuvFzOeszAA6AjlHWNTbD9uAYMsn7w8iA==
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=ad52.601ae78b.k2102; bh=bbYnEdizRY3k4Od162wPSnMZTyeKeQ7TQqBIf1rQyy8=; b=CKah99Orkz6SEw10INLSCdkWb3vmGQUORQVkGP0cSTFIYJmyZ2QIu/yBar2E0nR501o4Od1nMmtAPbF5YOOsaKqV05ciMNXQxypRBl3jGruxl4QT/fDVT6r/8hM9W650LLdpIcNzTUOQavqmTlEdRRFW/Q2zHg2ku3l1M1V8+17VF1oo0rWiGH7EHsfYG3Wd7txoC6IBe1EvnAtliIAZhP1t5eDw1sAq/dMKIEjpxwYawAzA/vlvEPo7Yfrj8280Jrk9PvGJd0H2Oq4JqKKA3ITk1d12NEuEVWqYtSfOa968K29pKsbAs4tN4rPQ7kDW/BiuiLlOrQm4RCz4I/YWVQ==
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.2 ECDHE-RSA AES-256-GCM AEAD) via TCP6; 03 Feb 2021 18:12:27 -0000
Received: by ary.qy (Postfix, from userid 501) id 9AB746D51182; Wed, 3 Feb 2021 13:12:26 -0500 (EST)
Date: 3 Feb 2021 13:12:26 -0500
Message-Id: <20210203181226.9AB746D51182@ary.qy>
From: "John Levine" <johnl@taugh.com>
To: dmarc@ietf.org
Cc: vesely@tana.it
In-Reply-To: <b396cf21-05f4-a1a4-5abc-78c5aa276473@tana.it>
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/r8sGg9-yHqQ6nHErCDcIbQ4DTRU>
Subject: Re: [dmarc-ietf] Ticket #1 - SPF alignment
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, 03 Feb 2021 18:12:34 -0000

In article <b396cf21-05f4-a1a4-5abc-78c5aa276473@tana.it> you write:
>On Tue 02/Feb/2021 20:13:42 +0100 John R Levine wrote:
>> 
>> There is some commented out code to not pass a HELO result to DMARC, don't 
>> remember why I turned it off.
>
>Couldn't find the code you uncommented in.

I'm not surprised.  It's only in my MTA.

>Apparently, OpenDMARC reads Authentication-Results: (or Received-SPF:) and calls opendmarc_policy_store_spf() to save
>the result it parsed.  That way, the last value found is the one that will be used.
>
>It seems that relies on upstream SPF filters writing a single SPF result.  If mfrom is given write its result,
>otherwise write helo's.  That behavior is presumably coded after DMARC's idiosyncrasy.  It would choke if applied to an
>unskewed SPF filter's results.

Is that what its milter does?  Not surprised.

>> It's existing practice and I see no reason to change it.
>
>Software changes all the time.  If we change, ...

Urrgh. There are still MTAs that haven't been updated from RFC 821. If
you want a real standard, the closer you can make it to what the
running code does, the most likely it will work.

R's,
John