Tech Tip: Change your server's SMTP port

There are a few situations in which you might need to change the default port for a known service such as SMTP. For example, you might run antivirus software that requires a server to listen for SMTP traffic on a port other than 25.

If you need to change your SMTP port or another service port, follow these steps:

  1. Using Notepad or any text editor, open the Services file in Winnt\System32\Drivers\Etc.
  2. Comment out the following line by placing a pound sign [#] in the first position:
    smtp               25/tcp    mail
  3. Create a new line for SMTP specifying the new port number, as shown below:
    smtp               2500/tcp    mail
  4. Save and close the Services file.
  5. Reboot the server.

The system will now use the port you specified in the Services file for SMTP. While our example changes SMTP to port 2500, the port you use depends on the requirements of your software vendor, which should provide you with the required port number for its application.

Editor's Picks

Free Newsletters, In your Inbox