Creating a connector in Exchange Online with port other than 25

%3CLINGO-SUB%20id%3D%22lingo-sub-303188%22%20slang%3D%22en-US%22%3ECreating%20a%20connector%20in%20Exchange%20Online%20with%20port%20other%20than%2025%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-303188%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20would%20like%20to%20create%20a%20connector%20in%20Office%20365%20Exchange%20Online%20that%20will%20redirect%20emails%20that%20are%20sent%20to%20a%20pre-defined%20domain%20to%20a%20specific%20IP%20address%20and%20specific%20port.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20my%20on-premise%20Exchange%20server%20I%20did%20it%20using%20a%20power%20shell%20command%20since%20the%20port%20number%20is%20not%20exposed%20to%20the%20Exchange%20server%E2%80%99s%20GUI%2C%20so%20the%20default%20port%20is%2025.%20For%20example%2C%20I%20would%20like%20emails%20that%20are%20sent%20by%20the%20users%20to%20XYZ.COM%20domain%20to%20be%20sent%20to%20IP%20address%20212.44.1.1%20port%2030001.%20The%20power%20shell%20command%20I%20used%20is%20the%20following%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENew-SendConnector%20-Name%20SpecialConnector%20-AddressSpaces%20%22SMTP%3A*.XYZ.COM%22%20-Custom%20-DnsRoutingEnabled%20%24false%20-SmartHosts%20212.44.1.1%20-SourceTransportServer%20%3CMY%20exchange%3D%22%22%20server%3D%22%22%20ip%3D%22%22%20address%3D%22%22%3E%20-Port%2030001%3C%2FMY%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20worked%20fine.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20the%20same%20be%20done%20in%20Exchange%20Online%3F%20If%20I%E2%80%99m%20not%20mistaken%20(and%20maybe%20I%20am)%20the%20port%20number%20is%20not%20exposed%20to%20the%20Exchange%20Online%E2%80%99s%20GUI%2C%20so%20how%20can%20I%20change%20it%20anyway%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-303188%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

Hi,

I would like to create a connector in Office 365 Exchange Online that will redirect emails that are sent to a pre-defined domain to a specific IP address and specific port.

 

In my on-premise Exchange server I did it using a power shell command since the port number is not exposed to the Exchange server’s GUI, so the default port is 25. For example, I would like emails that are sent by the users to XYZ.COM domain to be sent to IP address 212.44.1.1 port 30001. The power shell command I used is the following:

 

New-SendConnector -Name SpecialConnector -AddressSpaces "SMTP:*.XYZ.COM" -Custom -DnsRoutingEnabled $false -SmartHosts 212.44.1.1 -SourceTransportServer <My Exchange server IP address> -Port 30001

 

This worked fine.

 

Can the same be done in Exchange Online? If I’m not mistaken (and maybe I am) the port number is not exposed to the Exchange Online’s GUI, so how can I change it anyway?

 

Thanks!

 

0 Replies