IT Knowledge Base

User Tools

Site Tools


Contact me at for any feedback or suggestions.

My other sites:

Search all my sites:




  • SPF Test - SPF Verify - SPF Validator - this gives you a one-time email address to send a test mail to, they wait for your email and then show whether it passed SPF test, reverse DNS, RBL, etc. Works well

Notes      IN TXT     "v=spf1 mx ip4: ~all"

the "mx" means that any IP addresses listed in the MX records are allowed to send email
the "ip4:" is an IP address or block of addresses that can send, e.g. your local SMTP relay
the "" means that Office 365 domain can send email
the "~all" means it's a soft fail. If you had made it a hard fail, using "-all", you'll probably get clients that can't send to some domains
Statement Result Meaning
+all pass Allow all mail
-all fail Only allow mail that matches one of the parameters (IPv4, MX, etc) in the record
~all softfail Allow mail whether or not it matches the parameters in the record
?all neutral No policy statement

Some examples of valid SPF records:	text = "v=spf1 mx ~all"	text = "v=spf1 ip4: ip4: ip4: ip4: ip4: -all"	text = "v=spf1 ip4: ~all"

Example with multiple approved IP addresses:
<code>	text = "v=spf1 ip4: ip4: ip4: ip4: ip4: mx -all"
spf.txt · Last modified: 2018/04/09 09:56 (external edit)