Creating an anonymous relay

Posted: January 19, 2012 in Exchange 2010, HT, Powershell
Tags: , ,

Here comes the quick and short PS commands to set up an anonymous relay.

New-ReceiveConnector -Name RELAY -usage Custom -Bindings ’10.0.0.1:25′ -fqdn smtprelay.domain.com -RemoteIPRanges 10.0.0.2 -server EXCHANGESERVER -permissiongroups AnonymousUsers

English OS:
Get-ReceiveConnector RELAY | Add-ADPermission -User “NT AUTHORITY\ANONYMOUS LOGON” -ExtendedRights “ms-Exch-SMTP-Accept-Any-Recipient”

German OS:
Get-ReceiveConnector RELAY | Add-ADPermission -User “NT-AUTORITÄT\Anonymous-Anmeldung” -ExtendedRights “ms-Exch-SMTP-Accept-Any-Recipient”

Be sure to edit the bold values to your own environment.
The Bindings’ value you set to the network or server you want to relay.

I recommend to create a DNS entry for this IP, too.

After configuring you have to set your relaying servers’ configuration to this connector.

Cheers,

Chris

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s