+ (pass)
The default when no qualifier is written. The sender is authorized.
Monitor
Protect
Manage
By role
Security
Renewals
Monitoring
An SPF record is a single DNS TXT record, starting with v=spf1, that lists the servers allowed to send email for your domain. Receiving servers compare the sending IP against that list and return pass, fail, softfail, neutral or an error.
| Term | Matches | Counts toward 10 lookups |
|---|---|---|
| ip4: / ip6: | A sending IP or CIDR range you list | No |
| a | The IP of the domain A or AAAA record | Yes |
| mx | The IPs of the domain MX hosts | Yes |
| include: | Whatever the named domain SPF record authorizes | Yes |
| exists: | Any A record returned for a constructed name | Yes |
| redirect= | Replaces the record with another domain policy | Yes |
| ptr | Reverse DNS match (RFC 7208 marks it do not use) | Yes |
| all | Everything not matched earlier | No |
Source: RFC 7208, section 4.6.4 and section 5.5.
example.com. 3600 IN TXT "v=spf1 ip4:192.0.2.0/24 include:_spf.google.com ~all"
; v=spf1 version tag, must come first
; ip4:192.0.2.0/24 your own mail server range
; include:_spf.google.com Google Workspace senders
; ~all softfail everything elseThe default when no qualifier is written. The sender is authorized.
Written -all. The sender is not authorized and receivers may reject.
Written ~all. Probably not authorized. RFC 7208 says receivers should not reject on this alone.
Written ?all. No statement either way.
Mail server, Google Workspace or Microsoft 365, newsletter tool, CRM, help desk, invoicing app.
Query TXT on the apex. If one v=spf1 record exists, edit it instead of adding a second.
Copy the exact include or ip4 value from each vendor documentation.
Start with ~all while you confirm nothing legitimate is missing.
Run the SPF checker, then send to a test mailbox and read the Authentication-Results header.
An SPF record that someone edits or deletes breaks mail without any error on your side. DNS monitoring keeps a history of every DNS record change per domain, so an altered TXT record shows up with a date.
Adding a vendor value as a new TXT record instead of merging it gives permerror under RFC 7208.
Every include, a, mx, exists and redirect counts. Past 10 the result is permerror.
With no all and no redirect, unmatched senders get neutral, so nothing is enforced.
A single TXT string is limited to 255 octets. Longer records are split into several strings that are joined without spaces.
It is a public list, stored in DNS as a TXT record, of the servers allowed to send email using your domain. A receiving server looks the list up and compares it with the IP that delivered the message.
No. RFC 7208 says more than one v=spf1 record on the same name gives a permanent error (permerror), and receivers treat the check as failed. Merge every sender into one record.
A TXT record. RFC 7208 retired the dedicated SPF record type, so publish the policy as TXT only.
No. SPF checks the envelope sender (MAIL FROM), not the visible From address. DMARC adds the alignment check that ties SPF or DKIM to the From domain.
At the DNS zone where your domain nameservers point, as a TXT record on the root (host @). A subdomain that sends mail needs its own TXT record at that subdomain.
If no mechanism matches and there is no redirect, RFC 7208 says the result is neutral, as if ?all were present. The record then authorizes nothing and blocks nothing, so end with ~all or -all.
Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.