Prompt
How do I get logs for a specific email message?
Latest observation
Nov 13, 2026
OpenAI APIWeb search: off
It depends a bit on which email system you mean, but in general you want the message trace / mail logs for that specific message.
If you’re using Microsoft 365 / Exchange Online
You can get logs by using Message trace:
- Go to the Microsoft 365 admin center or Exchange admin center.
- Open Mail flow → Message trace.
- Search using one or more of:
- Sender
- Recipient
- Date/time range
- Subject (if available)
- Message ID or Internet Message ID if you have it
- Run the trace and open the result to see:
- delivered / failed / quarantined
- timestamps
- routing details
- spam filtering / policy actions
If you need deeper detail, use Extended message trace or PowerShell:
Get-MessageTraceGet-MessageTraceDetail
If you’re using Google Workspace / Gmail
Use the Email Log Search in the Admin console:
- Go to Admin console
- Navigate to Reporting → Email Log Search
- Search by:
- sender/recipient
- date range
- message ID
- subject
- Review the delivery status and routing events
If you’re checking a mail server directly
Look in the mail server logs:
- Postfix:
/var/log/mail.logor/var/log/maillog - Exim:
/var/log/exim/mainlog - Sendmail:
/var/log/maillog
You’ll usually want the message’s:
- Message-ID
- sender/recipient
- approximate time sent
Then grep the logs for that ID or address.
Best identifier to use
If you have it, the most useful value is the email’s:
- Message-ID header
That is usually more precise than subject line or sender alone.
If you want, I can give you the exact steps for:
- Microsoft 365
- Gmail / Google Workspace
- Postfix / Linux mail server
- Outlook desktop logs