Book Image

Microsoft Exchange Server Powershell Cookbook (Update)

Book Image

Microsoft Exchange Server Powershell Cookbook (Update)

Overview of this book

Table of Contents (21 chapters)
Microsoft Exchange Server PowerShell Cookbook Third Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Allowing application servers to relay mail


When you deploy Exchange 2013, 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 CAS or Mailbox 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 CAS1 `
-PermissionGroups ExchangeServers `
-AuthMechanism TLS, ExternalAuthoritative

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