How to run a mail trace in office 365
Running a mail trace in Office 365 can help you troubleshoot email delivery issues and identify the path an email took from the sender to the recipient. Here's how to do it:
Method 1: Using the Office 365 Admin Center
- Sign in to the Office 365 Admin Center with your admin credentials.
- Click on Show all in the top navigation menu.
- Click on Mail.
- Click on Mail flow.
- Click on Mail trace.
- Enter the email address or the message ID of the email you want to trace.
- Click Search.
- The mail trace results will display the path the email took, including any errors or issues that occurred during delivery.
Method 2: Using PowerShell
- Open PowerShell and connect to your Office 365 tenant using the following command:
Connect-ExchangeOnline -UserPrincipalName <your_admin_email> -ShowProgress $true
- Run the following command to start the mail trace:
Get-MailTrace -Identity <email_address> -IncludeReport
- Replace
<email_address>
with the email address of the email you want to trace. - The command will return a report that includes the path the email took, including any errors or issues that occurred during delivery.
Method 3: Using the Exchange Online PowerShell module
- Install the Exchange Online PowerShell module if you haven't already:
Install-Module -Name ExchangeOnline
- Import the module:
Import-Module -Name ExchangeOnline
- Run the following command to start the mail trace:
Get-MailTrace -Identity <email_address> -IncludeReport
- Replace
<email_address>
with the email address of the email you want to trace. - The command will return a report that includes the path the email took, including any errors or issues that occurred during delivery.
Note: The mail trace feature is only available for Office 365 tenants that have a minimum of 50 users. If you have a smaller tenant, you may not have access to this feature.