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

Managing connectors


Exchange 2010 uses both send and receive connectors to transmit and accept messages from other servers. These connectors can be managed from within the Exchange Management Console (EMC), but the addition, configuration, and removal can also be completely managed from the Exchange Management Shell. In this recipe, we'll take a look at the various cmdlets that can be used to manage send and receive connectors.

How to do it...

  1. To create a Send connector, use the New-SendConnector cmdlet:

    New-SendConnector -Name Internet `
    -Usage Internet `
    -AddressSpaces 'SMTP:*;1' `
    -IsScopedConnector $false `
    -DNSRoutingEnabled $false `
    -SmartHosts smtp.contoso.com `
    -SmartHostAuthMechanism None `
    -UseExternalDNSServersEnabled $false `
    -SourceTransportServers hub1
  2. Receive connectors can be created on each transport server using the New-ReceiveConnector cmdlet:

    New-ReceiveConnector -Name 'Inbound from DMZ' `
    -Usage 'Custom' `
    -Bindings '192.168.1.245:25' `
    -Fqdn mail.contoso.com `
    -RemoteIPRanges...