SOLVED

Using custom port instead of smtp 25 for hybrid

Copper Contributor

Hello,

      I want to block port 25 completely in on-prem Exchange server ,so can I use port 587 for smtp communication between on-prem and Exchange online ?

1 Reply
best response confirmed by Moataz_shaaban1245 (Copper Contributor)
Solution
Port 587 is meant for client-server communication, server to server email communication (especially cross-forest/Exch-O365) will mandatorily need port 25.
Ref: https://docs.microsoft.com/en-us/Exchange/hybrid-deployment-prerequisites#hybrid-deployment-protocol...

What you can do however is to block the port 25 traffic on your gateway firewall to/fro O365 EOP IP range.
1 best response

Accepted Solutions
best response confirmed by Moataz_shaaban1245 (Copper Contributor)
Solution
Port 587 is meant for client-server communication, server to server email communication (especially cross-forest/Exch-O365) will mandatorily need port 25.
Ref: https://docs.microsoft.com/en-us/Exchange/hybrid-deployment-prerequisites#hybrid-deployment-protocol...

What you can do however is to block the port 25 traffic on your gateway firewall to/fro O365 EOP IP range.

View solution in original post