Skip to content

SPF

Sender Policy Framework is a DNS record listing which servers may send mail for a domain, which receivers check against the message's envelope sender.

SPF is published as a TXT record that begins with v=spf1. It lists the IP addresses and services allowed to send for the domain, using mechanisms such as ip4, include and a, and it ends with an instruction for everything else, such as ~all for soft fail or -all for fail. A domain should publish only one SPF record.

When a message arrives, the receiving server compares the connecting IP with the SPF record of the domain in the envelope sender, also called the return path. SPF has a limit of 10 DNS lookups while evaluating a record. A record that needs more returns a permanent error, which many receivers treat as a failure.

SPF checks the envelope sender and not the visible From address, and it often breaks when mail is forwarded. That is why it is paired with DKIM and DMARC. Misconfigured SPF is one of the most common reasons legitimate mail lands in spam.

[ Validate ][ Enrich ]
[Get started]

Run your first lookup in two minutes

Create a key, pick a plan and call any product in the catalog. Plans start at $29 a month.

[ Screen ][ Scrape ]