Skip to content

Scan your domain with 35 DNS and email security checks at zerohook.org.

What is

What is SPF

SPF is a TXT record that starts with v=spf1. It lists the hosts allowed to send mail for the domain. Two records that both start with v=spf1 on the same name are a permerror.

The record

example.com. IN TXT "v=spf1 ip4:192.0.2.1 -all"

Evaluation that uses more than 10 DNS-querying terms returns permerror. Those terms are include, a, mx, ptr, exists, and redirect. all, ip4, ip6, and exp do not count toward the 10.

The 10-term count

RFC 7208, April 2014, says evaluation that uses more than 10 DNS-querying terms returns permerror. The terms that count are include, a, mx, ptr, exists, and redirect, including lookups those mechanisms cause.

all, ip4, ip6, and exp do not count toward the 10. Void lookups, a name that does not exist or an empty answer, have a separate limit: implementations should stop at two, and exceeding that is also permerror. A receiver that rejects during SMTP for permerror should use 550 and, where supported, enhanced status 5.5.2.