Unusual SPF and MX record configurations include complex SPF records exceeding DNS lookup limits, the presence of `MX localhost` or `mx .` (with specific implications for mail acceptance), the flawed inclusion of `localhost` due to header misinterpretations, and the misuse of the `ptr` mechanism. Multiple SPF records and missing `-all` mechanisms also pose issues. Furthermore, SPF void lookups, along with the use of `v=spf1 -all`, reflect specific use cases or misconfigurations affecting email delivery.
8 marketer opinions
Various unusual SPF and MX record configurations can impact email deliverability. These include overly complex SPF records exceeding DNS lookup limits, including 'localhost' inappropriately, using the 'ptr' mechanism, incorrect configurations such as multiple SPF records, and empty MX records which prevent email reception. These issues often stem from misunderstandings of the specifications or misapplied troubleshooting efforts.
Marketer view
Email marketer from Super User explains that an MX record pointing to `localhost` (127.0.0.1) indicates that the domain only accepts email from the local server. It's sometimes used on development or test environments, but it's unusual in production.
16 Nov 2024 - Super User
Marketer view
Marketer from Email Geeks shares an example of a `v=spf1` record including multiple includes and ip4 addresses: `v=spf1 include:<http://registrarmail.net|registrarmail.net> include:<http://sparkpostmail.com|sparkpostmail.com> ip4:10.10.0.0/19 ip4:127.0.0.1 ...`
23 Oct 2022 - Email Geeks
4 expert opinions
Several unusual SPF and MX record configurations exist. `MX localhost` is an acceptable configuration indicating a domain doesn't accept mail. `mx .` is also acceptable. SPF void lookups, caused by querying nonexistent domains, waste time and can cause failures. The `-all` mechanism should be at the end of SPF records; its absence means the receiver will accept mail from any IP address.
Expert view
Expert from Email Geeks shares that `mx .` is also acceptable.
31 May 2023 - Email Geeks
Expert view
Expert from Email Geeks explains that `MX localhost` is common and acceptable, indicating the domain does not accept mail.
31 Jul 2024 - Email Geeks
3 technical articles
SPF records, as detailed by Microsoft, typically start with `v=spf1`, specify authorized sending sources using mechanisms like `ip4:` or `include:`, and conclude with a qualifier such as `-all` (fail) or `~all` (softfail). RFC 7208 clarifies that the `mx` mechanism triggers resolution of MX records and subsequent A record lookups to match client IP addresses. Google's documentation points out that `v=spf1 -all` indicates a domain shouldn't send emails, often used for reserved domains.
Technical article
Documentation from RFC 7208 specifies that when an SPF check encounters an `mx` mechanism, it should resolve the MX records for the specified domain and then perform an A record lookup on each resulting hostname to determine if any of the IP addresses match the client's IP address.
18 Oct 2022 - RFC 7208
Technical article
Documentation from Google Workspace Admin Help mentions that an SPF record with `v=spf1 -all` indicates that no mail should originate from that domain. It's commonly used when a domain is reserved for future use but should not send emails, or it's used only for receiving emails.
16 Feb 2025 - Google Workspace Admin Help
Can a sender modify SPF records to alter SPF checking behavior?
How can I bulk check and clean MX records for a list of domains?
How can I identify the SMTP provider from an MX record?
How complex is the SPF spec for building an SPF checking library?
How do MX records impact email bounces and sender reputation?
What are common terms for the envelope.from domain in email marketing?