Creating Exchange 2010 Relay for Anonymous
This example uses the New-ReceiveConnector cmdlet to create the Receive connector Anonymous Relay that listens on local IP address 192.168.10.1 on port 25 from a source server at IP address 184.108.40.206
New-ReceiveConnector -Name "Relay Mail" -Usage Custom -PermissionGroups AnonymousUsers -Bindings 192.168.10.1:25 -RemoteIpRanges 220.127.116.11
Use the Shell to grant relay permission to anonymous connections on the new Receive connector
Note: You can’t use the EMC to perform this task.
This example retrieves the specified Receive connector information and pipes the result to the Add-ADPermission cmdlet to grant relay permission to anonymous connections on the new Receive connector.
Get-ReceiveConnector "Relay Mail" | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "Ms-Exch-SMTP-Accept-Any-Recipient"