SPF checker
The SPF record, its include tree and the limit of 10 DNS lookups. Optionally test an IP.
Guide: SPF checker
SPF (Sender Policy Framework) is a TXT record on your domain listing the servers and services allowed to send mail as that domain. Receivers compare the sending IP with this list.
The end of the record says what to do with other servers: -all means reject, ~all means mark as suspicious. A record may need at most 10 DNS lookups (include, a, mx, ptr, exists, redirect); more makes SPF fail.
Common mistakes
- Two v=spf1 records on one domain; there must be exactly one, so merge them.
- Adding an include for every new service until the 10-lookup limit is passed.
- Using +all, which allows every server on the internet.
- Forgetting side senders such as a CRM, a WordPress site or a newsletter service.
Questions
-all or ~all?
Use -all once every sender is listed. With DMARC at p=reject, ~all is fine because DMARC makes the final decision.
How do I stay under 10 lookups?
Remove unused includes, use ip4 instead of a and mx, and write fixed providers' IP ranges directly.
Is SPF enough on its own?
No. SPF breaks when mail is forwarded; set up DKIM and DMARC as well.
Lookups
- MX lookupThe mail servers of a domain, with their addresses and reverse DNS.
- DNS lookupAny record type: A, AAAA, TXT, NS, SOA, CAA, TLSA and more, with DNSSEC status.
- Reverse DNS (PTR)The name behind an IP address, and whether it points back to the same address.
- IP informationWho owns an IP address: network, location, reverse DNS, RPKI and blocklists.
- DNS propagationAsk public resolvers around the world, and in Iran, for a record and compare their answers with your name servers.
- WHOISRegistration of a domain: registrar, dates, expiry, status and name servers (RDAP, or WHOIS for .ir and others).
Checkers
- SPF checkerThe SPF record, its include tree and the limit of 10 DNS lookups. Optionally test an IP.
- DKIM checkerA DKIM public key: key type, size, testing flag and errors. Leave the selector empty to try common ones.
- DMARC checkerThe DMARC policy in plain words, report addresses and whether outside addresses agreed to receive reports.
- BIMI checkerThe BIMI record, whether the logo loads in the right SVG format, the certificate and DMARC.
- MTA-STS checkerThe MTA-STS record and policy file: mode, lifetime and whether every mail server is covered.
- TLS-RPT checkerWhether senders report failed secure connections to you, and where.
- DANE / TLSA checkerTLSA records of the mail servers, DNSSEC validation and a match against the live certificate.
- DNSSEC checkerWhether the domain is signed and validates, its keys and algorithms, and its mail server names.
- CAA checkerWhich certificate authorities may issue certificates for a domain.
- SMTP testConnect to a mail server: greeting, response time, STARTTLS, TLS version, certificate and reverse DNS.
- Blocklist checkIs an IP address or domain on a public spam blocklist?
- Email header analyzerPaste the headers of a message to see its delivery path, delays, TLS and the SPF, DKIM and DMARC results.
- DMARC report analyzerOpen the XML reports that receivers send to your rua address and see who sends mail as your domain. Read in your browser; nothing is uploaded.
Network
- BGP lookupHow an IP address, network or AS number is routed on the internet: origin AS, visibility, RPKI and upstream networks.
- PingDoes a server answer, and how fast? Four pings from our server in Germany.
- TracerouteThe route from our server to a host, hop by hop, with the network of each router.
- Mail port checkWhich mail and web ports are open: 25, 465, 587, 110, 995, 143, 993, 80 and 443, with their greetings.
- HTTPS / TLS certificateThe certificate of a website, webmail or secure mail port: chain, name, expiry, old TLS versions and HSTS.
Generators
- SPF generatorBuild an SPF record from your providers and servers, with a live count of DNS lookups.
- DKIM generatorCreate a DKIM key pair in your browser and get the DNS record. The private key never leaves your computer.
- DMARC generatorBuild a DMARC record with reports, and follow a safe rollout from p=none to p=reject.
- MTA-STS generatorThe MTA-STS record and policy file that make senders use TLS when delivering to you.
- TLS-RPT generatorA record that asks senders to report failed secure connections to you.
- BIMI generatorThe record that shows your logo next to your messages in supporting inboxes.
- CAA generatorRecords that limit which certificate authorities may issue certificates for your domain.