Skip to main content

Change SMTP port 25 in Exchange 2007, 2010

For some reason you might want to change default SMTP port number 25 Exchange 2007 is using. Exchange 2007 uses RECEIVE AND SEND connectors, one for receiving mails and other for sending mails (obviously ;)
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)
Just to clarify what "Local IP Addresses" and "Remote Servers" are (from Exchange 2007 help), because I find it little bit confusing:
Use these local IP Addresses to receive mail
Use 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 addresses
Use 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:
Set-SendConnector -Identity "SENDCONNECTORNAME" -port 26
In this example I set port 26 as SMTP port for sending messages. Check the change by typing

Get-SendConnector -Identity "SENDCONNECTORNAME" | fl
HUB and EDGE servers are responsible for mail transport, so include all the servers you need in your requirement.


  1. Great!!!!!!!!! Thank you. I was pulling my hair out trying to locate where to chnage the outbound port. AT&T blocks outbound 25.

  2. This fixed my SBS 2008 server after my ISP started blocking port's 25. I used port forwarding on the router for the inbound.
    Thank you

  3. thanks a bunch... the commandlet made my evening. A beer in your name

  4. Great job.
    Just changing from 2003 Exchange to 2007 and I really got stucked with this new type of topology.

  5. Hi, thanks for the tips. I need some help on configuring ASSP and Exchange 2007.

    I have a SBS2008 with Exchange on the same server. I have setup my ASSP incoming port to 25, and the send to exchhange port 125. Then exchange reply from port 225 to ASSP receiving port 225 and then send to internet by port 25.

    I'M I ok ??
    what connector do i need in total for outgoing and incoming.

    Thanks in advance

  6. Yes, This is awesome! You saved my A**! Thanks man!

  7. Hi!
    I have sbs 2008.
    And i have problem with smtp port!
    My smtp port is 25 and i will change on 587. Whan i change on 587 i send mail no problem but i can't receive nobody mail. Why?

  8. Hi thanks for your post.
    So far, it looks to be the most promising.
    We are supposed to change our outgoing SMTP port and it is like studying Greek to me.
    Get-SendConnector -Identity "SENDCONNECTORNAME" | fl

    Am I supposed to substitute something for the word SENDCONNECTORNAME? It says it can't find it. I substituteds the server name etc. but it seems to want something else. Any help would be appreciated.

    Thanks again and thanks in advance.

  9. Okay, I figured it out. I had to use the whole long name that was listed in the "Send Connectors" Tab of the Hub Transport under Organizational Configuration in the Exchange Managementn Console. In my case the name was "Windows SBS Internet Send XXSERVER" Once I substituted that, it was all good. Thanks again for your very useful help.

  10. Hi can Anybody help me with how to turn on SSL on in exchange 2007

    1. If by "turn on SSL on in exchange 2007" you mean enable SSL in OWA then check this page or look for similar articles.

  11. This comment has been removed by a blog administrator.


Post a Comment

Popular posts from this blog

The attempt to connect to http://yourserver/PowerShell using "Kerberos" authentication failed

The error you get: The attempt to connect to http://yourserver/PowerShell using "Kerberos" authentication failed: Connecting to remote server failed with the following error message : WinRM cannot process the request. The following error occured while using Kerberos authentication: The network path was not found If you removed Exchange server from the machine and installed it again, you can get following error when you open Exchange Management Console: The following error occurred while attempting to connect to the specified Exchange server '': The attempt to connect to using "Kerberos" authentication failed: Connecting to remote server failed with the following error message : WinRM cannot process the request. The following error occured while using Kerberos authentication: The network path was not found. Possible causes are:   -The user name or password specified are invalid.   -Kerbero

Error "<#5.5.2 smtp;554 5.5.2 Invalid data in message> #SMTP#" when you send attachment in your mail

Some users were receiving error <#5.5.2 smtp;554 5.5.2 Invalid data in message> #SMTP# when they sent message with attachment. The problem is when attached document name is longer than 50 characters . Some Firewalls have header size restriction and that limit blocks this messages to be sent. To correct this, change header limit on affected Firewall or shorten the name of the document you are sending (which is probably not good permanent solution). ****** Update #1 : Default header size limit in Exchange 2007 is 64K . Update #2: It might be the SMTP version problem. Mail is rejected with CONTENT-DISPOSITION error (overly long message header field for CONTENT-DISPOSITION) but not for all SMTP servers (same mail sent through different SMTP servers). If you send mail with attachment that has name longer than 50 characters from Exchange 2007 directly through DNS you may encounter this error, but if you send same mail from Exchange 2007 through smart host (other than Exch