Example
How to read it
- The score is compared with the threshold (required). Above it means spam.
- The tests list explains which signals raised or lowered the score.
Can you trust it?
Trust it only when added by your own provider. To check an email you are unsure about, paste its full headers into the email header analyzer, or receive it in a temporary inbox where the Email X-ray checks it for you.
How to view email headers
- Gmail: open the message, click the three dots, then Show original.
- Outlook: open the message, then File, Properties, Internet headers (desktop), or the three dots, View, View message details (web).
- Apple Mail: View, Message, All Headers.
- Yahoo Mail: the three dots, then View raw message.
Where X-Spam-Status sits in a real message
Every email has a header block at the top, then a blank line, then the body. Your mail app hides most of the header block and shows only a few fields. Here is a short, realistic header block with the X-Spam-Status line highlighted:
Received: from mail.example.com (mail.example.com [192.0.2.10]) by mx.yourprovider.com
Authentication-Results: mx.yourprovider.com; spf=pass; dkim=pass; dmarc=pass
From: "Example Store" <news@example.com>
X-Spam-Status: No, score=1.2 required=5.0 tests=DKIM_SIGNED,HTML_MESSAGE
Subject: Your order has shipped
Date: Thu, 12 Nov 2026 09:14:03 -0500
Servers add their lines at the top as the message travels, so the newest information is first and the sender's original fields are lower down. When you read a header block, start at the top with the lines your own provider added, then work down.
About filtering headers
Filtering headers are added by spam and virus filters, either at your provider or at the sender's. Each vendor uses its own names and scores, so read them as hints rather than verdicts.
Checking X-Spam-Status on a suspicious email
- Treat it as a helpful hint, not as proof. It is usually set by software along the way and is rarely checked.
- Use it together with Received and Authentication-Results to build a picture of where the message came from.
- Values that do not fit the claimed sender, such as a cheap bulk-mail tool on a message from a large bank, are worth a closer look.
Notes for developers
- Header names are case-insensitive, so
X-Spam-Status,x-spam-statusandX-SPAM-STATUSare the same field. - Long values can be folded across several lines. A line that starts with a space or tab continues the previous header (RFC 5322 section 2.2.3).
- Non-ASCII text in header values is sent as encoded words such as
=?UTF-8?B?...?=(RFC 2047). Decode them before you display or compare values. - Some fields may appear more than once. Received, for example, appears once per hop. Decide whether your code needs the first, the last or all of them.
- Never use this header to make a security decision unless your own server added or verified it.
Other filtering headers
| Header | What it does |
|---|---|
| X-Spam-Score | A numeric spam score from a spam filter. |
A scenario: why did this go to spam?
A legitimate invoice landed in junk. Its headers include a spam score added by your provider's filter and a list of rules that matched, such as missing DKIM and a link shortener. Those details explain the decision and tell the sender what to fix.
Quick checklist
- Look for your provider's own spam headers first.
- Rule names often describe the exact reason.
- Share them with the sender so they can fix their setup.
X-Spam-Status in raw, parsed and displayed form
| View | What you see |
|---|---|
| Raw source | X-Spam-Status: No, score=1.2 required=5.0 tests=DKIM_SIGNED,HTML_MESSAGE |
| Parsed by a mail library | A field named x-spam-status with its decoded value |
| Shown by most mail apps | Hidden unless you open the full source |
Related guides
Related headers
- X-Spam-Score: A numeric spam score from a spam filter.
- Authentication-Results: The receiving server's verdict on SPF, DKIM and DMARC for this message.
FAQ
What is the X-Spam-Status header?
Added by spam filters such as SpamAssassin to show whether a message was classified as spam and which rules matched.
Who sets the X-Spam-Status header?
Spam filters on the receiving side.
Can the X-Spam-Status header be faked?
Trust it only when added by your own provider.
Is the X-Spam-Status header required?
No. X-Spam-Status is optional. Many messages do not include it, and its absence is not a problem on its own.
Why is X-Spam-Status missing from my email?
Mail apps hide most headers. Open the full source (Show original in Gmail, View message details in Outlook) to see every header. If X-Spam-Status is still not there, the sending software simply did not add it.
Can I trust a spam score from the sender's side?
No. Only scores added by your own provider reflect how your filter judged the message.
Why do spam headers differ between providers?
Each filter vendor uses its own rules and names.