Re: [spfbis] RFC7208 4.6.4 Interpretation - MX Lookup Count Inconsistencies

Tim Wicinski <tjw.ietf@gmail.com> Mon, 23 January 2023 02:34 UTC

Return-Path: <tjw.ietf@gmail.com>
X-Original-To: spfbis@ietfa.amsl.com
Delivered-To: spfbis@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EC31CC1516EB for <spfbis@ietfa.amsl.com>; Sun, 22 Jan 2023 18:34:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.097
X-Spam-Level:
X-Spam-Status: No, score=-7.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, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z-dR9XwYEBT8 for <spfbis@ietfa.amsl.com>; Sun, 22 Jan 2023 18:34:59 -0800 (PST)
Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) (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) by ietfa.amsl.com (Postfix) with ESMTPS id 74699C1516FF for <spfbis@ietf.org>; Sun, 22 Jan 2023 18:34:59 -0800 (PST)
Received: by mail-ej1-x62b.google.com with SMTP id mp20so26982802ejc.7 for <spfbis@ietf.org>; Sun, 22 Jan 2023 18:34:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=jAh+qNPz4ln6D5ICXE16kP0B+6TbIKLaFD4DQbYcg6s=; b=o4gjrj5oJuNh80d2123E4rasT1zKu+SCekMr+5uXmq+DP+u/yJLpZMCDaTBACRS0UN b70USBDRmAi+/nqZEZ7EtfHJ3VxWDZlmokh1DfdK5yahKMkE257vwFQBR7glBpP3gPpj +2gype/NUDkVCSWXWT50+LeYs/WFhbURX81xJPcbYdXP1EFTcWA+9KfliBS3QNaJB6fY BFWRyCbuEfl3yrr/LDL1Bs3CWHoxJIqOZn0Z0oxgZK3U2OelBxQM8qOIgaYVowBrccgu HNEwWzqvR9JZw+wFV7RJnNXiVmYzxuPmMW/F4qUcoK2JvQBkdgKnfcweKBafZdeIT9a/ KYUQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jAh+qNPz4ln6D5ICXE16kP0B+6TbIKLaFD4DQbYcg6s=; b=lnUJevIXa4jbGy1AENrbaGw774Pjg3W+J69TfK1v2DKGMqkO58xIvsKCiP3an5MDVw xh8o+bzoHUf71v4RgdphQAitt3ZuT/+K06URJSizcSavhn3bi/NbdB5MJqZ4OaXbsie4 zYQ4YmqTg5pwMirdYGCgZGD6JlBOKBRkcLXyrRWSEtMCQRMCho4qmPHSwrHY0qyhHgqd NO8xijjSUIjll0UBE6vu+bmwxU/JyjMvJjQFVM/ewAX9hR/zUEIup2yqQwVE73J7oYqx qtNzNBVfDMmN5YjyMbQIFMAYTtZSeBeYl8Hk7iIELt1B5r1EY4Se2JDg0Zyr2HmTFHil L+hQ==
X-Gm-Message-State: AFqh2kqbLEefTUUs6g9TJCAbwfPg+Rx/2rYJYehP1NAyh2jib9c79r1m /KnYKZ2KD2t+6wVlpgSUhqQW8HVVDWd8kbMDxE/3IrYd
X-Google-Smtp-Source: AMrXdXvDNHG3cgKXlpXg3m279T4fwknmiFzONeaRicoSKddEC/RGJoJQK0LWDGnmJ/cFO+oh2INB8VqTox8yVbGnu70=
X-Received: by 2002:a17:906:555:b0:85f:5ff0:3cb0 with SMTP id k21-20020a170906055500b0085f5ff03cb0mr2724372eja.341.1674441297663; Sun, 22 Jan 2023 18:34:57 -0800 (PST)
MIME-Version: 1.0
References: <79ac443e-b0ee-6598-cec0-9cf32c3dc1d1@tekmarc.com> <4155095.WaQZGZ3z5Y@localhost> <Y8SJjkQTFZO/Id/Z@netmeister.org> <13078447.edrPyRMrsX@localhost>
In-Reply-To: <13078447.edrPyRMrsX@localhost>
From: Tim Wicinski <tjw.ietf@gmail.com>
Date: Sun, 22 Jan 2023 21:34:46 -0500
Message-ID: <CADyWQ+FRgUPOC3OiMZ74kbD9Mn+r=Z51meY7uTZutfAJDr6ssQ@mail.gmail.com>
To: Scott Kitterman <spf2@kitterman.com>
Cc: spfbis@ietf.org
Content-Type: multipart/alternative; boundary="000000000000be9a1b05f2e53efe"
Archived-At: <https://mailarchive.ietf.org/arch/msg/spfbis/HPG4e3mgWX6JVF2jzn2XVmSWVKo>
Subject: Re: [spfbis] RFC7208 4.6.4 Interpretation - MX Lookup Count Inconsistencies
X-BeenThere: spfbis@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: SPFbis discussion list <spfbis.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/spfbis>, <mailto:spfbis-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/spfbis/>
List-Post: <mailto:spfbis@ietf.org>
List-Help: <mailto:spfbis-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/spfbis>, <mailto:spfbis-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 23 Jan 2023 02:35:00 -0000

On Sun, Jan 15, 2023 at 6:29 PM Scott Kitterman <spf2@kitterman.com> wrote:

> On Sunday, January 15, 2023 6:17:34 PM EST Jan Schaumann wrote:
> > Scott Kitterman <spf2@kitterman.com> wrote:
> > > There is the "overall" limit.  The count against the overall limit is
> two
> > > ('a' and 'mx').
> >
> > Thanks for clarifying.
> >
> > I find this _very_ counterintuitive, fwiw.
> >
> > My logic was roughly:
> >
> > "Well, the limit should limit how many lookups I have
> > to make in the worst case before I can decide.  Doing
> > an 'mx' lookup by itself doesn't help me at all in
> > making that decision -- I absolutely _have_ to turn
> > any hostnames I get into IP addresses, so I must
> > necessarily perform additional lookups."
> >
> > So if I'm at a DNS lookup limit of 9 when I reach the
> > 'mx' part, and the domain has 10 MX records, I perform
> > 10 additional lookups (which don't count to the total
> > limit, meaning I perform a total of 19 lookups) and
> > move on.
> >
> > But if I'm at a DNS lookup limit of 0 when I reach the
> > 'mx' part, and the domain has 11 MX records, then the
> > 'mx' evaluation yields permerror and I abort.
> >
> > But if that's what it is, then that's what it is. :-)
>
> That's what it is.  It probably made more sense in 2005 than it does now,
> but
> we're pretty well stuck with it for v=spf1.
>
> It's actually even more complex than this since most will do a PTR lookup
> for
> each IP address returned.  Also, note that the limits for the SPF PTR
> mechanism as slightly different.
>
> There were claims made at the time that there were other, easier ways to
> conduct DNS amplification attacks and the limits were overly strict.
> That's
> certainly true now.  Even so, the pre-RFC limits were strictly based on
> maximum recursion depth and had the potential for truly extraordinary
> amplification.  Given the two, I think we picked the better approach in
> 2005
> and SPFbis was correct not to fundamentally change them.
>
> If I were going to do an SPFv3 (I have no plans, don't get excited), this
> is
> one of the areas that would be ripe for redesign.
>
>
I too think the 2005 approach was the correct approach.

I also feel that technology stacks have matured over time.  Jan, do you see
real world examples
of a domain with 11 MX servers?  I ask because in 2023, I would find that
the rare exception
rather than the rule.

(Though I am now pretty sure Jan has an interesting data set that will
prove me wrong!)


tim

>
>