A robust email, calendaring, and collaboration platform developed by Microsoft, designed for enterprise-level communication and data management.Miscellaneous topics that do not fit into specific categories.
Hi @Sergey
Good day, and thank you for reaching out.
I understand that your goal is to add a proxy layer in front of Exchange to handle authentication attempts, rather than relying solely on Exchange itself.
In this scenario, it is important to consider that IMAPS and SMTPS traffic is protected by TLS encryption. In a typical TCP passthrough configuration, a proxy such as HAProxy does not have visibility into the authentication responses returned by Exchange, as the traffic remains encrypted end-to-end. As a result, the proxy layer cannot reliably detect authentication failures or make blocking decisions based on those responses.
While enabling SSL/TLS termination on the proxy could provide the required visibility, this approach introduces additional complexity and effectively changes the trust boundary of the solution. It can also increase operational overhead, and is not commonly adopted for Exchange IMAP/SMTP deployments.
In contrast, Exchange has full visibility into authentication outcomes and provides comprehensive protocol logging. I recommend leveraging Exchange logs to identify failed authentication attempts and then automating IP blocking at the firewall or gateway layer. This approach achieves the same objective of blocking offending IP addresses while preserving end‑to‑end encryption and minimizing architectural complexity.
Please note that this summary is based on my own findings and may not fully address your concerns. To help you reach your goal more effectively, I recommend engaging with [GitHub Community Forum] for a deeper technical dive or to connect with individuals who have relevant experience and expertise. Some approaches may behave differently or be restricted depending on your specific environment and configuration. These forums include many experienced developers and Microsoft specialists who can assist with troubleshooting and guidance.
Apologies for redirecting you to the relevant development support team. At this time, I do not have access to your specific tenant configuration, and my testing environment is limited. I also do not have visibility into third‑party products or access to developer‑level insights, so I’m unable to provide a definitive answer from that perspective. Accordingly, my guidance is based solely on available Microsoft documentation and products. That said, I will do my best to provide additional insight where possible.
I hope this helps.
If you have any additional concerns, feel free to comment below. I would be more than happy to assist.
Note: Please follow the steps in [our documentation] to enable e-mail notifications if you want to receive the related email notification for this thread.