Forum Discussion

Navishkar Sadheo's avatar
Navishkar Sadheo
Iron Contributor
May 14, 2020
Solved

Find receive connectors that can relay email externally - powershell

Hi All   Is there a quick way I can find all receive connectors in my exchange organization that are capable of sending email externally?   Appreciate any advice...
  • HidMov's avatar
    May 14, 2020

    Hi Navishkar Sadheo 

     

    If you want to find which send connectors are open relays, you can try the following:

     

    Get-ReceiveConnector | Get-ADPermission | Where {$_.User -Like '*anon*' -And $_.ExtendedRights -Like 'ms-Exch-SMTP-Accept-Any-Recipient'} | ft Identity, User, ExtendedRights

     

     

Resources