How to Change the Outgoing SMTP Port in Exchange 2007

Thursday, March 27, 2008
By default, Exchange Server 2007 uses port 25 to send SMTP email using Send Connectors. On occasion you may be required to configure an Exchange Send Connector to use a different port - For example, TCP port 465 is commonly used for SMTP over SSL for secure SMTP communication using the SSL protocol. Configuring the port is not exposed through the Exchange Management Console (EMC), it must be configured from the Exchange Management Shell (EMS).

To get a list of the Send Connector names configured in your organization, run:
Here's the one-liner that configures a Send Connector to use port 465:
Set-SendConnector "Your SMTP Send Connector" -Port 465
If you're using a Microsoft Edge server, you will need to configure this from any server that is not running the Edge role. You will also need to wait for an EdgeSync operation or force it manually:
No services need to be restarted for this change to go into effect.


  1. The instructions for 2003 are not correct. This explains how to change the INCOMING SMTP port.

  2. You're right, Louis. Thanks for catching that.

    Here's how to configure the OUTBOUND SMTP port in Exchange 2003:

    * Open the properties of the SMTP Virtual Server (under server, Protocols, SMTP)
    * Click Outbound Connections on the Delivery tab
    * Change the TCP port

  3. Hello Jeff,

    I'm stuck! A while back I found your item on Exchange 2007 Outgoing SMTP Port change. At that time I followed it and it was done. I'm now configuring another SBS2008 Server and have used:
    Get-SendConnector - this is the result
    [PS] C:\Windows\System32>get-sendconnector

    Identity AddressSpaces Enabled
    -------- ------------- -------
    Windows SBS Internet Send RUMANEK-SBS2008 {smtp:*;1} True

    Using your "one liner"

    Set-SendConnector "Your SMTP Send Connector" -Port 465
    I used: Set-SendConnector "RUMANEK-SBS2008" -Port 33254 (with and without quotes).

    What am I missing, please?


    Athol Cohen

  4. Hi Athol,

    It looks like the name of your send connector is "Windows SBS Internet Send RUMANEK-SBS2008", so try this:

    Set-SendConnector "Windows SBS Internet Send RUMANEK-SBS2008" -Port 33254

    Assuming that port 33254 is correct.

  5. If you only have one SendConnector, you can always do this:

    get-sendconnector | set-sendconnector -port 12345


Thank you for your comment! It is my hope that you find the information here useful. Let others know if this post helped you out, or if you have a comment or further information.