Using custom port instead of smtp 25 for hybrid

New Contributor


      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 (New Contributor)
Port 587 is meant for client-server communication, server to server email communication (especially cross-forest/Exch-O365) will mandatorily need port 25.

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