Setup mail relay in Exchange 2003/2007/2010
At some point in your IT lives you will find yourself in the position to configure mail relay, for a device or a server in your local network. Here’s how it’s done :
Exchange 2003 :
Exchange Console -> Administrative Groups -> first administrative group -> Servers -> Servername -> Protocols -> SMTP -> Right click Properties on the Default SMTP Virtual Server -> Access tab – Relay. Click Add and insert the IP address of the device you that want to relay through your Exchange.
Not easy to guess if you don’t know – It is done through the use of a Receive Connector.
Go to Exchange Management Console – > Hub Transport -> Receive Connectors. Right Click and choose New Receive Connector.
Choose an appropriate name for it. For intended use choose Custom.
For Local Network Settings, leave it as it is. on Specify the FQDN type in your Fully Qualified Domain Name of your server. Example . Exchangeserver.contoso.local
On the Remote Network Settings, delete the entry 0.0.0.0-255.255.255.255 and add on your own. Input the IP address of the device that you want to relay through the Exchange server.
Click New. This will create the Connector but our job is not yet done. Right click the Connector and go to Properties. On the Authentication tab choose Externally Secured. On the permissions tab leave blank.
Open Exchange Shell. Type the following command:
The only change in the command you need to make is to put the real Connector’s name in the brackets.
Get-ReceiveConnector -Identity “Connector’s Name” | Add-ADPermission -User “NT AUTHORITY\ANONYMOUS LOGON” -ExtendedRights “ms-Exch-SMTP-Accept-Any-Recipient”
Depending on specifics around the relay you may need to specify Exchange Users as Permissions group.