JAEN

Microsoft 365

Get-MessageTrace

SafeTrace mail flow (legacy)

Get-MessageTrace -SenderAddress <addr>

The legacy cmdlet for tracing message delivery. Deprecated since September 2025 — move to Get-MessageTraceV2. Kept here to help read existing scripts.

Examples

  • Get-MessageTrace -RecipientAddress [email protected] -StartDate (Get-Date).AddDays(-1) -EndDate (Get-Date)Trace last 24h of inbound

Syntax

Get-MessageTrace -StartDate <d> -EndDate <d> [-RecipientAddress]

Before you run it

Read-only.

Used when you see

Mail not arriving (M365)
2
Trace the deliverySet addresses and time range
See the whole flow →
Checking anti-spoofing (SPF/DKIM)
3
Confirm verdicts with message trace
See the whole flow →
Mail vanishes in M365
1
Trace the message's delivery verdict
See the whole flow →

Related commands

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store