Tracing a Missing Email in Exchange Online with Read-Only Message Trace
Email missing in Exchange Online? Run a message trace in the EAC or with Get-MessageTraceV2, read the status and events, and find where the message stopped.

Before you begin
- A non-production Microsoft 365 tenant with two test mailboxes.
- An admin account with a role that includes message trace, such as Exchange Administrator.
- PowerShell with the ExchangeOnlineManagement module at version 3.7.0 or later.
Underlined words are defined in the KBY Lexicon. Tap or click one to see what it means.
When a user says an email never arrived, the quickest way to see what Exchange Online did with it is a message trace. In the Exchange admin center, go to Mail flow then Message trace, start a trace for the sender, the recipient and the time window, and read the status. In PowerShell, Get-MessageTraceV2 returns the same kind of records. Neither route changes a mail flow setting.
A trace answers a narrower question than it first seems to. It tells you what the service did with the message, not what the recipient saw in their mail client. A status of Delivered means the message reached a mailbox, so the search moves to that mailbox. Failed, Quarantined and Pending each send you somewhere else. Reading the trace well means knowing which question it can answer, how far back it can look, and where each status leads next.
#What you will learn
- Explain what a message trace records and why one email can produce several records.
- Run a trace in the Exchange admin center with the right sender, recipient and time range.
- Run the same trace with
Get-MessageTraceV2and read the events withGet-MessageTraceDetailV2. - Choose the next step from the delivery status, and say when a trace cannot answer the question.
- Finish cleanly by disconnecting and deleting any local export.
#What you need
- A non-production Microsoft 365 tenant, such as a developer or trial tenant, with two test mailboxes. Call them Alex and Sam in this guide.
- An admin account in that tenant. Microsoft lists membership of the Organization Management role group, or the Exchange Administrator or Global Administrator roles in Microsoft Entra, as giving the required permissions. It also advises using the role with the fewest permissions, so prefer Exchange Administrator.
- PowerShell with the Exchange Online PowerShell module,
ExchangeOnlineManagement, at version 3.7.0 or later. That is the version Microsoft names forGet-MessageTraceV2.
Nothing in the exercise changes tenant configuration. The only things it creates are two short test emails and the non-delivery report that the second one triggers.
#How a message trace sees your mail
A trace is a read-only view of the service’s own record of a message. It helps to know what is in that record before you read it, because most wrong conclusions come from expecting more than it holds.
#What the service records
Microsoft describes message trace as following a message as it travels through your organisation, so you can see whether the service received, rejected, deferred or delivered it. It also shows the actions taken on the message before its final status. That is the whole scope: the service’s handling, from receipt to hand-off.
Even a single message between two people can generate several records. Distribution group expansion, forwarding and mail flow rules all add more. Records that belong together share a Message ID, and the admin center’s Find related action opens a new trace for them.

#Two identifiers, two jobs
The Message ID is the value in the message’s Message-ID header. It stays constant for the lifetime of the message, and a user can read it from the message headers and give it to you. When you filter on it, use the full string, including any angle brackets.
The Network Message ID identifies one instance of the message and persists across copies created inside the service, for example when some recipients are moved to a separate copy of the message. In PowerShell, the -MessageTraceId parameter takes this value. Microsoft recommends it whenever you investigate one specific message, and requires it for a message sent to more than 1,000 recipients.
#How far back, and how much at once
The admin center searches the last two days by default. You can widen the range to 90 days, but only 10 days can be queried at a time. A range of 10 days or less returns a summary report immediately, with up to 20,000 results. A range even slightly longer is prepared from archived data and arrives as a downloadable CSV file, which can take several hours.
The enhanced summary and extended reports are always downloadable. They require at least one of Senders, Recipients or Message ID, and Microsoft notes that the last 24 hours of archived data is not typically available to them.
PowerShell has its own limits. With no parameters, Get-MessageTraceV2 returns only the last 48 hours. It returns 1,000 results by default and 5,000 at most, and a tenant may send at most 100 query requests in any 5-minute window. Microsoft’s advice is to narrow the dates and add filters such as -SenderAddress wherever you can.
#Reading the status
| Status | What the service reports | Where to look next |
|---|---|---|
| Delivered | The message reached its destination. | The recipient’s mailbox: Junk Email folder, inbox rules, other folders. |
| Failed | The message was not delivered. | The detail events, and the non-delivery report the sender received. |
| Pending | Delivery is being attempted or reattempted. | Wait, then run the trace again. |
| Getting status | The message was received recently and no status is available yet. | Check again within a few minutes. |
| Quarantined | The message was held as spam, bulk mail or phishing. | The security team, who own the quarantine. |
| Filtered as spam | The message was identified as spam and rejected or blocked, not quarantined. | The security team and the sender’s own mail system. |
| Expanded | The message went to a distribution group, which was expanded to its members. | The individual member records on the same trace. |
The first two columns of the table come from Microsoft’s definitions. The third is practical advice, not documentation. Microsoft also notes that there can be a delay of five to ten minutes between the actual delivery status and the reported one, so a Pending message from the last few minutes is not yet evidence of a problem.
#Tracing a missing invoice in practice
Suppose Priya reports that an invoice email from accounts@fabrikam.example did not arrive this morning. All the names and addresses here are invented for the example. The first move is to open the trace with the recipient’s address, the sender’s address and the last day as the time range. If you are not sure of the exact sender, the Senders box accepts a wildcard such as *@fabrikam.example. Microsoft allows one wildcard in a value, not several.
Open the result row, and expand Message events in the details. An uneventful, successfully delivered message still produces several events, so do not read a long list as a sign of trouble. For an inbound message you would expect to see Receive followed by Deliver. Microsoft defines Receive as the service accepting the message and Deliver as the message reaching a mailbox.
The result then falls into one of a few cases, and the status decides which. The diagram shows the route.
Rendering diagram...
In the invoice example, three of those branches matter most.
- Nothing found. The sender’s mail system may never have reached Exchange Online, or the address or time range is wrong. Check the spelling and widen the window before you conclude anything.
- Delivered. Exchange Online did its job. Ask Priya to check Junk Email and look for an inbox rule, and have her search all folders for the subject.
- Failed, Quarantined or Filtered as spam. The message stopped inside the service. The events show where, and the table above shows who should pick it up.
Expand More information as well. It shows the Message ID, the message size and the From IP and To IP values. For an inbound message, Microsoft says the To IP is blank. That detail confirms you are reading an inbound record.

#Your turn: trace two test messages in a lab tenant
Objective: the outcome to aim for is a traced delivered message and a traced failed message, in both the admin center and PowerShell, with each status explained.
Safe setup: use the lab tenant only. You need the two test mailboxes, Alex and Sam, and the admin account. Nothing here edits a mail flow rule, connector or policy.
- Sign in to a mailbox as Alex. Send Sam an email with the subject
Trace test 1. Then send a second email with the subjectTrace test 2to an address in the lab domain that does not exist, such asnobody-hereat your lab domain. - Wait a few minutes. In the Exchange admin center at
https://admin.exchange.microsoft.com, go to Mail flow then Message trace and select Start a trace. - Enter Alex as the sender, leave the time range at its two-day default, and select Search. Open each row and read the status and the events.
- Connect to Exchange Online PowerShell and run the same trace from the command line, as below.
Following along? Tap a step’s number to tick it off.
1Connect-ExchangeOnline -UserPrincipalName admin@lab.onmicrosoft.com
2$trace = Get-MessageTraceV2 -SenderAddress alex@lab.onmicrosoft.com `
3 -StartDate (Get-Date).AddDays(-1) -EndDate (Get-Date)
4$trace | Format-Table -AutoSize
5$trace | Get-MessageTraceDetailV2 | Format-Table -AutoSize
6Disconnect-ExchangeOnline -Confirm:$falseThe first command signs you in as the admin account. The second asks for everything Alex sent in the last day. Passing real dates, rather than text such as 06/13/2025, sidesteps the regional short-date format that Microsoft says the parameter otherwise expects. The third and fourth show the records and then pipe them into the detail cmdlet, which is how Microsoft’s own example pairs the two. The last line ends the session without a prompt.
Expected evidence: two records. The first is addressed to Sam and shows a status of Delivered, and its events include Receive and Deliver. The second is addressed to the invented address. It should show Failed, which is Microsoft’s status for a message that was not delivered, and its events should include Fail. The time stamps in PowerShell are in UTC, so they may differ from your local time.
Pass condition: you can say, for each message, what the service did and which event shows it. Stop condition: if the command returns a throttling or permissions error, stop and wait, or ask for a role that includes message trace. Do not retry in a loop.
Cleanup: Disconnect-ExchangeOnline ends the session. If you exported the admin center results to CSV, delete that file, because it holds sender, recipient and subject details. The two test emails can stay in the lab mailboxes or be deleted there.
#How to check your work
Treat the two views as a cross-check. The admin center and PowerShell should show the same recipients and the same statuses for the same sender and time window. If one shows a record the other lacks, compare the time ranges first. The admin center displays a time zone you can choose, while the PowerShell output is in UTC.
Next, confirm each status against the events. A Delivered status should have a Deliver event, and a Failed status should have a Fail event. A message that shows Getting status or Pending right after you sent it is normal. Run the trace again after a few minutes, bearing in mind Microsoft’s five-to-ten-minute reporting delay.
If nothing comes back, widen the checks in this order. Confirm the sender and recipient spelling, then confirm the message was sent inside the range, then make sure the range is no longer than 10 days for a summary query. If the trace is still empty for a message you know was sent, the problem is most likely upstream of Exchange Online, with the sender’s own mail system.
When a result list is cut off at the limit, do not rerun the same query. Microsoft’s documented pattern is to run it again with the end date set to the Received value of the last record you got:
1$mt = Get-MessageTraceV2 -SenderAddress alex@lab.onmicrosoft.com -ResultSize 100
2$nextRound = Get-MessageTraceV2 -SenderAddress alex@lab.onmicrosoft.com -ResultSize 100 -EndDate $mt[-1].Received.ToString("O")#Mistakes that give the wrong answer
- Treating Delivered as proof the user saw it. It proves the message reached a mailbox. Junk Email, inbox rules and other folders are all still possible, and the trace cannot see them.
- Searching too wide. A range longer than 10 days turns a quick summary into a report that can take hours. Start with the day in question and widen only if you need to.
- Using
Containson the subject. Microsoft recommendsStartsWithorEndsWithwith-SubjectFilterTypewherever possible. - Dropping the angle brackets from a Message ID. The filter needs the full string, so copy it from the header exactly.
- Relying on the last 24 hours in a downloadable report. Microsoft says that archived data is not typically available yet. Use the summary view for very recent mail.
- Calling a Pending message lost. Pending means delivery is being attempted or retried. Look again before you escalate.
- Running the query in a loop. The 100-requests-in-5-minutes limit applies to the whole tenant, so a script can use up the allowance other admins need.
#Running a trace in production
The commands do not change in a production tenant, but the care around them does. Use an account with only the permissions the trace needs, because Microsoft describes Global Administrator as a role to limit to emergencies. Connect, run the trace, and disconnect. A trace changes nothing, so there is nothing to roll back beyond closing the session and deleting any local export.
A trace shows senders, recipients and the first 256 characters of each subject, which can be sensitive. Run it for a reason you can state, such as a helpdesk ticket, and keep the results with that ticket. Mail to a shared mailbox is addressed like any other recipient, so you trace it by its own address. If you set one up, creating a shared mailbox and granting Full Access and Send As covers the permissions.
Know when to hand over rather than dig deeper. A Quarantined or Filtered as spam status belongs to whoever owns your anti-spam and quarantine policies. A Failed status for an external recipient usually needs the mail flow owner and the remote system’s own logs. A Pending status that does not clear should be raised with Microsoft support.
Sometimes the trace points at the recipient’s own account rather than the message, as it might for a new starter. In that case, check how their licence is assigned. Group-based licensing in Microsoft Entra ID explains one common way.
Finally, check the current limits on the Microsoft Learn message trace page before you rely on them. The 90-day window, the 10-day query size and the result caps all come from that page, so it is the one to trust if a number here differs.
#Worth remembering
- A message trace shows what Exchange Online did with a message, from receipt to hand-off. It is read-only.
- Start with the sender, the recipient and a narrow time range. Widen only when you must.
- Delivered means the message reached a mailbox, not that the user saw it.
- Use the Network Message ID with
-MessageTraceIdfor one specific message. - Quarantined, Failed and Pending each send you to a different owner, so read the status before you escalate.
- End every session with
Disconnect-ExchangeOnline, and delete any export you no longer need.
About this page
Credited to
Dates
Published
Sources
Corrections
No corrections are listed for this page. Some review sweeps corrected pages without naming each one; those are in the corrections log.
Found this useful? Follow KBY for more like it.
Recommended reading
More from KBY that goes with this article.

Education ITSpotting a phishing email at school, and reporting it even after you have clicked
8 min read
Related articles
Microsoft 365 Administration
Creating a Shared Mailbox in Microsoft 365 and Granting Full Access and Send As
Create a shared mailbox in Microsoft 365, grant Full Access and Send As, check both with Get-MailboxPermission and fix automapping and send errors.
ReadSystems Engineering
Find Scheduled Tasks That Run as Privileged or Stored-Password Accounts on Windows Servers with PowerShell
A read-only PowerShell audit that finds scheduled tasks running as domain admins or with stored passwords, and how to act on them safely.
ReadConsumer tech
DWP Takes Online Services Offline After Cyber Incident: What Claimants Should Do
DWP now calls it a cyber-attack. Online services were still down on Saturday, payments continue, and no one is sanctioned for missing online tasks.
ReadDiscover more
Graduate Learning
Ops Playbook
Lexicon Definitions
Was this useful?
Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.
Build practical engineering skills.
Receive new lessons, learning paths, practical exercises and early-career guidance.
Comments
Add a thoughtful note on Tracing a Missing Email in Exchange Online with Read-Only Message Trace. Comments are checked for spam and held for moderation before appearing.