Menu: runbooks, process, how-to, NIS2, wireless

How-to H2

Status
Published
Last reviewed
Written

Trace a missing email in Exchange Online

Find where one message went, in the Exchange admin center or with Get-MessageTraceV2, and read the delivery status.

Before you start

  • Facts from the person asking: sender address, recipient address, roughly when it was sent, and the subject. If the sender got a bounce, ask for the full bounce text.
  • Rights: Microsoft lists membership in the Organization Management role group in Exchange Online, or the Exchange Administrator role in Microsoft Entra ID. Use the role with the fewest permissions that works; Microsoft keeps Global Administrator for emergencies.
  • For PowerShell: the Exchange Online PowerShell module 3.7.0 or later. Microsoft says this version is needed for Get-MessageTraceV2. The older Get-MessageTrace “is replaced by the Get-MessageTraceV2 cmdlet and will eventually be deprecated”.
  • Limits to know: V2 searches the last 90 days, returns at most 10 days of data per query, and returns 1000 results by default and 5000 at most. Without parameters it returns only the last 48 hours.

Steps

1. In the Exchange admin center

Go to Mail flow, Message trace, and start a new trace with the sender, the recipient and a time range a little wider than the user remembers. Open the message in the results to see its events. This works from a browser without any module, which helps when you are on someone else’s machine. (Microsoft Learn: message trace in the modern EAC)

2. In PowerShell: find the message

Connect-ExchangeOnline -UserPrincipalName <admin@yourdomain>
Get-MessageTraceV2 -SenderAddress <sender@example.org> -RecipientAddress <user@yourdomain> -StartDate (Get-Date).AddDays(-2) -EndDate (Get-Date) | Format-Table Received, SenderAddress, RecipientAddress, Subject, Status

Source: Connect to Exchange Online PowerShell and Get-MessageTraceV2, Microsoft Learn

Microsoft notes that the time stamps in the output are in UTC, which may differ from the time you typed. Convert before you tell the user “it arrived at 09:14”.

3. Only the problem messages

Get-MessageTraceV2 -RecipientAddress <user@yourdomain> -StartDate (Get-Date).AddDays(-2) -EndDate (Get-Date) -Status Failed,Quarantined,FilteredAsSpam,Pending

Source: Get-MessageTraceV2, -Status parameter, Microsoft Learn

4. Read the detail for one message

Get-MessageTraceV2 -SenderAddress <sender@example.org> -RecipientAddress <user@yourdomain> -StartDate (Get-Date).AddDays(-2) -EndDate (Get-Date) | Get-MessageTraceDetailV2

Source: Get-MessageTraceDetailV2, example 2, Microsoft Learn

The detail lists each event (receive, spam verdict, transport rule, deliver, fail) with its time.

5. If it was quarantined

Get-QuarantineMessage -RecipientAddress <user@yourdomain> -StartReceivedDate (Get-Date).AddDays(-2) -EndReceivedDate (Get-Date)

Source: Get-QuarantineMessage, Microsoft Learn

Release it only after you have read why it was held. A message held as phishing or malware stays held until someone qualified looks at it.

What good and bad look like

Microsoft’s status values for V2:

  • Delivered: it reached the mailbox. If the user cannot see it, look at inbox rules, the Junk Email folder, and other folders, not at mail flow.
  • Expanded: it went to a distribution group and was expanded. Trace again for one member.
  • Failed: delivery was tried and failed. The detail shows the reason, often a rule, a size limit or a recipient that does not exist.
  • FilteredAsSpam or Quarantined: filtering held it (step 5).
  • Pending: delivery is under way or deferred and being retried. During a provider incident this is normal. See R3 Mail not flowing.
  • GettingStatus: waiting for a status update. Look again in a few minutes.
  • No result at all: the message never reached Exchange Online. Ask the sender for the bounce or the “queued as” ID from their server, and check MX and DNS for your domain.

Traps

  • UTC times in the output (step 2).
  • 10 days per query. For a longer range, run several queries with shorter windows.
  • Old scripts with Get-MessageTrace. Rewrite them for V2 now. V2 has no page numbers; Microsoft documents getting the next round with an earlier -EndDate instead.
  • Sharing trace output. It contains addresses and subjects. Do not paste it into a public forum.

Undo

Steps 1 to 4 only read. Releasing a quarantined message (after step 5) cannot be taken back once the user has it, so decide first.

Record it

Example included. The row marked Example is made up to show the format. Delete it and add your own rows.

Date Asked by Sender, recipient Status found Reason in detail Action Initials
Example: 2026-12-02 Finance supplier@example.org to ap@example.com Quarantined Phish verdict Left held, security lead informed AB

Sources

Was this useful?

Esc
↑ ↓ moveEnter openEsc close