Check if an SMTP port is open on a server

To check if a specific port is open on a server, you need to run a telnet command in your system console as not all hosting services might support it. This is useful if you want to check the port’s availability before integrating it with your email service or if you are trying to configure SMTP on your website or app and get an error message stating that the connection was refused.

Access your system console

To run a telnet command, you first need to access your system console:

Windows Linux macOS
  1. Press Windows+R keys together.
  2. On the Run window, enter cmd and click OK (or press Ctrl+Shift+Enter to run it as administrator).
  3. The Windows command prompt window appears.

Use a Telnet command to check the connection

To check the connection with the SMTP port, use the following telnet command:

  1. Write down telnet smtp-relay.brevo.com ### in your console and make sure to replace ### with the port number you're trying to connect to, which is either 587, 2525, or 465.
  2. If the SMTP port is not blocked, a blank screen or the 220 response appears.
  3. If the Unable to connect or Connection refused message appears, it means that the port is blocked. In this case, we recommend you try using one of our other SMTP ports or contact our support team with a screenshot of the message you got.

⏩ What's next?

🤔 Have a question?

If you have a question, feel free to contact our support team by creating a ticket from your account. If you don't have an account yet, you can contact us here.

If you’re looking for help with a project using Brevo, we can match you with the right certified Brevo expert partner.

💬 Was this article helpful?

12 out of 32 found this helpful