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

Klaus Frank <klaus.frank@posteo.de> Thu, 02 February 2023 10:45 UTC

Return-Path: <klaus.frank@posteo.de>
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 CAE7BC14CF1B for <spfbis@ietfa.amsl.com>; Thu, 2 Feb 2023 02:45:58 -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, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=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=posteo.de
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 JI7-t-UsoUCC for <spfbis@ietfa.amsl.com>; Thu, 2 Feb 2023 02:45:54 -0800 (PST)
Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EF975C14CF01 for <spfbis@ietf.org>; Thu, 2 Feb 2023 02:45:53 -0800 (PST)
Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id F3D1D240241 for <spfbis@ietf.org>; Thu, 2 Feb 2023 11:45:50 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1675334751; bh=1a8v3EHJ0m2nKy1kbZglNLgmJ2Xh5BMhMtZ0U+TexDE=; h=Date:Subject:To:From:From; b=YYseD/zQ5O4iJuSP/XwGP6wIuO135gc7lWpUd9rtMtQxqmNw703helxWZtWQhFJda zwpggjvgV0dfZDX73rS58EBf7JEj25mO22z8h9FMAkERjXBCDGB/w/WKlHRyE+tl2k z8EK66Sx5OTv13cuWaUJoa1Hdg+5yrw34axSpAREm7WP0Nuu5swfCjFxsx17q36dpe xp5BgJYid3gOcct9nr/rC1bZcC43pJdnUjv99J1mHK85VlaPgbeIhuRG/QJIeT5gtM lQDvqLrUpQrxR7RadLCvqZ9Aepr8poxEsUBl4/Kf0UylAqhxE+jA0nPF5NqYQdYfeT SUupAbYSid1og==
Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4P6wRy3m8Zz9rxL for <spfbis@ietf.org>; Thu, 2 Feb 2023 11:45:50 +0100 (CET)
Message-ID: <7106f0c0-8d81-bb15-afb6-13fea424c16a@posteo.de>
Date: Thu, 02 Feb 2023 10:45:49 +0000
MIME-Version: 1.0
Content-Language: de-DE, en-US
To: spfbis@ietf.org
References: <79ac443e-b0ee-6598-cec0-9cf32c3dc1d1@tekmarc.com> <4155095.WaQZGZ3z5Y@localhost> <Y8SJjkQTFZO/Id/Z@netmeister.org> <13078447.edrPyRMrsX@localhost> <CADyWQ+FRgUPOC3OiMZ74kbD9Mn+r=Z51meY7uTZutfAJDr6ssQ@mail.gmail.com> <Y84HoTXeVZVMOlfk@netmeister.org>
From: Klaus Frank <klaus.frank@posteo.de>
In-Reply-To: <Y84HoTXeVZVMOlfk@netmeister.org>
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha-512"; boundary="------------ms030306020300060800010302"
Archived-At: <https://mailarchive.ietf.org/arch/msg/spfbis/NrYX6hSy88fhMYTSwDHUYn0UXNo>
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: Thu, 02 Feb 2023 10:45:58 -0000

The 10 lockups is a real issue that I encountered before.

Example for where the 10 lookups can be an issue, when a company uses a 
hand full of popular services:
* Zendesk: include:mail.zendesk.com (1)
* Mailjet: include:spf.mailjet.com (1)
* Zoho: include:one.zoho.eu (4)
* AWS Simple Email Service: include:amazonses.com (1)
* Gmail/Google Workspace's: include:_spf.google.com (4)

This selection isn't unreasonable and already yields a total of 11/10 
lookups...

On 23.01.2023 05:05, Jan Schaumann wrote:
> Tim Wicinski <tjw.ietf@gmail.com> wrote:
>
>> 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 just happened to be looking at the MX records for
> the top 1M domains for other reasons, and counting
> domains that have > 10 MX records, I find at least 265
> domains.
>
> The winning price goes to the apparently rather aptly
> named domain 'everymailbox.com', with 398 MX records.
> Second prize goes to 'preciseify.com' (266 MX
> records), 3rd to 'rm02.net' (235 MX records). :-)
>
> Those are obviously rare outliers, of course.
>
> But I'm actually less concerned about domains with >
> 10 MX records (since the RFC seems reasonably clear
> here to immediately fail), and more worried about
> domains that have close to 10 total lookups, but where
> counting the lookups resulting from turning MX results
> into IP addresses would bump them over the limit of
> 10.
>
> As illustrated by Mark's initial mail (and my own
> misunderstanding), there are implementations that will
> lead to such domains' SPF records as being marked
> invalid when they shouldn't be.
>
> (The last time I looked at SPF records of popular
> domains[1], I found >8K domains with >10 total
> lookups.)
>
> -Jan
>
> [1] https://www.netmeister.org/blog/spf.html
>
> _______________________________________________
> spfbis mailing list
> spfbis@ietf.org
> https://www.ietf.org/mailman/listinfo/spfbis