Thanks for posting your question in the Microsoft Q&A forum.
According to your description, Microsoft officially provides all the port information for Exchange, please refer to this link:https://learn.microsoft.com/en-us/exchange/plan-and-deploy/deployment-ref/network-ports?view=exchserver-2019
If my answer is helpful to you, please mark it as the answer so that other users can refer to it. Thank you for your support and understanding.