


Description
When migrating to new version of Exchange Servers you must move your internal SMTP relay endpoints. This can be a challeging tasks as application owners mostly ignore your requests for such changes.
You can use the information provided in the receive connector log files to identify remote clients (MTAs / MTUs) connecting to the legacy infrastructure. The assumption is that protocol logging is enabled. You can easily active protocol logging across all receive connector fo a single server using the following EMS PowerShell one-liner:
Get-ReceiveConnector -Server EX01 | Set-ReceiveConnector -ProtocolLoggingLevel Verbose
The scripts searches the log files for the connection's EHLO response which containes the remote name or remote IP-address of the system connecting to the receive connector.
You can either search
- Legacy Exchange Servers (aka Exchange Server 2010)
- Modern Exchane Servers
- Frontend Transport
or - Backend Transport (aka Hub Transport)
- Frontend Transport
For more information read the readme.md file at Github.
Note
You need to adjust the log file path to suit your IT infrastructure. A next releas will contain a more automatic solution.
Examples
# Search legacy Exchange servers SMTP receive log files for the last 4 days and save search results in a single CSV file.\Get-RemoteSmtpServers.ps1 -Servers SRV01,SRV02 -LegacyExchange -AddDays -4 -ToCsv
Version History
- 1.0, Initial community release
- 1.1, Fixed Issue #2
Links
- Download and follow at Github: https://github.com/Apoc70/Get-RemoteSmtpServers
- Download and like at TechNet Gallery: https://gallery.technet.microsoft.com/Fetch-remote-SMTP-servers-9e72f1a3
Follow
- Twitter @stensitzki