Like the Mailbox and Client Access Server roles, Transport servers also have a couple of cmdlets dedicated to testing the flow of messages to servers running the Mailbox and Hub Transport roles. In this recipe, you'll learn how to use these cmdlets to troubleshoot mail flow and connectivity issues using the Exchange Management Shell.
To test mail flow from one server to another, use the following syntax:
Test-Mailflow -Identity MBX1 -TargetMailboxServer MBX2
You can use the following syntax to test mail flow from a specific server to a mailbox:
Test-Mailflow -Identity MBX1 ` -TargetEmailAddress [email protected]
To validate SMTP connections, use the
Test-SmtpConnectivity
cmdlet:Test-SmtpConnectivity -Identity HUB2