How to configure an internal relay connector in Exchange 2013
Go to the webpage of the exchange management page (https://exchangeserver/ecp)
Go to the Mail flow > Receive Connectors > + for add a new connector.
Enter a name for the connector
Select role (Hub Transport) and type (Custom) click on Next
Additional note. If you want to relay outside your organization than you need to select Frontend Transport role instead of the Hub Transport role. (Information from the command’s below)
Leave the setting below unchanged.
Remove the IP address which are shown in the picture below.
You get an error that the field is required. (click on the + to add a new range)
Enter a single IP address or a local LAN address which is allowed to email via the exchange server.
The remote network settings will show the list like below.
When clicked on finished. You have to edit the relay connector and go to security tab.
Select the option “Anonymous users”
Click on Save..
now you have to open a powershell CLI of exchange on the exchange server ( with administrative rights )
Get-ReceiveConnector “Receive Connector Name” | Add-ADPermission -User “NT AUTHORITY\ANONYMOUS LOGON” -ExtendedRights “Ms-Exch-SMTP-Accept-Any-Recipient”
(Now you should be able to send a email message form another server or application located on another server)
To test your settings from an other server you can use QuickMail: https://www.freddejonge.nl/files/QuickMail.zip