בס״ד

Email Tools: SPF, DMARC and Deliverability Checks

Our email tools read the DNS records that decide whether a domain's mail is trusted: the MX records naming the servers that accept its mail, the SPF record listing the senders allowed to use its name, the DKIM public keys that verify signatures, and the DMARC policy that tells receivers what to do when SPF and DKIM fail. The form below checks MX, SPF and DMARC in one pass, and the dedicated checks under it go deeper on one record each: DKIM, BIMI, MTA-STS, a live SMTP test and a blacklist lookup.

This form checks MX, SPF and DMARC. DKIM needs a selector, so use the DKIM checker for that, and the blacklist check takes an IP address or hostname.

Email tools

What does an email authentication check tell you?

An email authentication check answers two questions about a domain: can other people send mail that appears to come from it, and will mail that genuinely comes from it be delivered. SPF, DKIM and DMARC are the three records that decide both. Without them, the visible From address of an email is just a text field an attacker can set to anything.

A domain is properly protected when its SPF record lists every legitimate sending source and ends in -all or ~all, DKIM signs outbound mail with a key published in DNS, and DMARC is set to p=reject or p=quarantine with alignment enforced. None of the three is enough on its own. SPF breaks when mail is forwarded. DKIM by itself does not tell receivers what to do with a failure. DMARC has nothing to enforce unless at least one of the other two is in place.

How many DNS lookups is an SPF record allowed?

Ten. RFC 7208 §4.6.4 caps SPF evaluation at ten DNS-querying mechanisms. The mechanisms that count are include, a, mx, ptr and exists, plus the redirect modifier. They count recursively: every include spends one lookup itself and then charges you for everything inside it.

The ip4, ip6 and all mechanisms need no DNS query and are free. Going over ten produces a permerror, and RFC 7208 requires receivers to treat a permerror as though the domain published no SPF record at all, so an over-long SPF record is worse than a short one and can be worse than none. The usual fix is SPF flattening: replacing deep include chains with the ip4 and ip6 ranges they resolve to.

A separate and often-missed limit in the same section caps void lookups (queries that return NXDOMAIN or an empty answer) at two.

What does the DMARC policy p=none, p=quarantine or p=reject mean?

The p= tag tells receiving mail servers what to do with a message that fails DMARC alignment. p=none takes no action and only generates reports. It is a monitoring mode and gives no protection. p=quarantine asks receivers to accept the message but treat it as suspicious, which in practice means the spam folder. p=reject asks receivers to refuse the message at SMTP time, so it is never delivered anywhere.

Only p=reject actually stops domain spoofing. The standard rollout is to publish p=none with a rua= reporting address, read the aggregate reports until every legitimate sender is aligned, then move to p=quarantine and finally p=reject. The sp= tag sets a separate policy for subdomains, and pct= applies the policy to a percentage of mail during a staged rollout.

How do I find my DKIM selector?

The DKIM selector is the label that appears before ._domainkey in the DNS name that holds the public key. In google._domainkey.example.com the selector is google. There is no way to list selectors from DNS, because a TXT record can only be looked up by its exact name, which is why every DKIM checker asks you for one.

The reliable method is to read it off a message the domain has actually sent: open the raw headers, find the DKIM-Signature header, and take the value of its s= tag. Without a sample message, the selector is usually predictable from the provider: google for Google Workspace, selector1 and selector2 for Microsoft 365, k1 for Mailchimp and Klaviyo, s1 and s2 for SendGrid, zmail for Zoho, and default for many self-hosted servers.

Why are my emails going to spam even though SPF and DMARC pass?

Authentication proves a message really came from your domain. It says nothing about whether recipients want it, and the filters that decide the spam folder weigh reputation far more heavily than authentication. Passing SPF, DKIM and DMARC gets a message considered. Reputation decides where it lands.

The common causes when authentication is already correct are:

  • a sending IP or domain listed on a DNSBL
  • a new domain or IP with no sending history, sending at volume
  • low engagement and high complaint rates from recipients
  • missing or broken one-click unsubscribe headers, which Google and Yahoo have required from bulk senders since February 2024
  • a mismatch between the From domain and the links in the body
  • missing reverse DNS, or reverse DNS that does not match forward DNS, on the sending IP

How do I check SPF and DMARC with dig?

Every record the checker reads is a plain DNS lookup, so dig shows the same data. The DKIM query needs the selector, taken from the s= tag of a DKIM-Signature header.

dig MX example.com +short
dig TXT example.com +short
dig TXT _dmarc.example.com +short
dig TXT selector._domainkey.example.com +short

Same check as JSON

The DNSX API returns each of these checks as JSON with no API key, so the same lookups can run from curl or a script.

curl "https://api.dnsx.dev/dns/mx/example.com?flow=1"
curl https://api.dnsx.dev/email/spf/example.com
curl https://api.dnsx.dev/email/dmarc/example.com
curl "https://api.dnsx.dev/email/dkim/example.com?selector=google"

What do SPF, DKIM, DMARC and MX mean?

SPF (Sender Policy Framework)

A DNS TXT record that lists the IP addresses and domains allowed to send email for your domain. Receiving servers check SPF to confirm the sending server is permitted, which helps prevent spoofing. Defined in RFC 7208.

DKIM (DomainKeys Identified Mail)

DKIM adds a cryptographic signature to outgoing email. The matching public key is published in DNS at selector._domainkey, so receivers can verify the message was not altered in transit and was sent by an authorised server. Defined in RFC 6376.

DMARC Policy

A DMARC policy tells receiving servers what to do when SPF and DKIM both fail alignment: p=none reports only, p=quarantine sends to spam, p=reject blocks at SMTP time. The rua= tag sets the aggregate report address. Defined in RFC 7489.

MX Records

An MX record names a mail server that accepts email for a domain, paired with a priority number. Sending servers try the lowest number first and fall back to higher ones. An MX target must be a hostname with an A or AAAA record, never a CNAME or a literal IP address.

Email Deliverability

Email deliverability is the rate at which a domain's mail reaches the inbox rather than the spam folder or a rejection. It depends on authentication (SPF, DKIM, DMARC), sender reputation, DNSBL listings, recipient engagement and steady sending volume. Authentication is necessary and is not enough on its own.

SPF Lookup Limit

The SPF lookup limit is ten DNS-querying mechanisms per evaluation (RFC 7208 §4.6.4). include, a, mx, ptr, exists and redirect all count and nest recursively. ip4, ip6 and all are free. Going over ten returns permerror, which receivers treat as no SPF record at all.

Frequently Asked Questions

What is SPF?▼
SPF (Sender Policy Framework) is an email authentication protocol that lets a domain owner list which mail servers may send email using the domain. The list is published as a DNS TXT record starting with v=spf1 that names IP addresses, hostnames and included records. When a receiving mail server gets a message, it checks the SPF record to see whether the sending server is on the list. SPF helps prevent spoofing and phishing by letting receivers reject mail from servers the domain never authorised.
What is DMARC?▼
DMARC (Domain-based Message Authentication, Reporting and Conformance) is an email authentication protocol that builds on SPF and DKIM. It lets a domain owner publish a policy, in a TXT record at _dmarc.example.com, that tells receiving servers what to do with mail that fails authentication. The policies are none (monitor only), quarantine (send to spam) and reject (block entirely). DMARC also provides reporting, so domain owners can see who is sending email using their domain.
How do MX records work?▼
MX (Mail Exchange) records are DNS records that name the mail servers which accept email for a domain. Each MX record has a priority value (lower numbers are tried first) and a hostname pointing to a mail server. When someone sends an email to the domain, the sending server looks up the MX records and attempts delivery to the lowest-numbered server first. If that server is unavailable it falls back to the next one, which gives email delivery its redundancy.
What does DMARC policy "reject" vs "quarantine" mean?▼
A DMARC policy of reject tells receiving mail servers to refuse email that fails both SPF and DKIM alignment. Those messages are never delivered. A policy of quarantine tells receivers to accept the email but treat it as suspicious, which usually means the spam or junk folder. A policy of none takes no action and only generates reports. Domain owners usually start with none to monitor their mail, move to quarantine to test, and finish at reject for full protection against spoofing.
How do I improve email deliverability?▼
To improve email deliverability: publish an SPF record that lists every server that sends for the domain, configure DKIM so outgoing mail is signed, publish a DMARC policy and move it from none to reject once every legitimate sender aligns, keep the sending IP off DNS blocklists, publish MX records for more than one mail server, keep sending volume steady, and set up reverse DNS (PTR records) for the sending IPs. The DNSX email checker at dnsx.dev/email verifies the MX, SPF and DMARC configuration of any domain.