The X-Spam-Score email header

A numeric spam score from a spam filter. Higher means more likely to be spam.

Filtering headerUpdated November 12, 2026
Quick answerA numeric spam score from a spam filter. Higher means more likely to be spam. Trust only your provider's value.
CategoryFiltering
Set bySpam filters
Trust levelInformational

Example

X-Spam-Score: 1.2

How to read it

  • Scales differ between filters, so compare with the threshold used by your provider.

Can you trust it?

Trust only your provider's value. 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-Score 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-Score line highlighted:

Return-Path: <bounce@mail.example.com>
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-Score: 1.2
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-Score on a suspicious email

  1. Treat it as a helpful hint, not as proof. It is usually set by software along the way and is rarely checked.
  2. Use it together with Received and Authentication-Results to build a picture of where the message came from.
  3. 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-Score, x-spam-score and X-SPAM-SCORE are 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

HeaderWhat it does
X-Spam-StatusAdded by spam filters such as SpamAssassin to show whether a message was classified as spam and which rules matched.

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-Score in raw, parsed and displayed form

ViewWhat you see
Raw sourceX-Spam-Score: 1.2
Parsed by a mail libraryA field named x-spam-score with its decoded value
Shown by most mail appsHidden unless you open the full source

Related guides

Related headers

  • X-Spam-Status: Added by spam filters such as SpamAssassin to show whether a message was classified as spam and which rules matched.

FAQ

What is the X-Spam-Score header?

A numeric spam score from a spam filter. Higher means more likely to be spam.

Who sets the X-Spam-Score header?

Spam filters.

Can the X-Spam-Score header be faked?

Trust only your provider's value.

Is the X-Spam-Score header required?

No. X-Spam-Score is optional. Many messages do not include it, and its absence is not a problem on its own.

Why is X-Spam-Score 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-Score 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.

Install TempMailify

Add TempMailify to your device for one-tap access, like a regular app.