28 January 2010

How to Allow Anonymous Relay on a Exchange 2007 or Exchange 2010

If for whatever reason you have to allow Anonymous Relay on a Exchange 2007 or Exchange 2010 the simple and faster way to do that is by using PowerShell.

There are 2 command should be run at Powersell console:

1. To create a Receive connector. Here is a command:
New-ReceiveConnector -Name "Anonymous Relay" -Usage Custom -PermissionGroups AnonymousUsers -Bindings 192.168.1.35:25 -RemoteIpRanges 192.168.10.5

Note:
In this example 192.168.1.35:25 is IP of Exchange server. 192.168.10.5 is IP of Remote Mail Server
2. The second command adds to ANONYMOUS user permissions to use just created connector. Here is a command:

Get-ReceiveConnector "Anonymous Relay" | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "Ms-Exch-SMTP-Accept-Any-Recipient"



Follow ITstuff.ca on Twitter

If you enjoyed this post consider subscribing via rssrectangle ITStuff.ca | Tips and Tricks for IT Staff or ITStuff.ca | Tips and Tricks for IT Staff Email


Bookmark and Share ITStuff.ca

No comments:

Post a Comment