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

Allowing application servers to relay mail


When you deploy Exchange 2010, you may be required to allow external devices to relay mail off of your servers. This may be an application server or a physical device such as a copier or printer. In order to allow these external systems to anonymously relay mail, you'll need to configure receive connectors on your hub transport servers that support this. In this recipe, we'll take a look at how you can do this with the Exchange Management Shell.

How to do it...

When implementing an unauthenticated relay, it is wise to use a dedicated receive connector for this purpose:

New-ReceiveConnector -Name Relay `
-Usage Custom `
-Bindings '192.168.1.245:25' `
-Fqdn mail.contoso.com `
-RemoteIPRanges 192.168.1.110 `
-Server HUB1 `
-PermissionGroups ExchangeServers `
-AuthMechanism TLS, ExternalAuthoritative

This command creates a receive connector on the hub1 server named Relay. The settings used here specify that the connector listens on the server IP address...