What It Means When a Domain Has No SPF Record
A missing SPF record is not a neutral state. Every message from the domain gets an SPF result of none, and DMARC then rests on DKIM alone.
A domain with no SPF record is not in some safe middle ground. Receiving servers still run the check. They just get nothing back, and nothing back means no pass.
What the server sees when there is no SPF record
SPF works by a DNS lookup. The receiving server queries the TXT records at your domain and looks for one that starts with v=spf1. If no record is there, the query returns nothing. There is no authorization check to pass, because SPF only produces a pass when a published record authorizes the sending IP.
So a missing record is not the same as an empty record, and neither one is a pass. SPF's standard says a none result means no valid domain name was extracted or no SPF records were found in the DNS. Gmail's FAQ has codes for mail that does not pass SPF. It says error code 5.7.27 means the message was blocked because it didn't pass SPF authentication, and error code 4.7.27 means SPF authentication didn't pass.
What the failure does to DMARC
DMARC does not replace SPF and DKIM. It sits on top of them. DMARC's standard says DMARC relies solely on SPF validation of the MAIL FROM identity, not the HELO identity. It also says a DMARC pass requires an SPF or DKIM pass, and that the passing domain be aligned with the Author Domain.
Alignment is the part that turns an authentication pass into a DMARC pass. The standard says relaxed alignment means the Author Domain and the Authenticated Identifier share the same Organizational Domain. Under strict alignment, the two have to match exactly. Relaxed alignment is what applies unless you say otherwise, and the standard says it has met the needs of almost every Domain Owner in practice.
With no SPF record, the SPF side of that test is gone. DMARC then depends entirely on an aligned DKIM signature. Gmail's FAQ says bulk senders must set up both SPF and DKIM, but only one needs to be aligned. So a domain with aligned DKIM can still pass DMARC without SPF. It is leaving a required check on the table, and it has no backup if the DKIM signature breaks.
The standard also says a message fails the DMARC check if no Authenticated Identifiers exist or none align with the Author Domain. A DMARC pass also says nothing on its own about whether a message belongs in the recipient's inbox. Receivers tend to feed a DMARC result into larger filtering choices rather than act on it alone.
What Gmail requires
Gmail's guidelines say all senders must set up SPF or DKIM email authentication for their sending domains. Bulk senders must set up SPF, DKIM, and DMARC. So SPF is not optional at Gmail's baseline for a bulk sender. It is one of two paths for everyone else.
Gmail's guidelines say unauthenticated messages can land in spam or come back with a 5.7.26 error. The same guidelines say Gmail rejects or spam-folders authenticated mail less often. Google performs checks on messages sent to Gmail accounts to verify they are authenticated.
The record has to cover everyone who sends for you. Gmail's guidelines say the SPF record for your domain should include all email senders for your domain. Mail sent on your behalf by a third party that your SPF record omits has a greater chance of going to spam. With an email service provider in the picture, confirm that your domain's mail gets both SPF and DKIM from them.
Yahoo asks for the same thing. Its FAQ says SPF records let Yahoo reject messages that come from IPs not listed in the domain's SPF record. Yahoo also strongly urges senders to publish a DMARC policy for each domain that sends mail.
How to check whether your domain has one
Run a TXT lookup at the domain itself. Use any online TXT lookup, or run dig yourself in a terminal. You are looking for a single TXT record that starts with v=spf1.
The record is one string of text in the RDATA of a single DNS TXT resource record. A domain name must not have multiple records that would make an authorization check select more than one record. Two v=spf1 records is a broken state, not a spare. If a lookup shows two, fix that before anything else.
How to publish one correctly
The rules come from the SPF standard itself.
- SPF records must be published as a DNS TXT resource record only. Use of other DNS resource record types was supported in SPF's experimental phase but has been discontinued.
- The character content of the SPF record is encoded as US-ASCII.
- If a published record holds multiple character strings, the record must be treated as if those strings are joined together with no spaces added.
- Each SPF record is placed in the DNS tree at the owner name it belongs to, not in a subdomain under that owner name.
- Since TXT records have many uses, other TXT records published there for other purposes might cause problems with size limits.
- Publishers ought to keep the amount of DNS information needed to evaluate a record to a minimum.
- Use of wildcard records for publishing is discouraged, and care has to be taken if they are used.
Keep the record short and flat. A long chain of includes slows the check and can hit lookup limits.
What SPF alone does not do
An SPF pass is not a DMARC pass. DMARC requires Identifier Alignment for the SPF-Authenticated Identifier, because any domain owner can publish an SPF record and get a pass. The standard says Domain Owners must send mail that produces an SPF-Authenticated Identifier aligned with the Author Domain. Without alignment, the pass counts for nothing at the DMARC layer.
The standard also says some messages making authorized use of the Author Domain can still fail DMARC validation checks. Publishing a record is a step, not a finish line. DMARC recommends that domain owners use both DKIM and SPF as the underlying authentication mechanisms.
If you cannot publish SPF
Some setups make SPF hard, such as mail that is forwarded. The DKIM-only path exists. DMARC gives a pass result if any DKIM-Authenticated Identifier in an email aligns with the Author Domain. Gmail's FAQ says bulk senders must align the From: header domain with either the SPF or the DKIM organizational domain. So an aligned DKIM signature satisfies the rule on its own.
That path is narrower than it looks. Gmail's FAQ says messages must be authenticated with both SPF and DKIM. Messages which are not can get temporary or permanent failure codes, or spam foldering. Per Gmail's guidelines, a message clears DMARC only when SPF or DKIM, or the pair together, authenticates it. Whatever domain does the authenticating has to match the one in the From: header.
So treat DKIM-only as a fallback, not a plan. Publish SPF where you can, sign with DKIM everywhere, and set a DMARC policy. Then check the other things Gmail asks for, like the one-click unsubscribe headers it draws its button from. A bounce that names a blocklist deserves a read before you go after the list itself, even one as dead as SORBS. A missing SPF record is a live problem with a known fix. Publish the record, confirm the lookup returns it, and move on.
Sources
Filed