Troubleshooting the Transport service

Just like the Mailbox and Client Access services, the Transport service also has a couple of cmdlets dedicated to testing the flow of messages to servers running the Mailbox and Client Access roles. In this recipe, you'll learn how to use these cmdlets to troubleshoot mail flow and connectivity issues using the Exchange Management Shell.

How to do it...

  1. To test mail flow from one server to another, use the following syntax:
    Test-Mailflow -Identity MBX1 -TargetMailboxServer MBX2
    
  2. You can use the following syntax to test mail flow from a specific server to a mailbox:
    Test-Mailflow -Identity MBX1 `
    -TargetEmailAddress dsmith@contoso.com
    
  3. To validate SMTP connections, use the Test-SmtpConnectivity cmdlet:
    Test-SmtpConnectivity ...

Get Microsoft Exchange Server 2013 PowerShell Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.