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.
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
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...