Exchange: send emails externally from a connector


Exchange 2013 Exchange 2016 Exchange 2019 Exchange Online

In this tutorial, I will explain how to configure a receive connector to send emails outside your organization from Exchange.

You have already configured a receive connector on Exchange in order to be able to receive e-mails from applications, copiers or any other devices.

Now you need to send mail to external addresses (gmail.com, outlook.com or any external domains), by default Exchange does not forward mail to domains other than those configured in the ECP.

In order to be able to send messages to the outside from a receive connector in Exchange, it must be configured in Open relay, for this you must add an extended right to the connector (ms-Exch-SMTP-Accept-Any-Recipient ) which will allow all e-mail addresses to be authorized.

This addition of rights is done in PowerShell with Exchange Management Shell.

Here is the command to pass:

Get-ReceiveConnector "SERVER-EXCHANGE-NAME\Connector-Name" | Add-ADPermission –User "NT AUTHORITY\Anonymous Logon" –ExtendedRights "ms-Exch-SMTP-Accept-Any-Recipient"

For the command to work, you must adapt the name of the connector: SERVER-EXCHANGE-NAME\Connector-Name and also the -User parameter which must be adapted according to the installation language of your server, for an installation in French it replace NT AUTHORITY\Anonymous Logon by AUTORITE NT\ANONYMOUS LOGON

If you have several Exchange servers (DAG), you must issue this command for each connector by changing its name.

This configuration, although practical and easy to set up, is not without risk, it is advisable to put at least IP filtering on the connector in order not to authorize all the equipment (especially unknown equipment) to use it, because it could be used to send mass emails (spam) and you could be blacklisted by anti-spam services.

You now know how to configure a receive connector to send emails externally on Exchange.




Leave a Comment