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
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.
| Port | Protocol | Encryption | Status |
|---|---|---|---|
| 110 | POP3 | None, or STARTTLS upgrade | Legacy; avoid without STARTTLS |
| 995 | POP3S | TLS from the start | Recommended for POP3 |
| 143 | IMAP | None, or STARTTLS upgrade | Legacy; avoid without STARTTLS |
| 993 | IMAPS | TLS from the start | Recommended 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.
| POP3 | IMAP | |
|---|---|---|
| Where mail lives | Downloaded to one device, often deleted from the server | Stays on the server |
| Multiple devices | Poor: each device sees a different state | Good: folders, read status and flags sync everywhere |
| Offline access | Full copy on the device | Cached copies, depending on the client |
| Server storage | Low | Grows 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.
| Provider | IMAP (993) | POP3 (995) |
|---|---|---|
| Gmail / Google Workspace | imap.gmail.com | pop.gmail.com |
| Outlook.com / Microsoft 365 | outlook.office365.com | outlook.office365.com |
| Yahoo Mail | imap.mail.yahoo.com | pop.mail.yahoo.com |
| iCloud Mail | imap.mail.me.com | Not supported |
| Zoho Mail | imap.zoho.com | pop.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 -quietPOP3S on 995
A working server replies with a line starting with +OK.
openssl s_client -connect pop.gmail.com:995 -crlf -quietWindows PowerShell (reachability only)
Test-NetConnection imap.gmail.com -Port 993Opening 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 = requiredso 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
| Error | Meaning | Fix |
|---|---|---|
| Connection timed out | A firewall blocks the port. | Check the port number and outbound firewall; try 993 instead of 143. |
| Connection refused | Nothing listens on that port. | Check the server name and that the service is enabled. |
| Certificate does not match host | The client uses a different name than the certificate. | Use the exact server name from your provider. |
| Authentication failed | Wrong 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
- RFC 8314: Cleartext Considered Obsolete — recommends implicit TLS on 993 and 995.
- RFC 1939: Post Office Protocol, Version 3 — the POP3 specification.
- RFC 9051: IMAP4rev2 — the current IMAP specification.