So you need to change ports on those connectors. I will not say those two, because you might be using more than two.
You change Receive connector port by opening the connector properties in Exchange Management Console --> Hub Transport --> RECEIVECONNECTORNAME --> Properties --> Network --> Local IP Addresses (Edit Receive Connector Binding)
Use these local IP Addresses to receive mailUse this list to specify the IP addresses and port numbers on which this Receive connector listens for incoming mail.
Receive mail from remote servers which have these IP addressesUse this list to specify the remote IP address range from which this Receive connector accepts connections.
You change Send Connector port by using PowerShell. Open Exchange Management Shell and type:
Get-SendConnector -Identity "SENDCONNECTORNAME" | fl
Check the port number then type:
In this example I set port 26 as SMTP port for sending messages. Check the change by typingSet-SendConnector -Identity "SENDCONNECTORNAME" -port 26
Get-SendConnector -Identity "SENDCONNECTORNAME" | fl
HUB and EDGE servers are responsible for mail transport, so include all the servers you need in your requirement.