In Exchange 2019, I recently created a new receive connector in EMS to allow anonymous users to relay. It’s configured only to allow a specific server to send messages. Messages destined for internal users are delivered. However, messages for external email addresses are not delivered. This is the error in the logs: Unable to relay recipient in non-accepted domain.
This hasn’t been working for a while, possibly since we installed Exchange 2019 this past summer. I removed the previous receive connector and created a new one in power shell with no success. These are the commands I used:
New-ReceiveConnector -Name "Relay Out" -TransportRole FrontendTransport -Custom -Bindings 172.x.x.x:25 -RemoteIpRanges 172.x.x.x
Set-ReceiveConnector "Relay Out" -PermissionGroups AnonymousUsers
Get-ADPermission "Relay Out" -User "MS Exchange\Externally Secured Servers" | where {($_.Deny -eq $false) -and ($_.IsInherited -eq $false)} | Format-Table User,ExtendedRights
How do I allow the server to send to anyone?