Book Image

Microsoft Exchange 2010 PowerShell Cookbook

Book Image

Microsoft Exchange 2010 PowerShell Cookbook

Overview of this book

Table of Contents (22 chapters)
Microsoft Exchange 2010 PowerShell Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Troubleshooting Transport servers


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.

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 [email protected]
  3. To validate SMTP connections, use the Test-SmtpConnectivity cmdlet:

    Test-SmtpConnectivity -Identity HUB2

How it works...

The Test-Mailflow cmdlet sends an e-mail message from a system mailbox on a Mailbox server to another mailbox. If you do not provide a target mailbox server or e-mail address, the message will be sent and delivered to a...