Email header analyzer
Paste the header fields of a message to see the route it took and the time each hop added, its SPF, DKIM and DMARC results, and Microsoft 365's spam fields (SCL, BCL, SFV) in plain words. The headers are read in your browser and go nowhere else.
Received: from MBX01.mail.example.net (2001:db8:20::14) by MBX02.mail.example.net (2001:db8:20::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8000.10; Mon, 23 Nov 2026 14:02:19 +0000 Received: from EDGE03.mail.example.net (2001:db8:20::33) by MBX01.mail.example.net (2001:db8:20::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8000.10; Mon, 23 Nov 2026 14:02:18 +0000 Authentication-Results: spf=pass (sender IP is 198.51.100.25) smtp.mailfrom=bounces.mailer.example; dkim=pass (signature was verified) header.d=example.com;dmarc=pass action=none header.from=example.com;compauth=pass reason=100 Received-SPF: Pass (protection.example.net: domain of bounces.mailer.example designates 198.51.100.25 as permitted sender) receiver=protection.example.net; client-ip=198.51.100.25; helo=out-25.mailer.example; Received: from out-25.mailer.example (198.51.100.25) by EDGE03.mail.example.net (2001:db8:20::33) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8000.10 via Frontend Transport; Mon, 23 Nov 2026 14:02:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=example.com; s=esp1; t=1795442511; h=from:to:subject:date:message-id:mime-version:content-type; bh=ZXhhbXBsZSBib2R5IGhhc2g=; b=ZXhhbXBsZSBzaWduYXR1cmU= Received: from [192.0.2.44] (unknown [192.0.2.44]) by out-25.mailer.example (Postfix) with ESMTPSA id 4ABC123 for <alex@example.net>; Mon, 23 Nov 2026 14:01:52 +0000 (UTC) From: Example Shop <news@example.com> To: <alex@example.net> Subject: =?UTF-8?Q?Your_order_has_shipped_=E2=9C=93?= Date: Mon, 23 Nov 2026 09:01:50 -0500 Message-ID: <20261123140150.4ABC123@example.com> Reply-To: Example Shop Support <support@example.com> Return-Path: bounces+7f3a@bounces.mailer.example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Forefront-Antispam-Report: CIP:198.51.100.25;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:out-25.mailer.example;PTR:out-25.mailer.example;CAT:NONE;SFS:(13230040)(4636009);DIR:INB; X-Microsoft-Antispam: BCL:4;ARA:13230040|4636009;
Route
The first hop is at the top. Delay is the time since the hop before; for the first hop, since the Date field.
| Hop | From | By | With | Time (UTC) | Delay |
|---|
Authentication
| Field | Method | Result | What it means |
|---|
Microsoft 365 anti-spam fields
| Field | Value | What it means |
|---|
Every field
In the order of the message, with encoded words decoded.
| Field | Value |
|---|
Reading the route
Each mail server that handles a message adds a Received field at the top, so the bottom one is the first hop and the top one the last. A Received field says which server the message came from, which server took it, how (the with keyword), and when. The page puts the hops in order and works out the time between them. Servers should write times with a UTC offset such as -0500; when two clocks disagree, a hop can seem to take negative time.
The with keyword says how the hop was made, but RFC 3848 warns that it can be changed by an attacker on the way and is no proof of anything. Microsoft 365 writes its own form, such as Microsoft SMTP Server (version=TLS1_2, ...), which the page shows as written.
| Keyword | What it says |
|---|---|
SMTP | SMTP. |
ESMTP | SMTP with its service extensions. The keyword does not say whether TLS was used. |
ESMTPS | ESMTP over TLS: STARTTLS was negotiated. |
ESMTPA | ESMTP with a sender that signed in (SMTP AUTH). |
ESMTPSA | ESMTP over TLS, with a sender that signed in. |
LMTP | LMTP: delivery to a mailbox server. |
LMTPS | LMTP over TLS. |
LMTPA | LMTP with a sender that signed in. |
LMTPSA | LMTP over TLS, with a sender that signed in. |
UTF8SMTP | ESMTP with SMTPUTF8: international addresses. |
UTF8SMTPS | ESMTP with SMTPUTF8, over TLS. |
UTF8SMTPA | ESMTP with SMTPUTF8, with a sender that signed in. |
UTF8SMTPSA | ESMTP with SMTPUTF8, over TLS, with a sender that signed in. |
UTF8LMTP | LMTP with SMTPUTF8. |
UTF8LMTPS | LMTP with SMTPUTF8, over TLS. |
UTF8LMTPA | LMTP with SMTPUTF8, with a sender that signed in. |
UTF8LMTPSA | LMTP with SMTPUTF8, over TLS, with a sender that signed in. |
Authentication results
The receiving server records its checks in an Authentication-Results field, which it adds at the top, like a Received field. Anyone can write such a field into a message before sending it, so trust only the ones your own mail system added: normally the top one. RFC 8601 has a receiving server delete fields that claim its name but did not come from it.
DMARC passes when SPF or DKIM passes for a domain aligned with the From address. SPF checks the envelope sender (smtp.mailfrom, the Return-Path), not the From address that people see; DKIM checks the signature of the domain in header.d. A message can pass SPF and DKIM and still fail DMARC, when the domains that passed are not the From domain's.
| Method | Result | What it means |
|---|---|---|
spf | pass | The sending server is allowed to send for the domain SPF checked. |
spf | fail | The domain says the sending server is not allowed to send for it. |
spf | softfail | The domain says the sending server is probably not allowed (~all), without the firm statement of a fail. |
spf | neutral | The domain makes no statement about the sending server (?all). |
spf | none | No SPF record was found, or there was no domain to check. |
spf | temperror | A passing error, usually DNS, stopped the check. A later try may work. |
spf | permerror | The domain's SPF record could not be read: it needs fixing by whoever runs its DNS. |
spf | policy | SPF allowed the server, but the receiver's own policy did not accept the result. |
dkim | pass | The message was signed, and the signature checked out. |
dkim | fail | The message was signed, but the signature did not check out: the message changed on the way, or the key does not match. |
dkim | none | The message was not signed. |
dkim | policy | The message was signed, but something about the signature was not acceptable to the receiver. |
dkim | neutral | The message was signed, but the signature could not be processed, for example because of a syntax error. |
dkim | temperror | A passing error, such as failing to fetch the key, stopped the check. |
dkim | permerror | An error that will not go away stopped the check, such as a signed header field that is missing. |
dmarc | pass | The domain has a DMARC record, and SPF or DKIM passed for a domain aligned with the From address. |
dmarc | fail | The domain has a DMARC record, but neither SPF nor DKIM passed for a domain aligned with the From address. |
dmarc | none | The From domain has no DMARC record. |
dmarc | temperror | A passing error, such as an unreachable DNS server, stopped the check. |
dmarc | permerror | An error that will not go away, such as a badly written DMARC record. |
dmarc | bestguesspass | Microsoft 365: the From domain has no DMARC record, but would have passed if it had one. |
arc | pass | The message arrived with an ARC chain, and the chain checked out. |
arc | fail | The message arrived with an ARC chain that did not check out. |
arc | none | The message arrived without an ARC chain. |
iprev | pass | The sending address's reverse DNS name points back to the same address. |
iprev | fail | The reverse and forward DNS lookups of the sending address do not agree. |
iprev | temperror | A passing DNS error stopped the check. |
iprev | permerror | The sending address has no reverse DNS (PTR) name. |
auth | pass | The sending client signed in to the server (SMTP AUTH). |
auth | fail | The sending client tried to sign in to the server and did not succeed. |
auth | none | The sending client did not try to sign in. |
auth | temperror | The sending client tried to sign in, but an error that may pass, such as a failed directory lookup, stopped it. |
auth | permerror | The sending client tried to sign in, but an error that will not go away, such as a permanent directory lookup error, stopped it. |
compauth | pass | Microsoft 365's composite authentication passed: it combines SPF, DKIM, DMARC and other signs, with the From domain as its basis. |
compauth | fail | Microsoft 365's composite authentication failed. The message may still be delivered if nothing else about it looks suspicious. |
compauth | softpass | Microsoft 365's composite authentication soft-passed. |
compauth | none | Microsoft 365 did not check composite authentication, or the message bypassed it. |
DKIM signatures
A DKIM-Signature field names the signing domain (d=) and selector (s=); the key is in DNS at the selector, _domainkey and the domain, which the DKIM record checker reads. The page warns about two things in a signature: a=rsa-sha1, which RFC 8301 forbids, and l=, which signs only the start of the body, so that text added later is not covered.
Microsoft 365 anti-spam fields
Microsoft 365 adds X-Forefront-Antispam-Report, a list of FIELD:value pairs, and X-Microsoft-Antispam, which holds the BCL. The meanings below are from Microsoft's article on these headers. Some messages also carry X-Forefront-Antispam-Report-Untrusted; the page reads it too and marks the fields that come from it.
| Field | What it means |
|---|---|
ARC | ARC fields: AAR records the Authentication-Results, AMS signs the message, AS signs the ARC header fields and has cv=, the result of checking the chain: none, pass or fail. |
CAT | The category of threat policy applied to the message. When several apply, the one with the highest priority wins. |
CIP | The connecting IP address. An admin can put it in the IP Allow List or the IP Block List. |
CTRY | The country or region of the connecting IP address, which may differ from the country of the address that first sent the message. |
DIR:INB | Direction: an inbound message. |
DIR:OUT | Direction: an outbound message. |
DIR:INT | Direction: an internal message. |
H | The HELO or EHLO name the connecting server gave. |
IPV:CAL | Spam filtering was skipped: the source address is in the IP Allow List. |
IPV:NLI | The address is not on any IP reputation list. |
LANG | The language of the message, as a country code such as ru_RU for Russian. |
PTR | The reverse DNS (PTR) name of the source IP address. |
SCL | The spam confidence level: -1, or 0 to 9; 5 or more generally means the message is considered bad. In the cloud it does not decide whether the message is spam or what is done with it; CAT and DIR show how it was filtered. |
SFTY:9.19 | Phishing, domain impersonation: the sending domain tries to pass for a protected domain. |
SFTY:9.20 | Phishing, user impersonation: the sender tries to pass for a user of the recipient's organization or a protected user. |
SFTY:9.25 | First contact safety tip: may point to a suspicious or phishing message. |
SFV:BLK | Filtering was skipped and the message blocked: the sender is in a user's Blocked Senders list. |
SFV:NSPM | Spam filtering marked the message as not spam, and it went to the recipients. |
SFV:SFE | Filtering was skipped and the message allowed: the sender is in a user's Safe Senders list. |
SFV:SKA | Spam filtering was skipped and the message went to the Inbox: the sender is in the allowed senders or allowed domains of an anti-spam policy. |
SFV:SKB | Marked as spam: the sender is in the blocked senders or blocked domains of an anti-spam policy. |
SFV:SKI | Spam filtering was skipped: the source address is in the IP Allow List of the connection filter policy. |
SFV:SKN | Spam filtering was bypassed by an Exchange mail flow rule (transport rule). |
SFV:SKQ | Released from quarantine and sent to the recipients. |
SFV:SKS | Marked as spam before spam filtering, by a mail flow rule or by on-premises Exchange; the mark is stamped only when Microsoft 365 honoured the request. |
SFV:SPM | Spam filtering marked the message as spam. |
SRV:BULK | Spam filtering and the bulk complaint level (BCL) threshold found it to be bulk email; with MarkAsSpamBulkMail on (the default), bulk is treated as spam. |
X-CustomSpam | The message matched an Advanced Spam Filter (ASF) setting of an anti-spam policy. |
BCL | The bulk complaint level: the higher it is, the more likely the bulk mail is to draw complaints, and so to be spam. |
Categories (CAT)
| CAT | Category of threat policy |
|---|---|
AMP | Anti-malware. |
BIMP | Brand impersonation (Defender for Office 365). |
BULK | Bulk. |
DIMP | Domain impersonation (Defender for Office 365). |
FTBP | Anti-malware common attachments filter. |
GIMP | Mailbox intelligence impersonation (Defender for Office 365). |
HPHSH or HPHISH | High confidence phishing. |
HSPM | High confidence spam. |
INTOS | Intra-organization phishing. |
MALW | Malware. |
OSPM | Outbound spam. |
PHSH | Phishing. |
SAP | Safe Attachments (Defender for Office 365). |
SPM | Spam. |
SPOOF | Spoofing. |
UIMP | User impersonation (Defender for Office 365). |
Bulk complaint level (BCL)
The BCL threshold of an anti-spam policy is 7 by default, 6 in the Standard preset security policy and 5 in the Strict one.
| BCL | What it means |
|---|---|
| 0 | Not from a bulk sender. |
| 1 to 3 | From a bulk sender that draws few complaints. |
| 4 to 7 | From a bulk sender that draws a mixed number of complaints. |
| 8 to 9 | From a bulk sender that draws many complaints. |
Composite authentication reasons
Authentication-Results from Microsoft 365 has compauth= and a three-digit reason=.
| Reason | What it means |
|---|---|
000 | Explicit authentication failed (compauth=fail): the message failed DMARC, and the domain's policy is quarantine or reject. |
001 | Implicit authentication failed (compauth=fail): the sending domain publishes no authentication records, or only weak ones (SPF ~all or ?all, or DMARC p=none). |
002 | The organization forbids this sender and domain pair to send spoofed mail, a setting an admin made. |
010 | The message failed DMARC under quarantine or reject, and the sending domain is one of the organization's accepted domains: spoofing from inside. |
1xx | Explicit or implicit authentication passed (compauth=pass). |
100 | SPF or DKIM passed, and the MAIL FROM and From domains are aligned. |
101 | DKIM-signed by the domain of the From address. |
102 | SPF passed, and the MAIL FROM and From domains are aligned. |
103 | The From domain aligns with the PTR (reverse DNS) record of the sending IP address. |
104 | The PTR record of the sending IP address aligns with the From domain. |
108 | DKIM failed because earlier, legitimate hops changed the body, such as the organization's own on-premises mail system. |
109 | The sending domain has no DMARC record, but the message would pass anyway. |
111 | DMARC had a temporary or permanent error, but the SPF or DKIM domain aligns with the From domain. |
112 | A DNS timeout kept the DMARC record from being read. |
115 | Sent from a Microsoft 365 organization that has the From domain as an accepted domain. |
116 | The MX record of the From domain aligns with the PTR record of the connecting IP address. |
130 | The ARC result from a trusted ARC sealer overrode the DMARC failure. |
2xx | Implicit authentication soft-passed (compauth=softpass). |
201 | The PTR record of the From domain aligns with the subnet of the connecting IP address's PTR record. |
202 | The From domain aligns with the domain of the connecting IP address's PTR record. |
3xx | Composite authentication was not checked (compauth=none). |
4xx | Composite authentication was bypassed (compauth=none). |
501 | DMARC was not enforced: the message is a valid non-delivery report, and the sender and the recipient have been in contact before. |
502 | DMARC was not enforced: the message is a valid non-delivery report for a message sent from this organization. |
6xx | Implicit authentication failed (compauth=fail). |
601 | The sending domain is one of the organization's accepted domains: spoofing from inside. |
7xx | Implicit authentication passed (compauth=pass). |
701-704 | DMARC was not enforced: this organization has a history of legitimate mail from the sending infrastructure. |
9xx | Composite authentication was bypassed (compauth=none). |
905 | DMARC was not enforced because of complex routing, such as mail that goes through an on-premises Exchange or another service before Microsoft 365. |
DMARC action
Microsoft 365 adds action= to its dmarc result. These values are in Microsoft's article:
| Action | What it means |
|---|---|
pct.quarantine | The message failed DMARC under p=quarantine, but pct was under 100 and this message was picked to be let through. |
pct.reject | The message failed DMARC under p=reject, but pct was under 100 and this message was picked to be let through. |
permerror | A permanent error in the DMARC check, such as a badly formed DMARC record; the domain's owner needs to fix it. |
temperror | A temporary error in the DMARC check; a later message may be checked normally. |
Sources
- Header fields, folding and dates: RFC 5322 (sections 2.2 and 3.3, and 4.3 for the old time zone names). Received fields and Return-Path: RFC 5321 section 4.4. The with keywords: RFC 3848 and RFC 6531. Encoded words: RFC 2047.
- Authentication-Results and the results of SPF, DKIM, iprev and SMTP AUTH: RFC 8601. SPF results and Received-SPF: RFC 7208. DMARC results: RFC 9989. ARC: RFC 8617. DKIM signatures: RFC 6376 and RFC 8301.
- Microsoft 365's fields, values and reason codes: Microsoft's articles Anti-spam message headers in cloud organizations, Spam confidence level (SCL) and Bulk complaint level (BCL), read on 23 November 2026. The meanings are written here in plain words.
- The example headers are made up for this page, with addresses and domains set aside for documentation.
More Email and M365 tools
-
SMTP status code lookup
Read a bounce such as 550 5.7.1 or 421 4.4.2: the reply code and the enhanced code by class, subject and detail.
-
AADSTS error code lookup
Look up AADSTS50126, AADSTS700016 or any other Microsoft Entra sign-in error, alone or in a pasted message.
-
JWT and access token decoder
Read the claims of a Microsoft Entra access or ID token, with exp, iat and nbf as dates, in your browser.
-
dsregcmd /status reader
Paste the output of dsregcmd /status: the join state, each field in words, and the values that point at a problem.
-
Intune and Autopilot error codes
App install codes such as 0x87D1041C, MDM enrollment errors such as 0x8018000A, and Autopilot import errors 806 and 808.
-
Safe Links and URL Defense decoder
See the address inside a Microsoft Safe Links or Proofpoint URL Defense link as plain text, without opening it.
-
Punycode and lookalike checker
Convert xn-- names to Unicode and back, and see when a name mixes scripts or has letters that look like ASCII ones.
-
SPF and DMARC record builder
Build SPF and DMARC records, or paste one to see what each part does.
-
DKIM record checker
Check a DKIM key record: key type and length, flags and mistakes, with a long key split into 255-character strings.
-
DMARC report viewer
Open DMARC aggregate reports (.xml, .gz or .zip) in your browser: senders, counts, and SPF and DKIM alignment.
-
MTA-STS and TLS-RPT builder
Build the MTA-STS and TLS-RPT records and the policy file, or paste one to read it.