What’s the difference between SPF alignment failure and security rejection?
Still have a question, spotted an error, or have a better explanation or a source we should cite?
You open your DMARC report and see an SPF alignment failure. Your emails delivered fine, so what does it actually mean? And how is that different from a security rejection, where something actively refused to let your message through?
These two failures look similar on the surface but they come from completely different places.
SPF alignment failure is a technical mismatch between two parts of your email. Every email has a visible From address (the one your recipient sees) and a hidden envelope sender called the Return-Path (the address mail servers use behind the scenes to route and bounce messages). When those two domains don't match, DMARC alignment fails for SPF. It's basically a paperwork problem. Nothing malicious happened. The domains just weren't coordinated.
The good news is that DMARC only needs one passing alignment to pass overall. So if your DKIM signature is aligned and valid, your email can still pass DMARC even when SPF alignment fails. That's why your emails delivered despite the flag in the report.
Security rejection is a different category entirely. This is where a receiving server or corporate security gateway blocks your message because the content or behavior looks threatening. Malware in attachments, phishing patterns in links, or a policy violation inside a company's security tool can all trigger this. It has nothing to do with whether your domains are aligned.
So the practical difference comes down to where you look when diagnosing. SPF alignment failures show up in DMARC reports and in authentication headers. Security rejections show up in bounce messages, usually with language about content filtering, policy blocks, or security rules. If you're seeing bounces mentioning security policies, no amount of authentication work will fix that. You'd need to understand what content or pattern triggered the block.
Fixing an SPF alignment failure means coordinating your sending infrastructure so the Return-Path domain matches your From domain. Fixing a security rejection means figuring out what specifically got flagged, which could be anything from a suspicious link to an attachment type that's blocked by default.
If you're staring at DMARC reports and not sure what's actually failing, our free DMARC Parser can help you read them without needing to decode raw XML yourself.
The Email Almanac Field Notes: the most useful email questions, once a month
One email a month. New questions worth reading, real deliverability changes (Gmail and Outlook updates, etc.), and any tool or report that landed since the last issue. No fluff, no upsell.
Contributors
Who worked on this answer
Every name links to their profile. Every company links to their site. Real people, real accountability.