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

Douglas Foster <dougfoster.emailstandards@gmail.com> Wed, 10 February 2021 23:24 UTC

Return-Path: <dougfoster.emailstandards@gmail.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 2AB3F3A0D98 for <dmarc@ietfa.amsl.com>; Wed, 10 Feb 2021 15:24:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, 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=gmail.com
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 XpJsI0P-4agh for <dmarc@ietfa.amsl.com>; Wed, 10 Feb 2021 15:24:24 -0800 (PST)
Received: from mail-vs1-xe2e.google.com (mail-vs1-xe2e.google.com [IPv6:2607:f8b0:4864:20::e2e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 275933A0D97 for <dmarc@ietf.org>; Wed, 10 Feb 2021 15:24:24 -0800 (PST)
Received: by mail-vs1-xe2e.google.com with SMTP id d24so2080467vso.6 for <dmarc@ietf.org>; Wed, 10 Feb 2021 15:24:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AF/Uk7wJJ5xMxz6XJ02HrSrLCeASbGyi+I30rflv3mk=; b=l3bUg7H7yel4UKDOuIdpLi/4keM7mm4ynR4SIAztPo89VM9hDLyqI/Rt7t451hpSO/ Bz/fxciRgddTFEVaS62QR+CmzNm7Yo+OOB/7W+oFAVk1L1YDks3XAaLV42/Wkd3TqIiC lNwyG7X0FBNkQejWZzzeSlJJ+Ok9MHt/xvjxNSOo+qjyxja1QMz02PUNJSvmW/dWegFJ MZKoH/RvUZNViphw7zI5/mfOTiCTM/mg9GEVMUq5nCaDgA5an21wZV2fqAB2cku4iiy6 Vavn3so5811G3xfg8O8wsSr2ZLiR1qN+l3A14+DquBFByKW5+Oj6kSjxY3d0Rl6L16uD tWfg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AF/Uk7wJJ5xMxz6XJ02HrSrLCeASbGyi+I30rflv3mk=; b=s7S4cc35WRA1jGCyRZeYLjhsruklNhV9ahMAH9SGcpPCvaRJoxR19kD90zbwdb2pB3 0yq887d6sWZjTOgMNQAWlW3UgDFMbDMEmFlXM6oa4VdGmOZSItUSlQL7k9RPhPw10S/5 SJ9RZugHjEa+xHMzhbR7iKOGRTqi9ID5X/z4BZ/fWFmky8LGuz5TwGiDFYhtLR3L2owh dx2VPhjGuBXHeeQiQdmef3Eq/dTiq0Hf40hiYaD8lopOPWD71dNygeYeYMHl+M+6MoY2 3z6aVZLQ7WXkaW6nMX0qmewrTn1/hOViT0Ds7ipqb7PxkQYS7d1PyhIRgFfI1Tg0qp0i W5gQ==
X-Gm-Message-State: AOAM533maoCVBgAyw1rioU9x3uDD5LqTqNGo/pefQvtytEg+rzfsRoEy U6zViBsNlUqnKAoArupBJ8VkrQn9a7xvDKR2ptc=
X-Google-Smtp-Source: ABdhPJx9RrtouYV9pVst9RdwjB58U2O7iv5sV4sswY0BLz72P2+3/P3o2jSQknMbhgY3IO3klAKSJINglN3gJJpHK7s=
X-Received: by 2002:a67:24c5:: with SMTP id k188mr3894917vsk.16.1612999461969; Wed, 10 Feb 2021 15:24:21 -0800 (PST)
MIME-Version: 1.0
References: <20210203181226.9AB746D51182@ary.qy> <CAHej_8k6DA8140QB2buaRCaJfc0U9fVSC=nSAu-dWsZshCRX_Q@mail.gmail.com> <CAH48ZfxFsQ5ntE05QYRqP5P3Na6vuDjNAQKAdjZe7Kvt7evKuw@mail.gmail.com> <2285569.RditZUVBbg@zini-1880> <ea27d175-e436-fa40-0571-da1e0189d488@tana.it> <2244314.3GJdnAqG3q@zini-1880>
In-Reply-To: <2244314.3GJdnAqG3q@zini-1880>
From: Douglas Foster <dougfoster.emailstandards@gmail.com>
Date: Wed, 10 Feb 2021 18:24:11 -0500
Message-ID: <CAH48Zfynp=BVKXeyWO=KL=TVRiUDVuvckWDgpZFbVeVjBBqjaw@mail.gmail.com>
To: Scott Kitterman <sklist@kitterman.com>
Cc: IETF DMARC WG <dmarc@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000f4203005bb03b31e"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dmarc/Sl0LUyb9ogyIU6q33dxuyquDs7M>
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, 10 Feb 2021 23:24:26 -0000

Huh?   Are you asserting that SPF MAILFROM and SPF HELO are
interchangeable?   They are not, but they can work together.

Some scenarios to illustrate:

clientdomain.tld uses servers from hostingservice.tld
the spf for hostingservice.tld allows only server "mail.hostingservice.tld"
the spf ro clientdomain allows ANY server from hostingservice.tld

Case 1
server= mail.hostingservice.tld
SMTP = u@clientdomain.tld
FROM= u@hostingservice.tld

SPF HELO = PASS aligns with FROM, but this is not a valid alignment for
DMARC PASS.
Only SPF MAILFROM produces a correct result (SPF PASS but DMARC FAIL),
because the client domain is not authorized to send messages for the
hostingservice domain.
Ergo:   SPF HELO does not produce equivalent results to SPF MAILFROM

Case 2
server = nonmail.hostingservice.tld
SMTP = u@cllientdomain.tld
FROM = u@clientdomain.tld

SPF MAILFROM = PASS and aligns with FROM, so it appears to be a DMARC PASS.
But SPF HELO is a FAIL, because the SPF for HostingService.tld says that
this server never sends mail.
Ergo:  SPF HELO can be used along with SPF MAILFROM to produce a more
granular allow list then SPF MAILFROM alone.

DF

On Wed, Feb 10, 2021 at 9:43 AM Scott Kitterman <sklist@kitterman.com>
wrote:

> No.  Sigh.  Let's try it again.
>
> Yes, one might actually use a HELO result for DMARC.  It gives you the
> same
> result as if mail from is null.  So what?
>
> No one has given us a case where an attacker could get a aligned SPF
> result
> based on HELO that they couldn't also get with mail from, so it doesn't
> matter.
>
> By problem, I mean an actual problem.  There aren't any.
>
> Scott K
>
> On February 10, 2021 9:49:46 AM UTC, Alessandro Vesely <vesely@tana.it>
> wrote:
> >Just to clarify:
> >
> >
> >On Wed 10/Feb/2021 05:19:38 +0100 Scott Kitterman wrote:
> >> No one has demonstrated that if someone has implemented SPF (RFC
> >7208) without
> >> worrying about DMARC that there are any associated problems for
> >DMARC.
> >
> >
> >I think I did.  OpenDMARC, for example, seems to read a single result,
> >either
> >Authentication-Results: or Received-SPF:, assuming that it contains the
> >mfrom
> >identity unless empty.  Note that it has an option to disable SPF
> >entirely,
> >presumably as a means to tackle non-DMARC oriented SPF filters.
> >
> >Google apparently works similarly.  Given a valid helo and a neutral
> >mfrom, the
> >spf= clause of its (ARC-)Authentication-Results: only reports the
> >latter.  That
> >is to say, you need a non-RFC7208 compliant SPF filter to instruct
> >DMARC.
>
>
>
> _______________________________________________
> dmarc mailing list
> dmarc@ietf.org
> https://www.ietf.org/mailman/listinfo/dmarc
>