Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

Reading the X-Forefront-Antispam-Report header: SFV, SCL and CAT

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

A message lands in Junk Email, in quarantine, or in the Inbox when someone expected the opposite, and the explanation is in the message headers. In Microsoft 365, spam filtering adds its result to a header called X-Forefront-Antispam-Report. It holds many field and value pairs separated by semicolons. Microsoft's page lists SFV values, the CAT category and the DIR direction, and says that in a cloud organisation the SCL field does not determine whether a message is identified as spam.

This reads the fields as Microsoft's header page describes them, shows how to use the SFV values to find which setting produced the result, and says what the header does not tell you. Nothing here changes anything.

What the error means

Microsoft's page says Microsoft 365 scans all incoming messages for spam, malware and other threats in organisations with cloud mailboxes, and adds the results to three header fields: X-Forefront-Antispam-Report ("Contains information about the message and about how it was processed"), X-Microsoft-Antispam, which has more about bulk mail and phishing, and Authentication-results, which has the SPF, DKIM and DMARC results. This page is about the first.

The page shows the shape of the header with one example, as printed:

...CTRY:;LANG:hr;SCL:1;SRV:;IPV:NLI;SFV:NSPM;PTR:;SFTY:;...

It also says: "Fields that aren't described in the table are used exclusively by the Microsoft anti-spam team for diagnostic purposes." A field with no entry on the page has no published meaning.

Which fields matter for a verdict:

Field What Microsoft's page says
SFV How spam filtering handled the message, with the values in the table below
CAT The category of threat policy applied to the message
DIR The directionality of the message: INB inbound, OUT outbound, INT internal
SCL The spam confidence level; see below
IPV IPV:CAL means the message skipped spam filtering because the source IP address was in the IP Allow List; IPV:NLI means the IP address was not found on any IP reputation list
SRV:BULK The message was identified as bulk email by spam filtering and the bulk complaint level (BCL) threshold
CIP The connecting IP address
CTRY The source country or region of the connecting IP, which might not be the original sending IP
H The HELO or EHLO string of the connecting email server
PTR The reverse DNS lookup of the source IP address
LANG The language the message was written in
SFTY The message was identified as phishing and marked with 9.19 (domain impersonation), 9.20 (user impersonation) or 9.25 (first contact safety tip)

SCL no longer decides the outcome

Microsoft's header page says of SCL: "In cloud organizations, this value doesn't determine whether the message is identified as spam or the action taken on it." It is used mainly in on-premises Exchange, including hybrid delivery to Junk Email, and the page says: "To understand how the message was filtered, use the CAT and DIR values instead."

The page for SCL itself, dated 2026-08-12, agrees and goes further: the value "no longer holds the same meaning in cloud organizations", and "the same SCL value can appear on messages with different verdicts". It still gives the range, -1 or 0 to 9, and says a value of 5 or higher "generally indicates the message is considered bad" in the historical sense. In the cloud, its main use is in mail flow rules that ask for a bypass (SCL -1), treat a message as spam (5 or 6) or as high confidence spam (9). The page adds that even when a rule requests a bypass, the stamped value might not be -1.

CAT values

The category of threat policy applied, as the page lists them: AMP (anti-malware), BIMP (brand impersonation), BULK (bulk), DIMP (domain impersonation), FTBP (anti-malware common attachments filter), GIMP (mailbox intelligence impersonation), HPHSH or HPHISH (high confidence phishing), HSPM (high confidence spam), INTOS (intra-organization phishing), MALW (malware), OSPM (outbound spam), PHSH (phishing), SAP (Safe Attachments), SPM (spam), SPOOF (spoofing) and UIMP (user impersonation). BIMP, DIMP, GIMP, SAP and UIMP are marked on the page as Defender for Office 365 only.

The page says multiple forms of protection and multiple detection scans might flag one inbound message. Policies are applied in an order of precedence, and "the policy with the highest priority is applied first", so one CAT value does not rule out others.

Likely causes

The header does not give a cause directly. Each SFV value points to the place a decision was made, and the page names the setting. Read this table as a pointer to where to look.

SFV value What the page says Where the decision sits
SFV:SPM The message was marked as spam by spam filtering Spam filtering itself; use CAT to identify the category
SFV:NSPM Spam filtering marked it as nonspam and it went to the intended recipients Spam filtering
SFV:BLK Filtering was skipped and the message was blocked because the address is in a user's Blocked Senders list The user's own list
SFV:SFE Filtering was skipped and the message was allowed because the address is in a user's Safe Senders list The user's own list
SFV:SKA Skipped spam filtering and went to the Inbox because the sender was in the allowed senders or allowed domains list in an anti-spam policy An anti-spam policy
SFV:SKB Marked as spam because it matched a sender in the blocked senders or blocked domains list in an anti-spam policy An anti-spam policy
SFV:SKI Skipped spam filtering because the source IP was in the IP Allow List in the connection filter policy The connection filter
SFV:SKN Bypassed spam filtering due to an Exchange mail flow rule A mail flow rule
SFV:SKQ Released from quarantine and sent to the intended recipients A release from quarantine
SFV:SKS Marked as spam before spam filtering processed it, by a mail flow rule that set the SCL or a spam decision passed from on-premises Exchange in a hybrid deployment A mail flow rule or hybrid

For SFV:SKS Microsoft adds that these actions are inputs to filtering, not the final decision, and that "Secure by default evaluates the request and might not honor it", so the value is stamped only when the request to mark the message as spam is honoured.

SRV:BULK has its own cause: Microsoft says that when the MarkAsSpamBulkMail parameter is On, and "it's on by default", bulk email messages are identified as spam. The bulk complaint level (BCL) sits in the X-Microsoft-Antispam header, where a higher BCL means a bulk message is more likely to generate complaints. An X-CustomSpam: [ASFOption] field means the message matched an Advanced Spam Filter setting, and Microsoft notes that mail flow rules cannot be used to act on messages filtered by ASF.

Prove the cause before changing anything

All of these steps read only.

  1. Get the message headers. Microsoft's page points to its guide on viewing internet message headers in Outlook and says the header text can be pasted into the Message Header Analyzer tool, which parses it into a readable form.

  2. Find X-Forefront-Antispam-Report and read SFV first. If it is one of the SK, BLK or SFE values, the table above names a list, a rule or a quarantine release as the source of the value.

  3. Read CAT and DIR. CAT says what filtered the message and DIR says whether the message was inbound, outbound or internal. For a bulk message, read SRV and then BCL.

  4. Read SCL last, if at all, as history rather than the verdict.

  5. Read Authentication-results. Microsoft's page defines spf, dkim, dmarc and compauth there. For compauth, "Despite a compauth failure, the message might still be allowed if other assessments don't indicate a suspicious nature". The meaning of each reason code is covered in compauth=fail reason codes in the Authentication-Results header.

Example (illustrative, not from Microsoft's page): a header contains CIP:203.0.113.10;CTRY:AU;LANG:en;SCL:5;SRV:;IPV:NLI;SFV:SPM;PTR:mail.example.com;CAT:PHSH;DIR:INB. Read in the order above: SFV:SPM says spam filtering marked the message as spam, CAT:PHSH says the category was phishing, DIR:INB says it was inbound, and IPV:NLI says the connecting IP had no entry on a reputation list. Microsoft says the SCL value does not determine the verdict in a cloud organisation. The reasons for the phishing category are not in the header.

Fix

The header is a read-only record, so the fix is a change to whichever setting the SFV value points to, and that change is outside this reading. Microsoft's page links to configuration pages for some of those settings: anti-spam policies for SFV:SKA, SFV:SKB and SRV:BULK, connection filtering for SFV:SKI and IPV:CAL, and the users' junk email settings for SFV:BLK and SFV:SFE. For SFV:SKN and SFV:SKS it names an Exchange mail flow rule as the source and links to Microsoft's article on using mail flow rules to set the SCL. No command or setting change for any of them is given here, and none is given on Microsoft's page.

What can be said from the page is how to choose which setting to look at:

  • SFV:SKA, SFV:SKI, SFV:SKN and IPV:CAL mean spam filtering was skipped by something that was configured. The place to look is that configuration, not the spam filter.
  • SFV:SKB means a block list entry did the work, so the entry is what to look at.
  • SFV:SPM with a CAT value means filtering decided the message on its own. The page lists the CAT value and says nothing about which part of the message caused it.
  • SFV:SKQ means someone released the message from quarantine, which says nothing about whether filtering would have marked it spam.

As general advice, not on Microsoft's page: before anyone changes an allow list to make a legitimate sender arrive, check that the sender's own authentication is in order, because an allow list entry skips spam filtering for everything from that sender or address.

Confirm the fix

  • A fresh message from the same sender shows a different SFV or CAT value in its new header. The old message's header does not change.
  • A message that should be allowed no longer lands in Junk Email or quarantine, and one that should be filtered still is.
  • Authentication-results for the new message show the expected spf, dkim and dmarc results.

What to watch afterwards

  • SFV:SKA, SFV:SKI and SFV:SKN. Each is a message that skipped spam filtering because of a configured setting, so a long list of them is a list of messages that were not filtered.
  • SFV:SKS, which Microsoft stamps only when the request is honoured. A rule that tries to mark mail as spam may not show it.
  • SRV:BULK on legitimate newsletters or notices, which point to the bulk threshold in anti-spam policies.
  • A growing number of CAT:SPOOF or CAT:PHSH verdicts for one sender, which the header reports without saying why.

Risks and limits

These steps have not been run or lab-tested. The page describes only some fields, and the others are Microsoft's own diagnostic values with no published meaning. The page gives no table of SCL numbers for the cloud and says the number does not decide the outcome. The header cannot say who changed a setting, when it changed, or why filtering put a message in a category; for those, the setting's own configuration and the message trace are the places to look, and this page does not cover them. The example header is an illustration, not a Microsoft sample.

Sources