Dev.to Security 🔐 Cybersecurity 👁 0 📖 26 min read

Email header forensics: how to read a spoof

Someone in your finance team forwards you a message. A supplier they've paid for three years has changed their banking details, and the invoice is due Friday. The display name is right. So is the signature. So is the wor

Someone in your finance team forwards you a message. A supplier they've paid for three years has changed their banking details, and the invoice is due Friday. The display name is right. So is the signature. So is the wording, because whoever wrote it had read the last six emails in the thread.

The body of that message won't tell you whether it's real. The headers are where to start.

They'll also tell you which of three problems you have, and each one needs a different phone call. Somebody's spoofing the supplier's domain from infrastructure that has nothing to do with them. Somebody's sending through infrastructure the supplier authorised and no longer controls. Or somebody's sitting inside the supplier's actual mailbox. Then every check passes, and the headers can still tell you.

Where do I find the raw headers?

The forwarded copy isn't good enough. A normal forward is a new message. Its headers describe the forward, and whatever survives of the original is text in the body. Ask for the original, or pull it yourself.

  • Gmail and Google Workspace: open the message, the three-dot menu, Show original. That page has a "Copy to clipboard" button.1
  • Classic Outlook for Windows: open the message in its own window, File → Properties , and copy the "Internet headers" box.2
  • Outlook on the web and the new Outlook: three dots, View → View message details.2
  • Exchange Online, when the mailbox has already deleted it: message trace in the Defender portal gives you the routing but not the full header set. If you need the headers, you need a copy of the message.3

You want everything from the top of the file down to the first blank line.4 The body isn't part of this.

What should I read first?

Read Authentication-Results, then Return-Path, then From:. Do that before anything else in the file.

Authentication-Results: what the receiver decided
Return-Path: where bounces actually go
From: what the reader sees

From: is the author identity the reader sees. It's the only one of the three your finance team ever looks at.

Two more lines carry identity. Sender: names the mailbox that actually submitted the message.4 It shows up legitimately whenever a service sends on somebody's behalf, so a Sender: that differs from From: is ordinary, not suspicious. Message-ID: isn't evidence of origin. The sending application writes it and can put any domain after the @.4 It's useful for finding the message in message trace3 and for matching one message against another from the same sender.

What does Authentication-Results actually tell me?

It's the receiving server's verdict, written at the moment of delivery. It's usually the most useful line in the file, provided the receiver that wrote it is one you trust. Check the name at the front of it: mx.google.com below. Anybody upstream can write an Authentication-Results header. So RFC 8601 §5 requires a border MTA to delete any instance that claims to have been added inside its own trust boundary and didn't come from a server it trusts.5 Read the ones your own infrastructure wrote. Treat the rest the way you treat the Received chain below them. A healthy one looks like this:

Authentication-Results: mx.google.com;
    spf=pass smtp.mailfrom=bounce.northwind-traders.example;
    dkim=pass header.d=northwind-traders.example header.s=s1;
    dmarc=pass (p=REJECT) header.from=northwind-traders.example

Read the identifiers, not the words. spf=pass on its own says the sending IP was allowed to send for whatever's in smtp.mailfrom. That may be a domain the attacker owns and has configured perfectly. dkim=pass says a signature verified for whatever's in header.d, which again may be the attacker's domain. Only dmarc=pass ties either of those back to the domain in the visible From: header. That tie is identifier alignment, defined in RFC 9989 §4.4, and it's the thing you're checking.6 Alignment is relaxed by default, so bounce.northwind-traders.example aligns with northwind-traders.example on the organisational domain.6 Strict alignment (aspf=s or adkim=s in the DMARC record) demands an exact match, and the RFC says nearly all domain owners find relaxed enough.6 Relaxed is why an ESP can send with a return-path on a subdomain of yours and still pass.

Our take: a message with spf=pass dkim=pass dmarc=fail is more suspicious than one that fails everything, not less. Something authenticated properly as its own domain while the From: header carries your supplier's domain. Sometimes that's an attacker's setup. Sometimes it's a service the supplier authorised and never set up for alignment, which the RFC itself warns about.6 Find out which before you call it an attack.

How do I read the Received chain?

Each relay prepends its own Received: header to the top, so the chain reads newest first. The bottom is the earliest hop still visible. The top is your own gateway. Three rules make the rest of it useful.

  1. Read from the bottom up to find the origin. The last Received: in the file is usually the first hop that happened. It's only ever the earliest hop still visible, though. Systems strip and rewrite, so treat it as the oldest surviving record, not the beginning of the story.7 RFC 5321 §4.4 is what obliges each relay to prepend rather than append, and it's why the chain reads backwards.8
  2. Trust nothing below your own trust boundary. Anything an attacker's server wrote, an attacker chose. Received headers are plain text added by whoever handled the message. A fabricated hop claiming the message came from inside your organisation costs nothing to write. The first header added by a server you control or pay for is where evidence starts. Everything below it is a claim.
  3. Check the clocks, but only for large gaps. Clocks drift, so a few seconds of disagreement means nothing, and our analyser lets a hop run up to a minute backwards before it flags it.12 A queue that held the message for an hour means nothing either. A chain that runs further backwards than that needs explaining. It isn't proof that somebody edited it. A wrong timezone offset does this, and so does a server whose clock is wrong. Convert everything to UTC before you decide the gap is impossible. RFC 5321 asks servers to stamp an explicit offset so Received times can be compared, which makes that simple arithmetic.8

What does a spoofed invoice actually look like in the headers?

Together, six things expose it, and none of them is in the body. Here's a worked example of those headers, cut to the lines that carry the finding.

Return-Path: <billing@vps-host-77.example.net>
Received: from mail.vps-host-77.example.net (mail.vps-host-77.example.net. [203.0.113.42])
        by mx.google.com with ESMTPS id x14si2938471wrn.402
        for <finance@clientco.example>
        (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256);
        Wed, 12 Aug 2026 04:31:12 -0700 (PDT)
Received-SPF: fail (google.com: domain of billing@vps-host-77.example.net
        does not designate 203.0.113.42 as permitted sender)
        client-ip=203.0.113.42;
Authentication-Results: mx.google.com;
       dkim=none;
       spf=fail smtp.mailfrom=billing@vps-host-77.example.net;
       dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=northwind-traders.example
Received: from localhost (unknown [10.0.0.9])
        by mail.vps-host-77.example.net (Postfix) with ESMTPA id 4Wq8Yz2Ck1z3xVn;
        Wed, 12 Aug 2026 13:02:44 +0200 (SAST)
Date: Wed, 12 Aug 2026 13:02:44 +0200
To: <finance@clientco.example>
Subject: Updated banking details for the August invoice
From: "Accounts | Northwind Traders" <accounts@northwind-traders.example>
Reply-To: <northwind.accounts.recovery@freemail.example>
Message-ID: <a4f1c9d0-2b77-4e51-9c6e-7a1f0e33bb18@mailer-out-3.example.org>
X-PHP-Originating-Script: 1001:sendmail.php

Return-Path sits at the top because the delivering server puts it there, at final delivery, ahead of its own Received line (RFC 5321 §4.4).8 Six things stand out. The reader saw none of them.

  1. From: and Return-Path: are different domains. The reader sees northwind-traders.example. Bounces go to vps-host-77.example.net, the envelope sender the sending server gave in MAIL FROM.8 On its own that split is ordinary, and RFC 5321 calls a separate bounce address "common and useful" with mailing lists. Next to the DMARC failure below, it's the fastest tell in the set.
  2. dmarc=fail with p=NONE. The supplier's domain publishes a DMARC record with no enforcement. So Google recorded the failure and delivered the message anyway.6 A p=reject policy on that domain would have told Google to refuse it, though the receiver still makes the final call.6 That's what the none-to-reject ladder is for.
  3. dkim=none. Not a failure, an absence. Google found no signature.5 On its own that's weak evidence, because a forwarder or filter can strip a signature that was there when the message was sent.9 Here it isn't on its own. Google's own line shows it took the message straight from the VPS, so any signature would have had to vanish at the VPS or before it. What came before the VPS is the VPS's own record, a claim, not a proven path.
  4. Reply-To: on a free-mail domain. Reply to that invoice query and your answer goes to the attacker, in a thread that looks like your own.4 Legitimate senders do this too (ticketing systems, shared inboxes). So read it next to the authentication result, not on its own.
  5. A private IP relayed by a public host. from localhost (unknown [10.0.0.9])10 handed to a public VPS. On its own that's ordinary, and our analyser rates it info: an app server handing mail to its own outbound server looks the same.12 Read with ESMTPA next to it. The trailing A says the VPS recorded an authenticated SMTP submission.7 That line sits below Google's, so it's the VPS's own claim, and RFC 3848 says the keyword gives no real security assurance.7 Taken at its word, something logged in with credentials to send this. That's the fingerprint of an application using stored credentials, or of a submission account somebody else now has. The VPS's mail logs are where you'd confirm it.
  6. X-PHP-Originating-Script. The sending server volunteered that a PHP script called sendmail.php produced this message.11 Any PHP application sending through PHP's own mail function with that setting on leaves the same fingerprint, legitimate or not, so on its own it corroborates rather than proves. Paired with the five above, it's consistent with a web application generating the message rather than a corporate mail system. That makes the VPS the thing to go and look at.

Run those headers through the email header analyser and it returns a likely_phishing verdict with DMARC_FAILED, SPF_HARD_FAIL, REPLY_TO_DIFFERENT_DOMAIN, PRIVATE_IP_IN_PUBLIC_PATH and SERVER_LEAK_HEADERS.12 Four of those are numbers 2, 4, 5 and 6 above. SPF_HARD_FAIL is the spf=fail in Google's verdict. The From and Return-Path split and the missing signature get no flag of their own. They're why DMARC_FAILED fired: nothing passed in alignment with the From domain. Paste it today and you'll also get DATE_TOO_OLD, because the sample's date is now more than 30 days back.

What does the source IP tell me on its own?

More than the rest of the chain, because the sender didn't write it. They chose the VPS. They didn't get to choose what Google wrote down about the connection.

client-ip=203.0.113.42 came off the TCP session, not out of the message.13 That makes it observed, not asserted, and that's a different class of evidence from every hostname above it. It identifies the machine that connected to Google. That isn't necessarily the machine, or the person, the message started at. Take it to a reverse DNS lookup and check whether the PTR name resolves back to that same IP. That's forward-confirmed reverse DNS, a consistency check many receivers weigh when they decide how much to trust a sending host.5 It says something about infrastructure, not about honesty. Gmail requires it of everyone who sends to it, so real mail systems usually have it.14 An attacker who bothered can have it too.

Then check the address against the handful of blocklists we'd actually watch. Most of what a blacklist checker lights up is noise, and the blocklist post works through which lists matter. An IP already on Spamhaus CSS or XBL, sending mail that fails DMARC for the domain in the From:, has stopped being a mystery. The listing is about the host's history, not about this message, so it corroborates the finding rather than making it.15

The order matters: the IP, then its PTR, then whether that PTR resolves back, then who owns the range.

Try it: paste the raw headers into the email header analyser for the spoofing verdict and the hop-by-hop chain, take the originating IP to the reverse DNS checker to see whether its PTR confirms, and upload a DMARC XML file to the DMARC report viewer to find out who else has been sending as your domain this fortnight.

What if a forwarder broke the authentication?

Then spf=fail or a broken DKIM signature may be telling you about the forwarder, not the sender. A forwarder that keeps the original envelope sender usually fails SPF, because the connecting IP is now its own. One that swaps in its own domain can pass SPF, just not in alignment with the From:. Mailing lists also tend to edit the subject or body, and that breaks DKIM.16

ARC, the Authenticated Received Chain (RFC 8617), exists for this. Each intermediary that takes part records what it saw and signs the record.17 A receiver can then read authentication results from before the forward:

ARC-Authentication-Results: i=1; mx.listserver.example;
    spf=pass smtp.mailfrom=northwind-traders.example;
    dkim=pass header.d=northwind-traders.example;
    dmarc=pass header.from=northwind-traders.example
ARC-Message-Signature: i=1; a=rsa-sha256; d=listserver.example; s=arc; ...
ARC-Seal: i=1; a=rsa-sha256; d=listserver.example; s=arc; cv=none; ...

Read i= for the instance number, and cv= on the highest ARC-Seal for whether the chain still validates.17 cv=fail on the highest seal means the intermediary that added it found the chain already broken, and RFC 8617 says to treat the message as though it carried no chain at all.17 If the chain is intact, the sealer is one you trust, and the results in it are clean, a failure at your own gateway points at the forward, not the sender.

Whether that saves the message is a decision your receiver makes. Microsoft only honours a chain from a sealer you've explicitly trusted.18 It stamps compauth reason 130 when a trusted seal overrides a DMARC failure.19 Plenty of forwarders don't seal at all.17 So an absent chain tells you nobody recorded the forward, not that no forward happened.

ARC may also be retired. The IETF's DMARC working group has adopted a draft, Reclassifying ARC as Historic. It tells implementers not to rely on ARC going forward and to stop deploying it across the internet. It tells anyone still processing the headers not to make delivery decisions on chain validity alone.20 And it asks existing deployers to plan to decommission ARC or keep it inside their own domains.20 The draft isn't approved yet, so RFC 8617 stands, and Microsoft's header documentation still describes the ARC fields and reason 130 (page last updated 27 July 2026).19 The successor work is DKIM2, still at draft stage.21 Until deployers act on it, you'll still meet these headers, and the draft itself allows verifying them for forensic purposes.20 A chain tells you what an intermediary says it saw. Weigh who sealed it, not the fact that a seal validated.17

What about Microsoft's compauth verdict?

Exchange Online writes its own composite verdict next to the standard one. It's the line to read when a message lands in a Microsoft 365 mailbox:

Authentication-Results: spf=fail (sender IP is 203.0.113.42)
    smtp.mailfrom=vps-host-77.example.net; dkim=none;
    dmarc=fail action=none header.from=northwind-traders.example;
    compauth=fail reason=001

compauth=fail is an authentication result, not a delivery outcome. Microsoft's own documentation says the message may still be allowed if nothing else about it looks suspicious.19 So read the code as a verdict on the sender's posture, and go to message trace for what actually happened to the mail. dmarc= here can also read bestguesspass, a result RFC 9989 doesn't define.6 It means the domain publishes no DMARC record, and the message would have passed if it did.19

The three-digit reason code is the payload. Microsoft publishes the whole table, around thirty codes in families,19 and we list every one of them in Microsoft's wording, with a page of our own for ten.22 These are the ones worth recognising on sight:

  • 000, failed explicit authentication. The message failed DMARC and the domain's policy is p=quarantine or p=reject. The domain owner asked receivers to treat this as a failure, and Microsoft recorded that it was one.19
  • 001, failed implicit authentication. The sending domain published no authentication records, or published weak ones: SPF ending ~all or ?all, or DMARC at p=none. That's the code our example earns, because the spoofed domain sits at p=none.19
  • 010, someone spoofing your own domain. DMARC failed, the policy is reject or quarantine, and the From domain is one of your organisation's accepted domains. Staff being impersonated to staff.19
  • 601, the same shape without the enforcing policy. The From domain is one of your accepted domains and the message failed the weaker implicit check. It sits in 6xx, a second failure family that catches people out because it's nowhere near 000.19
  • 1xx, passed. Five are worth recognising, and three of them pass a message that still looks broken. 100 is SPF or DKIM passing in alignment. 109 is a domain with no DMARC record whose message would have passed anyway. 115 is mail from a tenant where the From domain is an accepted domain. 108 is DKIM failing because an earlier hop Microsoft treats as legitimate modified the body, for example your own on-premises mail environment, which makes it a plumbing job rather than an attack. 130 is a trusted ARC sealer's result overriding a DMARC failure, and only sealers you've explicitly configured count.19

Our take: the code to worry about is 001, not 000. A 000 means the domain owner published an enforcing policy and Microsoft evaluated the message against it. That's the system working. A 001 on mail claiming to be from a domain you own says your published records are too weak for Microsoft to defend you with. Inside your own tenant the same failure reads 601.22 The fix is a DMARC record with teeth, not anything in the message. Check the legitimate senders using that domain before you tighten it.

Microsoft's inbound handling has its own set of rules and its own vocabulary of rejections. The M365 blocking post unpacks the ones you meet on the sending side.

What if everything passes and the message is still fraudulent?

Then it probably isn't a spoof, and the headers have just told you something more serious.

Three different things arrive looking like the same email. The authentication result is what separates them.

  • A spoof. The attacker writes your supplier's name in From: and sends from their own infrastructure. Nothing aligns, DMARC fails, and everything above applies. This is our example.
  • Compromised sending infrastructure. The attacker controls a service or an SMTP credential the supplier authorised: a web application, a mail plugin, a submission account. SPF passes, because that host really is allowed to send for the domain, and DKIM may sign correctly too. The authentication is honest. The thing it's vouching for isn't.
  • A compromised mailbox. The attacker is logged into the supplier's actual account and sending from it. SPF passes, DKIM signs with the supplier's real key, DMARC aligns, and the analyser is right to return a clean verdict. This is business email compromise, and at the transport layer nothing's wrong at all.

Headers separate the first from the other two cleanly. Separating the second from the third is where the origin evidence earns its keep. Compare the source IP, the Received path and the sending client fingerprint against a message from the same person last month. Say a supplier's mail has come from the same M365 tenant for two years, and now it arrives via a residential IP in another country. That earns a phone call, on a number you already have, not the one in the signature.

A DMARC pass says the From domain was authenticated. It says nothing about whether the message or the domain owner can be trusted.6 It's the same gap that makes mail land in spam despite passing every check, read from the other direction.

What to do:

  • Keep the raw headers of anything suspicious before the mailbox owner deletes the message. Exchange Online message trace won't reconstruct them for you.3
  • Read Authentication-Results, Return-Path and From: together, not one at a time.
  • Treat every Received: header below your own gateway as a claim, not a record. Take the originating IP to a PTR check instead of trusting the hostnames in the chain.
  • On a Microsoft 365 mailbox, read the compauth reason code as well as the DMARC verdict. 001 on a domain you own, or 601 inside your own tenant, is your own posture failing, not the sender's.
  • Check who wrote the Authentication-Results you're reading. Your own gateway's verdict is evidence. One that arrived with the message is a claim.
  • If a DKIM signature exists, read d= and s= off the DKIM-Signature header rather than trusting the summary. A message can carry several signatures, and DMARC passes if any one of them verifies in alignment, so don't stop at the first.6
  • Where a forwarder or mailing list is involved, look for ARC-Seal and read cv= on the highest instance before you blame the sender for a broken signature.
  • Never verify new banking details using anything in the suspicious message. Use the number in your vendor master or a contact you've spoken to before. Get somebody other than the person who received the email to approve the change. Headers can tell you a message is suspicious. They can't tell you an account number is real.
  • When the answer is "the supplier's domain is at p=none, so nobody stopped this", check your own DMARC policy before you finish the email saying so. Publish a record, read the aggregate reports, and get to enforcement before somebody writes your name on an invoice.

Analyse a set of email headers.

Sources checked

Each claim above was checked against the source named here on 24 October 2026. Vendor pages and drafts change, so re-read them and re-run the commands rather than trusting the date on this page.

  1. “Next to Reply, click More”, then “Show original”. “In a new window, the full header shows. Click Copy to clipboard.” Source: Gmail Help: Trace an email with its full header
  2. Classic Outlook: “Double-click an email message to open it outside of the Reading Pane in classic Outlook for Windows. Click File > Properties. Header information appears in the Internet headers box.” New Outlook and Outlook on the web: “Select More actions at the top of the message window. Select View > View message details.” Source: Microsoft Support: View internet message headers in Outlook
  3. The Defender portal’s message trace “is a really pass through to Message trace page in the new Exchange admin center”. The richest report type, the Extended report, “Includes the same information as the extended summary report plus comprehensive routing and message event details”; no report type on the page includes the message headers (searched the raw copy). Message ID is a search field: “The internet message ID … in the Message-ID header field in the message header. Users can give you this value to investigate specific messages.” (EAC page last updated 2026-09-16, Defender page 2026-08-24.) Source: Microsoft Learn: Message trace in the new EAC in Exchange Online and Message trace in the Microsoft Defender portal
  4. The body “is separated from the header section by an empty line” (§2.1). “The "Sender:" field specifies the mailbox of the agent responsible for the actual transmission of the message. For example, if a secretary were to send a message for another person, the mailbox of the secretary would appear in the "Sender:" field”; Reply-To “indicates the address(es) to which the author of the message suggests that replies be sent” (§3.6.2). “The uniqueness of the message identifier is guaranteed by the host that generates it”, and for the part after the @ a domain is only “RECOMMENDED” (§3.6.4). Verified erratum 6920 on §2.1 changes a character-set name only; none of the others touches these sentences. Source: RFC 5322 §2.1, §3.6.2 and §3.6.4
  5. “any MTA conforming to this specification MUST delete any discovered instance of this header field that claims, by virtue of its authentication service identifier, to have been added within its trust boundary but that did not come directly from another trusted MTA” (§5). DKIM none: “The message was not signed.” (§2.7.1). iprev looks up the client IP’s PTR names and then each name’s addresses, and “Often an MTA receiving a connection that fails this test will simply reject the connection” (§3). Reported errata 6026, 6027 and 6790 touch §2.2, Appendix B and §8 only. Source: RFC 8601 §2.7.1, §3 and §5
  6. RFC 9989 “obsoletes RFCs 7489 and 9091”. Alignment is relaxed when the two domains share an Organizational Domain and strict when they are identical, and “In practice, nearly all Domain Owners have found relaxed alignment sufficient to meet their needs” (§4.4). Any domain can earn an SPF pass: “any Domain Owner, even a bad actor, can publish an SPF record for its domain and send an email that will obtain an SPF "pass" result” (§4.4.2). “A single email can contain multiple DKIM signatures, and it is considered to produce a DMARC "pass" result if any DKIM-Authenticated Identifier aligns with the Author Domain” (§4.4.1). adkim and aspf: “default is "r"” (§4.7). “discovered policies of "p=none" MUST NOT modify existing mail handling processes”, “Mail Receivers MAY choose to accept email that fails the DMARC validation check even if the published Domain Owner Assessment Policy is "reject"”, and a DMARC pass “does not carry an explicit or implicit value assertion about that message or the Domain Owner” (§5.4). “Mail that is sent by authorized, independent third parties might not be sent with Identifier Alignment, also preventing a "pass" result” (§7.3). The DMARC result names it registers are fail, none, pass, permerror and temperror (§9.2); bestguesspass appears nowhere in it. Errata 8995, 9025 and 9150 touch the appendices and §11.6 only. Source: RFC 9989 §4.4, §4.4.1, §4.4.2, §4.7, §5.4, §7.3 and §9.2
  7. “The new keyword "ESMTPA" indicates the use of ESMTP when the SMTP AUTH [3] extension is also used and authentication is successfully achieved” (§1). On stripping: “some people in a misguided attempt to hide information about their internal servers will strip Received headers of useful information” (§3). On trusting the keyword: “These keywords are not normally protected in transport which means they can be modified by an active attacker. They also do not indicate the specifics of the mechanism used, and therefore do not provide any real-world security assurance.” and “Information with a higher degree of reliability can be obtained by correlating the Received headers with the logs of the various Mail Transfer Agents through which the message passed.” (§3). No errata. Source: RFC 3848 §1 and §3
  8. “SMTP servers MUST prepend Received lines to messages; they MUST NOT change the order of existing lines or insert Received lines in any other location.” “When the delivery SMTP server makes the "final delivery" of a message, it inserts a return-path line at the beginning of the mail data.” “The return-path line preserves the information in the from the MAIL command.” On a different bounce address: “When mailing lists are involved, this arrangement is common and useful”. The FROM clause carries “an address literal containing the IP address of the source, determined from the TCP connection.” On timestamps: “comparability of Received header fields is important for detecting problems, especially slow relays. SMTP servers that create Received header fields SHOULD use explicit offsets in the dates (e.g., -0800), rather than time zone names of any type.” “If UT is needed, the receiver need merely do some simple arithmetic to convert the values.” Verified erratum 1683 on §4.4 corrects an ABNF rule only; held erratum 3447 would make the return-path insertion a MUST. Source: RFC 5321 §4.4
  9. “If the signature line is missing, is that because it was never there, or was it removed by an overzealous filter?” Rejected erratum 5551, on §6.3’s reply codes, does not touch this sentence. Source: RFC 6376 §6.3
  10. IANA “has reserved the following three blocks of the IP address space for private internets: 10.0.0.0 - 10.255.255.255 (10/8 prefix)” and two others. Source: RFC 1918 §3
  11. The page covers PHP’s mail functions: “The behaviour of these functions is affected by settings in php.ini.” mail.add_x_header: “Add X-PHP-Originating-Script that will include UID of the script followed by the filename.” Its default is “0”, off. Source: PHP Manual: Mail runtime configuration
  12. The sample above, run through our own parser and engine on 24 October 2026, returned verdict likely_phishing with DMARC_FAILED, SPF_HARD_FAIL, REPLY_TO_DIFFERENT_DOMAIN, SERVER_LEAK_HEADERS, DATE_TOO_OLD and PRIVATE_IP_IN_PUBLIC_PATH. PRIVATE_IP_IN_PUBLIC_PATH is info-level and reads “Senders do this all the time: an app server or mail client passes the message to its own outbound server first.” Backward hop timestamps are tolerated up to HOP_SKEW_TOLERANCE = 60 seconds before RECEIVED_TIMESTAMPS_BACKWARD fires. DMARC_FAILED reads “The message either failed both SPF and DKIM, or passed neither in alignment with the From-header domain.” The engine has no finding for a Return-Path that differs from From; its source notes that the split is legitimate “for every ESP / VERP bounce setup; DMARC handles it via alignment”. Source: app/lib/EmailHeaderAnalyzer.php and assets/js/email-headers-core.js (buildEmailHeadersCanonical), the same engine the email header analyser runs
  13. In Received-SPF, client-ip is “the IP address of the SMTP client”. Reported erratum 5843 on §9.1 quotes a mechanism value in an example only; verified erratum 5436 loosens the header’s ABNF only. Source: RFC 7208 §9.1
  14. “Starting February 1, 2024, all email senders who send email to Gmail accounts must meet the requirements in this section”, including “Ensure that sending domains or IPs have valid forward and reverse DNS records, also referred to as PTR records.” Source: Gmail Help: Email sender guidelines
  15. CSS: “an automatically produced dataset of IP addresses that are involved in sending low-reputation email. CSS mostly targets static spam emitters but may also include other senders that display a risk to our users, such as compromised hosts.” XBL: “individual IPv4 and IPv6 addresses exhibiting signs of compromise i.e. IPs that are legitimate but have been hijacked to use by third-party exploits.” Source: Spamhaus CSS FAQ and Spamhaus Exploits Blocklist
  16. “If the RFC5321.MailFrom is present and the forwarder maintains the original RFC5321.MailFrom, SPF validation will fail unless the forwarder is an authorized part of the originator’s email sending infrastructure. If the forwarder replaces the RFC5321.MailFrom with its own domain, SPF might pass, but Identifier Alignment with the RFC5322.From header field will fail” (§2.2). Mailing lists “very commonly modify headers or message content in ways that will cause DKIM to fail”, including a subject tag and a body footer (§3.2.3). No errata. Source: RFC 7960 §2.2 and §3.2.3
  17. “Instance tag values are integers that begin at 1 and are incremented by each addition of an ARC Set” (§4.2.1); the Chain Validation Status is carried “as the AS header field in the "cv" tag” (§4.4); the validator stops with "fail" if “the Chain Validation Status of the highest instance value ARC Set is "fail"”, and a sealer marks the chain it found broken with cv=fail (§5.1.2, §5.2). “a message with an Authenticated Received Chain with a Chain Validation Status of "fail" MUST be treated the same as a message with no Authenticated Received Chain”, and “many intermediaries will continue to modify messages without adding ARC seals” (§5.2). “Recipients are cautioned to treat every Sealer of the ARC Chain with suspicion” (§9.4). RFC 8617 is an Experimental RFC. Reported errata 7910 and 8357 touch ABNF in §4.1.2 and a missing citation in §5.2.2 only. Source: RFC 8617 §4.2.1, §4.4, §5.1.2, §5.2 and §9.4
  18. “After an admin adds a trusted ARC sealer in the Defender portal, Microsoft 365 uses the original email authentication information that the ARC sealer provides”. Its troubleshooting table: “oda=0 despite arc=pass”, likely cause “ARC sealer domain isn’t in the trusted sealers list.” (Last updated 2026-08-07.) The same page carries a shorter compauth table that disagrees with source 19 on 002, 010 and 1xx; this article follows source 19, Microsoft’s header reference. Source: Microsoft Learn: Configure trusted ARC sealers
  19. Page last updated 2026-07-27. ARC row: “AAR: Records the content of the Authentication-results header from DMARC. AMS: Includes cryptographic signatures of the message. AS: Includes cryptographic signatures of the message headers. This field contains a tag of a chain validation called "cv="”. compauth: “Despite a compauth failure, the message might still be allowed if other assessments don’t indicate a suspicious nature.” “bestguesspass: Indicates that no DMARC TXT record exists for the domain exists. If the domain had a DMARC TXT record, the DMARC check for the message would pass.” The reason table has 30 rows, seven of them families. 000: “The message received a DMARC fail and the DMARC policy action is p=quarantine or p=reject.” 001: “The sending domain didn’t have email authentication records published, or if they did, they had a weaker failure policy (SPF ~all or ?all, or a DMARC policy of p=none).” 010: “The message failed DMARC, the DMARC policy action is p=reject or p=quarantine, and the sending domain is one of your organization’s accepted domains (self-to-self or intra-org spoofing).” 6xx: “The message failed implicit email authentication”; 601: “The sending domain is an accepted domain in your organization (self-to-self or intra-org spoofing).” 1xx: “The message passed explicit or implicit authentication”. 100: “SPF passed or DKIM passed and the domains in the MAIL FROM and From addresses are aligned.” 108: “DKIM failed due to a message body modification attributed to previous legitimate hops. For example, the message body was modified in the organization’s on-premises email environment.” 109: “Although the sender’s domain has no DMARC record, the message would pass, anyway.” 115: “The message was sent from a Microsoft 365 organization where the From address domain is configured as an accepted domain.” 130: “The ARC result from a trusted ARC sealer overrode the DMARC failure.” Source: Microsoft Learn: Anti-spam message headers
  20. A dmarc working group document (version -01, 21 October 2026, “Obsoletes: 8617 (if approved)”): “Implementers and operators should not rely on ARC going forward, and should cease further Internet-wide deployments.” Receivers that still parse ARC headers “should not make delivery decisions based on ARC chain validity without robust reputational trust signals and associated policies.” “Existing ARC deployers should plan to decommission them or confine their usage to controlled, intra-domain contexts where bilateral policy suffices.” Receivers “may continue to verify them for forensic or intra-domain purposes”. Datatracker shows it as a WG Document with IESG state “I-D Exists”. Source: IETF Datatracker: draft-ietf-dmarc-arc-to-historic
  21. The DKIM working group’s DKIM2 documents are all Active Internet-Drafts, among them draft-ietf-dkim-dkim2-spec-07 (2026-10-18); its list of RFCs has no DKIM2 entry. Source: IETF Datatracker: DKIM working group documents
  22. Our reference table carries all 30 of Microsoft’s rows. Our 601 entry: “reason=001 is the same implicit failure on a domain that is not yours.” Source: app/lib/compauth_data.php, rendered at /compauth
📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.