1. Library
  2. Computer Networks
  3. Ports
  4. Common Ports

Updated 30 minutes ago

When you check your email, you're probably using port 993 without knowing it. This port handles IMAPS—Internet Message Access Protocol Secure—the encrypted version of IMAP that protects your email as it crosses the Internet.

Port 993 isn't just "IMAP with encryption added." It represents a different security philosophy than IMAP on port 143, and that difference is why port 993 is the only right choice.

What Is IMAPS?

IMAPS is IMAP wrapped in TLS encryption from the moment a connection begins. The protocol itself remains identical to standard IMAP—you synchronize messages, manage folders, mark emails as read, search your mailbox. The difference is that every byte traveling between your device and the mail server is encrypted: your password, your email content, even which folders you're browsing.

This is called implicit TLS. There's no negotiation, no asking politely, no hoping the server supports it. Either the connection is encrypted, or it doesn't happen.

The STARTTLS Problem

Port 143 takes a different approach called STARTTLS. Your email client connects unencrypted, says hello, then issues a STARTTLS command to upgrade to TLS.

Here's what actually happens:

  1. Your client connects in plaintext
  2. Your client announces itself in plaintext
  3. Your client asks to upgrade to encryption
  4. If the server agrees, encryption begins
  5. Only then does your client send your password

STARTTLS is like locking the door after you've already shouted your password across the room. Those first milliseconds matter.

Worse, an attacker on the network can intercept the STARTTLS command and strip it out. Your client asks for encryption, but the request never reaches the server. The server never responds with encryption, so your client continues in plaintext. This isn't a theoretical attack—it's a three-line script that works on poorly configured clients.

Port 993 eliminates this entire attack surface. The TLS handshake begins immediately—before any email protocol commands are exchanged. No plaintext phase, no upgrade request to intercept, no ambiguity about whether encryption is active.

Why Port 993 Wins

Implicit TLS on port 993 is simpler and safer:

No downgrade attacks. You can't strip encryption from a connection that was never unencrypted.

No configuration mistakes. With STARTTLS, a misconfigured server or client might accidentally allow unencrypted connections. With port 993, encryption is mandatory—there's nothing to misconfigure.

Simpler implementation. Developers don't need to handle the complexity of upgrading mid-connection. The connection is encrypted from the start, following the same patterns used across the web.

Certificate validation happens first. With STARTTLS, clients validate certificates after upgrading, creating opportunities for implementation errors. With port 993, validation happens during the initial handshake.

Just as HTTPS replaced HTTP for web traffic, IMAPS on port 993 represents the proper way to secure email access. The industry has moved from "encryption if available" to "encryption, period."

Certificates Matter

Like any TLS service, IMAPS requires a valid certificate on the mail server—issued by a trusted Certificate Authority, matching the server's hostname, and not expired.

When your email client connects to port 993, it validates the server's certificate before proceeding. If validation fails, most clients refuse to connect. This protects you from man-in-the-middle attacks where someone pretends to be your mail server.

For mail server administrators: get a real certificate. Let's Encrypt provides them free. For end users: if your email client warns about a certificate problem, don't ignore it. That warning might be the only thing standing between you and a compromised connection.

Configuring Your Email Client

Most modern email clients detect IMAPS automatically. Enter your email address, and they'll try port 993, verify the certificate, and establish an encrypted connection.

If you're configuring manually, you need: your email address, password, the incoming mail server hostname, and port 993. Look for options labeled "SSL/TLS" or "Use secure connection"—these indicate implicit TLS.

Some clients still offer STARTTLS as an option. Always select SSL/TLS on port 993. There's no good reason to use STARTTLS when implicit TLS is available.

What IMAPS Protects

IMAPS doesn't just encrypt your email content. It protects:

  • Your credentials — Your password never travels unencrypted
  • Your metadata — Who you're communicating with, when messages arrive, subject lines
  • Your mailbox structure — Even which folders you're browsing stays private

This matters most on public WiFi, where unencrypted email traffic can be trivially captured. IMAPS ensures that checking your email from a coffee shop is as secure as checking it from home.

Frequently Asked Questions About IMAPS

Was this page helpful?

😔
🤨
😃
Port 993: IMAPS (Secure IMAP) • Library • Connected