Uptimecat

SPF checker

SPF lists the servers allowed to send mail for your domain. Check a record, follow its includes and see whether it stays within the lookup limit.

What SPF does

SPF is a TXT record that starts with v=spf1. A receiving server compares the connecting IP address with the record. If the address matches a rule, the message passes SPF. The final all mechanism tells the receiver what to do with everything else.

SPF alone does not stop spoofing of the visible From address. DMARC ties it together. Use SPF with DKIM and DMARC.

The ending of the record

EndingEffect
-allFail. Mail from other servers should be rejected.
~allSoftfail. Mail from other servers is suspicious but usually accepted.
?allNeutral. No statement.
+allPass. Every server is allowed. Never use this.

The 10 lookup limit

Mechanisms such as include, a, mx, ptr, exists and redirect each cost a DNS lookup, and so do the ones inside the records you include. More than 10 makes the whole record fail with a permanent error. The tool follows includes for you and reports the count. If you are over, remove services you no longer send from, or replace includes with ip4 and ip6 ranges that your provider documents.

Other things the checker flags

  • More than one SPF record on the same name.
  • A deprecated ptr mechanism.
  • A missing all mechanism.
  • An include that points to a name without an SPF record.

Keep it correct over time

Providers change their ranges and teams add new senders. Add a DNS monitor of type TXT on the domain and set the expected text, so you hear about edits. See DNS monitoring.

Typical SPF mistakes

A common error is to add a new mail service as a second record instead of merging it into the first. Another is to list a service through include and then also list its IP ranges, which wastes lookups. A third is to forget a marketing or invoicing tool that sends in your name. Check your DMARC reports to find senders you forgot.

Frequently asked questions

Does SPF apply to subdomains?

Only to the exact name that has the record. A subdomain that sends mail needs its own SPF record.

Should I use -all or ~all?

Start with ~all while you check reports, then move to -all when you are sure every sender is listed.

Does the tool check the sending IP?

No. It validates the record and its lookup count. It does not test a particular IP address.

Run the check

Related

Open the dashboard

Sign in with your Google account to add a monitor and pick an alert channel. Access is currently limited to Moruk accounts; open sign-up is not available yet.

Sign in