The SPF all mechanism
Use ~all or -all. -all says servers the record does not list must fail, and ~all says they probably should. ?all and a missing all make no statement, and +all lets every server on the internet pass SPF for your domain.
Updated 8 October 2026 by Mohamed Arkid
all goes at the end of an SPF record and decides what happens to mail
from a server the record does not list. Its qualifier sets the result:
-all(fail): the server is not allowed to send for the domain.~all(softfail): probably not allowed; accept but treat with suspicion.?all(neutral): the domain makes no statement. Same as having noallat all.+all(pass): every server on the internet is allowed. Anyone can send as your domain and pass SPF.
Which to use
Use ~all or -all. With DMARC enforced, receivers act on the
DMARC result, so the difference between them matters less; ~all is the
common choice while you are still finding every sender, and -all once you
are sure the record is complete.
Replace +all today. Replace ?all, or add a missing
all, once every service that sends for you is listed.
Questions
Is ~all safe with DMARC p=reject?
Yes. With DMARC enforced, receivers act on the DMARC result. A softfail is not a pass, so mail from an unlisted server still fails DMARC unless DKIM passes for your domain.