Workflow Tools Control Yard

Home / Email and M365

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.

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.

KeywordWhat it says
SMTPSMTP.
ESMTPSMTP with its service extensions. The keyword does not say whether TLS was used.
ESMTPSESMTP over TLS: STARTTLS was negotiated.
ESMTPAESMTP with a sender that signed in (SMTP AUTH).
ESMTPSAESMTP over TLS, with a sender that signed in.
LMTPLMTP: delivery to a mailbox server.
LMTPSLMTP over TLS.
LMTPALMTP with a sender that signed in.
LMTPSALMTP over TLS, with a sender that signed in.
UTF8SMTPESMTP with SMTPUTF8: international addresses.
UTF8SMTPSESMTP with SMTPUTF8, over TLS.
UTF8SMTPAESMTP with SMTPUTF8, with a sender that signed in.
UTF8SMTPSAESMTP with SMTPUTF8, over TLS, with a sender that signed in.
UTF8LMTPLMTP with SMTPUTF8.
UTF8LMTPSLMTP with SMTPUTF8, over TLS.
UTF8LMTPALMTP with SMTPUTF8, with a sender that signed in.
UTF8LMTPSALMTP 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.

MethodResultWhat it means
spfpassThe sending server is allowed to send for the domain SPF checked.
spffailThe domain says the sending server is not allowed to send for it.
spfsoftfailThe domain says the sending server is probably not allowed (~all), without the firm statement of a fail.
spfneutralThe domain makes no statement about the sending server (?all).
spfnoneNo SPF record was found, or there was no domain to check.
spftemperrorA passing error, usually DNS, stopped the check. A later try may work.
spfpermerrorThe domain's SPF record could not be read: it needs fixing by whoever runs its DNS.
spfpolicySPF allowed the server, but the receiver's own policy did not accept the result.
dkimpassThe message was signed, and the signature checked out.
dkimfailThe message was signed, but the signature did not check out: the message changed on the way, or the key does not match.
dkimnoneThe message was not signed.
dkimpolicyThe message was signed, but something about the signature was not acceptable to the receiver.
dkimneutralThe message was signed, but the signature could not be processed, for example because of a syntax error.
dkimtemperrorA passing error, such as failing to fetch the key, stopped the check.
dkimpermerrorAn error that will not go away stopped the check, such as a signed header field that is missing.
dmarcpassThe domain has a DMARC record, and SPF or DKIM passed for a domain aligned with the From address.
dmarcfailThe domain has a DMARC record, but neither SPF nor DKIM passed for a domain aligned with the From address.
dmarcnoneThe From domain has no DMARC record.
dmarctemperrorA passing error, such as an unreachable DNS server, stopped the check.
dmarcpermerrorAn error that will not go away, such as a badly written DMARC record.
dmarcbestguesspassMicrosoft 365: the From domain has no DMARC record, but would have passed if it had one.
arcpassThe message arrived with an ARC chain, and the chain checked out.
arcfailThe message arrived with an ARC chain that did not check out.
arcnoneThe message arrived without an ARC chain.
iprevpassThe sending address's reverse DNS name points back to the same address.
iprevfailThe reverse and forward DNS lookups of the sending address do not agree.
iprevtemperrorA passing DNS error stopped the check.
iprevpermerrorThe sending address has no reverse DNS (PTR) name.
authpassThe sending client signed in to the server (SMTP AUTH).
authfailThe sending client tried to sign in to the server and did not succeed.
authnoneThe sending client did not try to sign in.
authtemperrorThe sending client tried to sign in, but an error that may pass, such as a failed directory lookup, stopped it.
authpermerrorThe sending client tried to sign in, but an error that will not go away, such as a permanent directory lookup error, stopped it.
compauthpassMicrosoft 365's composite authentication passed: it combines SPF, DKIM, DMARC and other signs, with the From domain as its basis.
compauthfailMicrosoft 365's composite authentication failed. The message may still be delivered if nothing else about it looks suspicious.
compauthsoftpassMicrosoft 365's composite authentication soft-passed.
compauthnoneMicrosoft 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.

FieldWhat it means
ARCARC 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.
CATThe category of threat policy applied to the message. When several apply, the one with the highest priority wins.
CIPThe connecting IP address. An admin can put it in the IP Allow List or the IP Block List.
CTRYThe country or region of the connecting IP address, which may differ from the country of the address that first sent the message.
DIR:INBDirection: an inbound message.
DIR:OUTDirection: an outbound message.
DIR:INTDirection: an internal message.
HThe HELO or EHLO name the connecting server gave.
IPV:CALSpam filtering was skipped: the source address is in the IP Allow List.
IPV:NLIThe address is not on any IP reputation list.
LANGThe language of the message, as a country code such as ru_RU for Russian.
PTRThe reverse DNS (PTR) name of the source IP address.
SCLThe 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.19Phishing, domain impersonation: the sending domain tries to pass for a protected domain.
SFTY:9.20Phishing, user impersonation: the sender tries to pass for a user of the recipient's organization or a protected user.
SFTY:9.25First contact safety tip: may point to a suspicious or phishing message.
SFV:BLKFiltering was skipped and the message blocked: the sender is in a user's Blocked Senders list.
SFV:NSPMSpam filtering marked the message as not spam, and it went to the recipients.
SFV:SFEFiltering was skipped and the message allowed: the sender is in a user's Safe Senders list.
SFV:SKASpam 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:SKBMarked as spam: the sender is in the blocked senders or blocked domains of an anti-spam policy.
SFV:SKISpam filtering was skipped: the source address is in the IP Allow List of the connection filter policy.
SFV:SKNSpam filtering was bypassed by an Exchange mail flow rule (transport rule).
SFV:SKQReleased from quarantine and sent to the recipients.
SFV:SKSMarked 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:SPMSpam filtering marked the message as spam.
SRV:BULKSpam 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-CustomSpamThe message matched an Advanced Spam Filter (ASF) setting of an anti-spam policy.
BCLThe bulk complaint level: the higher it is, the more likely the bulk mail is to draw complaints, and so to be spam.

Categories (CAT)

CATCategory of threat policy
AMPAnti-malware.
BIMPBrand impersonation (Defender for Office 365).
BULKBulk.
DIMPDomain impersonation (Defender for Office 365).
FTBPAnti-malware common attachments filter.
GIMPMailbox intelligence impersonation (Defender for Office 365).
HPHSH or HPHISHHigh confidence phishing.
HSPMHigh confidence spam.
INTOSIntra-organization phishing.
MALWMalware.
OSPMOutbound spam.
PHSHPhishing.
SAPSafe Attachments (Defender for Office 365).
SPMSpam.
SPOOFSpoofing.
UIMPUser 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.

BCLWhat it means
0Not from a bulk sender.
1 to 3From a bulk sender that draws few complaints.
4 to 7From a bulk sender that draws a mixed number of complaints.
8 to 9From a bulk sender that draws many complaints.

Composite authentication reasons

Authentication-Results from Microsoft 365 has compauth= and a three-digit reason=.

ReasonWhat it means
000Explicit authentication failed (compauth=fail): the message failed DMARC, and the domain's policy is quarantine or reject.
001Implicit authentication failed (compauth=fail): the sending domain publishes no authentication records, or only weak ones (SPF ~all or ?all, or DMARC p=none).
002The organization forbids this sender and domain pair to send spoofed mail, a setting an admin made.
010The message failed DMARC under quarantine or reject, and the sending domain is one of the organization's accepted domains: spoofing from inside.
1xxExplicit or implicit authentication passed (compauth=pass).
100SPF or DKIM passed, and the MAIL FROM and From domains are aligned.
101DKIM-signed by the domain of the From address.
102SPF passed, and the MAIL FROM and From domains are aligned.
103The From domain aligns with the PTR (reverse DNS) record of the sending IP address.
104The PTR record of the sending IP address aligns with the From domain.
108DKIM failed because earlier, legitimate hops changed the body, such as the organization's own on-premises mail system.
109The sending domain has no DMARC record, but the message would pass anyway.
111DMARC had a temporary or permanent error, but the SPF or DKIM domain aligns with the From domain.
112A DNS timeout kept the DMARC record from being read.
115Sent from a Microsoft 365 organization that has the From domain as an accepted domain.
116The MX record of the From domain aligns with the PTR record of the connecting IP address.
130The ARC result from a trusted ARC sealer overrode the DMARC failure.
2xxImplicit authentication soft-passed (compauth=softpass).
201The PTR record of the From domain aligns with the subnet of the connecting IP address's PTR record.
202The From domain aligns with the domain of the connecting IP address's PTR record.
3xxComposite authentication was not checked (compauth=none).
4xxComposite authentication was bypassed (compauth=none).
501DMARC was not enforced: the message is a valid non-delivery report, and the sender and the recipient have been in contact before.
502DMARC was not enforced: the message is a valid non-delivery report for a message sent from this organization.
6xxImplicit authentication failed (compauth=fail).
601The sending domain is one of the organization's accepted domains: spoofing from inside.
7xxImplicit authentication passed (compauth=pass).
701-704DMARC was not enforced: this organization has a history of legitimate mail from the sending infrastructure.
9xxComposite authentication was bypassed (compauth=none).
905DMARC 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:

ActionWhat it means
pct.quarantineThe message failed DMARC under p=quarantine, but pct was under 100 and this message was picked to be let through.
pct.rejectThe message failed DMARC under p=reject, but pct was under 100 and this message was picked to be let through.
permerrorA permanent error in the DMARC check, such as a badly formed DMARC record; the domain's owner needs to fix it.
temperrorA temporary error in the DMARC check; a later message may be checked normally.

Sources

More Email and M365 tools