Hi @Roger Roger ,
Welcome to the Microsoft Q&A platform!
To troubleshoot email delivery issues in an Exchange 2016 hybrid environment, you can follow these steps to check the relevant logs and trace the email flow:
- Use the Get-MessageTrackingLog cmdlet to search for the emails. This log will help you trace the path of the email through your Exchange environment.
Get-MessageTrackingLog -Server <YourServerName> -Sender <SenderEmail> -Recipients <RecipientEmail> -Start "12/16/2024 00:00:00" -End "12/17/2024 23:59:59"
This will show you if the email was received by the Exchange server and its subsequent status.
- Check the SMTP protocol logs on your on-premises Exchange server. These logs can provide detailed information about the SMTP transactions between your application and the Exchange server.
The logs are typically located in the C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\Logs\ProtocolLog\SmtpSend directory.
- Since your application is using an internal relay, IIS logs can also be useful. These logs can be found in the C:\inetpub\logs\LogFiles directory.
Look for entries corresponding to the IP address of your application server.
- In a hybrid environment, you should also check the hybrid mail flow logs to ensure that the emails are being correctly routed to Exchange Online. You can use the Get-HybridMailflow cmdlet to check the status of the hybrid mail flow.
By checking these logs, you should be able to determine where the email is getting stuck and take appropriate action to resolve the issue.
Please feel free to contact me for any updates. And if this helps, don't forget to mark it as an answer.
Best,
Jake Zhang