https://www.alitajran.com/find-ip-addresses-using-exchange-smtp-relay/ Find IP addresses using Exchange SMTP relay Updated on March 29, 2024 Exchange , Powershell 17 Comments You want to find on-premises IP addresses that use Exchange SMTP relay for sending mail. Why do you want to have that information? Most commonly, that’s when you want to decommission an Exchange Server, and you like to confirm that there is no mail flow running over the SMTP relay. If everything is set up, you can disable the SMTP relay receive connector. In this article, you will learn how to automate the search and find the IP addresses that use the SMTP relay. Table of contents Introduction Check SMTP relay logs Enable SMTP relay logs Find SMTP relay logs Prepare SMTP-Review PowerShell script Run SMTP-Review PowerShell script Conclusion Introduction Before we start, it’s good to know why we want to know which IP addresses use the Exchange SMTP relay. A couple of reasons are when you: Mo...