SPF sender check

Short answer

How do I check whether an IP address may send email for the domain?

Enter the domain and the IP address in the SPF sender check, and we evaluate the SPF record like a receiver does and show the result: pass, fail, softfail, neutral, none or permerror. You also see which mechanism matched, for example include:spf.protection.outlook.com, and the whole path through the record.

Enter the domain and the IP address of the sending server.

How it works

We walk through the SPF record like a receiver does: every include, a, mx and ip4/ip6 in order, until we find one that matches. The result is pass, fail, softfail, neutral or none.

What the results mean

  • pass: the IP address is approved.
  • fail: the record ends with -all, and the IP address is not included.
  • softfail: the record ends with ~all, and the IP address is not included. The email is suspicious.
  • neutral: the record ends with ?all and says nothing.
  • none: the domain has no SPF record. permerror: the record has errors or more than 10 lookups.

Common causes of fail

  • A new service sends email, but has not been added to SPF.
  • The server has got a new IP address.
  • The email has been forwarded. Another server then sends it on, and SPF fails. DKIM survives forwarding.
  • You checked the domain in From. SPF is checked against the domain in Return-Path, which often belongs to the service.

Questions and answers

Where do I find the IP?

In the email header (Received) or in the DMARC report. The email header analyser shows it.

Which domain should I check?

The domain in Return-Path (MAIL FROM) in the email header. If it is empty, the receiver uses the name in HELO.

Does pass mean that the email passes DMARC?

Only if the domain in Return-Path matches the domain in From. Otherwise DKIM must pass with a matching domain.

Can I check IPv6 addresses?

Yes. Enter the IPv6 address in the normal way, and we check it against the ip6 terms and the addresses behind a and mx in the record.

Why do I get softfail when the service says everything is set up?

Often the service sends from a different IP than the one you check, or with its own Return-Path domain. Get the IP and Return-Path from the header of a real email.