Forum Discussion
Find receive connectors that can relay email externally - powershell
- May 14, 2020
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
Hi again...
Quick one....was wondering is this the only and most accurate way to determine whether a connector can relay email externally.
The reason I ask is that I ran that command you suggested and it returned my connectors that are external relays but then I found another system that was connecting to another connector (not part of the list returned by your command) which I thought was not capable of relaying email outside but it turns out it can. Hence I am confused.
This is the best way as far as I am aware, but obviously this has missed a connector. I can run through my notes and see if I can find something more accurate.
Thanks,
Mark
- Navishkar SadheoMay 21, 2020Iron Contributor
- HidMovMay 21, 2020Iron Contributor
Nothing in my notes I'm afraid - will try to dig deeper into it at some point but I'm pretty smashed at the moment.