How do mailbox providers detect malicious messages?
Still have a question, spotted an error, or have a better explanation or a source we should cite?
Mailbox providers are running multi-layer detection that has gotten significantly more sophisticated over the past decade. No single check catches everything. It's the combination of signals that determines what happens to a message.
The first check is authentication. SPF, DKIM, and DMARC verify whether the sending server is authorized to send on behalf of the claimed domain. Malicious senders often fail these checks because they're using spoofed sender identities. Authentication failure doesn't automatically reject a message, but it's a significant signal for downstream filtering.
Reputation assessment runs in parallel. Mailbox providers maintain reputation scores for sending IPs and domains based on historical behavior: complaint rates, spam trap hits, engagement patterns, and prior blocks. A message from a low-reputation IP is treated with much more skepticism than one from a domain with years of clean sending history.
Content analysis examines the message itself. Machine learning models look at the whole pattern: the relationship between subject and body, link destinations vs. claimed sender identity, linguistic patterns associated with phishing and fraud, and whether the message structure matches how legitimate senders typically format email.
Behavioral signals from recipients add another layer. If a high percentage of recipients mark a message as spam, that feedback gets factored into filtering for future messages from the same sender. If almost no one opens a message from a particular sender, that engagement pattern influences future inbox vs spam placement.
For legitimate senders, the takeaway is that authentication, list quality, and genuine engagement are what separate "obviously fine" from "needs extra scrutiny." Building those foundations isn't just good practice: it's what keeps you out of the filtering gray zone entirely.
Contributors
Who worked on this answer
Every name links to their profile. Every company links to their site. Real people, real accountability.