Skip to content
Technology for businesses since 2008

Help center · Email

Email ports and protocols: SMTP, IMAP and POP3 explained

To set up an email account in a program or app, you need three pieces of information: the protocol (how the message is received or sent), the server and the port. SMTP is used for sending, and IMAP and POP3 are used for receiving. The most common ports are 587 or 465 for sending, 993 for IMAP and 995 for POP3, all with encrypted connections.

The server address for your account isn’t in this article: it depends on your hosting provider. Use the one in cPanel, under Email Accounts, with the Connect Devices button next to the account, which shows the correct details for that account.

What each protocol does

Protocol Function Note
SMTP Sending messages Requires the account’s username and password
IMAP Receiving, keeping messages on the server Syncs your phone, computer and webmail
POP3 Receiving, downloading messages to the device May remove them from the server; each device keeps its own set

For most people, IMAP is the best choice. The details of the difference are covered in the difference between POP3 and IMAP.

Common ports

Use Port Security
Sending (SMTP) 465 SSL/TLS
Sending (SMTP) 587 STARTTLS
Receiving (IMAP) 993 SSL/TLS
Receiving (IMAP) 143 No encryption or STARTTLS
Receiving (POP3) 995 SSL/TLS
Receiving (POP3) 110 No encryption or STARTTLS

Always prefer encrypted ports. Not every server accepts every port: confirm the ports for your account under Connect Devices.

SSL/TLS or STARTTLS?

Both protect the connection. With SSL/TLS, the connection is encrypted from the start (ports 465, 993, 995). With STARTTLS, the connection starts unencrypted and switches to encrypted early on (port 587). Email programs usually ask for one of the two; choose the one that matches the port.

What to enter in your email program

  • Username: the full email address.
  • Password: the account’s password.
  • Incoming and outgoing servers: the ones shown under Connect Devices.
  • Authentication: turned on for sending as well.

Step-by-step guides by program: Outlook, Android, iPhone and Thunderbird.

When it won’t connect

Check, in this order: the full email address as the username, the password (it may have been changed recently), the port and the security type. You can also see how to fix email access problems.

Frequently asked questions

Which port should I use for sending?

Port 587 with STARTTLS or port 465 with SSL/TLS, depending on your account’s configuration. Check under Connect Devices.

Can I use IMAP on my phone and POP3 on my computer?

You can, but POP3 can download and remove messages from the server, so your phone will no longer see them. Using IMAP everywhere avoids this confusion.

Is the server address the same as my domain?

It depends on your hosting provider. Use what cPanel shows for your account.

Why does sending fail when receiving works?

Usually the program doesn’t have authentication turned on for the outgoing server, or the sending port is wrong.

More on Email

See all →

Help center

Looking for something else?

See all tutorials, organized by topic.