POP3 and IMAP ports

POP3 Ports 110 and 995, IMAP Ports 143 and 993

For incoming mail, use IMAP over TLS on port 993 (IMAPS) or POP3 over TLS on port 995 (POP3S). The plain ports, 110 for POP3 and 143 for IMAP, only protect your password if the client upgrades the connection with STARTTLS. RFC 8314 recommends the implicit TLS ports 993 and 995. Sending mail is a separate protocol: SMTP on port 587 or 465.

IMAPS (recommended)
993 / TCP
POP3S
995 / TCP
IMAP
143 / TCP
POP3
110 / TCP
Sending (SMTP)
587 or 465
Check port 993 on a server

Last updated:

Incoming mail ports compared

In email client settings, 993 and 995 usually appear as SSL/TLS, while 143 and 110 appear as STARTTLS or None. Choose SSL/TLS on 993 or 995 whenever the provider supports it.

POP3 and IMAP port numbers
PortProtocolEncryptionStatus
110POP3None, or STARTTLS upgradeLegacy; avoid without STARTTLS
995POP3STLS from the startRecommended for POP3
143IMAPNone, or STARTTLS upgradeLegacy; avoid without STARTTLS
993IMAPSTLS from the startRecommended for IMAP

POP3 vs IMAP: which should you use?

IMAP is the right choice for almost everyone using a phone and a computer. POP3 still makes sense for archiving a mailbox to a single machine or for very small server quotas.

Differences between POP3 and IMAP
POP3IMAP
Where mail livesDownloaded to one device, often deleted from the serverStays on the server
Multiple devicesPoor: each device sees a different stateGood: folders, read status and flags sync everywhere
Offline accessFull copy on the deviceCached copies, depending on the client
Server storageLowGrows with your mailbox

Incoming server settings for popular providers

Gmail requires an app password or OAuth 2.0 for third-party clients, and Microsoft 365 has turned off basic (password) authentication for IMAP and POP in Exchange Online, so clients must sign in with OAuth 2.0.

IMAP and POP3 servers
ProviderIMAP (993)POP3 (995)
Gmail / Google Workspaceimap.gmail.compop.gmail.com
Outlook.com / Microsoft 365outlook.office365.comoutlook.office365.com
Yahoo Mailimap.mail.yahoo.compop.mail.yahoo.com
iCloud Mailimap.mail.me.comNot supported
Zoho Mailimap.zoho.compop.zoho.com

How to test IMAP and POP3 ports

The open port checker shows whether a mail server's port is reachable from the internet. The port scanner Mail preset checks 110, 143, 993 and 995 together and shows the server greeting on the plain ports. To see the greeting on the TLS ports, use OpenSSL:

IMAPS on 993

A working server replies with a line starting with * OK.

openssl s_client -connect imap.gmail.com:993 -crlf -quiet

POP3S on 995

A working server replies with a line starting with +OK.

openssl s_client -connect pop.gmail.com:995 -crlf -quiet

Windows PowerShell (reachability only)

Test-NetConnection imap.gmail.com -Port 993

Opening IMAP and POP3 on your own mail server

  • You only need to open these ports if you run a mail server. Email clients connect outward and need no inbound ports or router configuration.
  • Open 993 (and 995 if you offer POP3), for example sudo ufw allow 993,995/tcp.
  • Close 143 and 110, or require STARTTLS on them. In Dovecot, set ssl = required so passwords are never sent in clear text.
  • Use a certificate that matches the host name users configure, and renew it automatically.
  • Users send mail through SMTP; see SMTP ports 25, 465 and 587.

Common incoming mail connection errors

IMAP and POP3 errors and fixes
ErrorMeaningFix
Connection timed outA firewall blocks the port.Check the port number and outbound firewall; try 993 instead of 143.
Connection refusedNothing listens on that port.Check the server name and that the service is enabled.
Certificate does not match hostThe client uses a different name than the certificate.Use the exact server name from your provider.
Authentication failedWrong password, app password required, or basic auth disabled.Use an app password or switch the client to OAuth 2.0.

POP3 and IMAP port FAQ

What port is IMAPS?

IMAPS uses TCP port 993. Plain IMAP uses 143.

Is POP3 port 110 or 995?

110 is unencrypted POP3 (or STARTTLS); 995 is POP3 over TLS and is the recommended choice.

Is port 993 SSL or TLS?

Port 993 uses implicit TLS (often labelled SSL/TLS in clients): encryption starts as soon as the connection opens.

Should I use POP3 or IMAP?

Use IMAP if you read mail on more than one device, because it keeps everything in sync. Use POP3 only to download mail to a single device.

Do I need to open port 993 on my router?

No, not to read email. Clients make outgoing connections. You only open 993 or 995 if you host a mail server yourself.

Do IMAP and POP3 use TCP or UDP?

Both use TCP only.

References