Skip to main content

Port Details

Port
143
Transport
TCP
Service
IMAP
IANA service name
imap
Range
System port (0-1023)
Related ports

Security Exposure

A session on port 143 starts unencrypted, so credentials are exposed unless STARTTLS is negotiated before login. Basic password authentication over IMAP makes credentials easier to capture, which led Microsoft to remove Basic authentication for IMAP and POP in Exchange Online. MITRE ATT&CK notes that password spraying also targets externally facing email applications.

Hardening

  • +Prefer implicit TLS on port 993, as RFC 8314 recommends, and close port 143 if no client needs it.
  • +If port 143 stays open, advertise LOGINDISABLED until STARTTLS completes, as RFC 9051 requires implementations to support.
  • +Use OAuth 2.0 or other modern authentication instead of plain passwords where supported.
  • +Rate-limit or lock out repeated login failures.

Monitoring

Log IMAP logins with source address and authentication method. Alert on logins made without TLS and on many failed logins spread across different accounts.

Tools for Auditing and Monitoring IMAP

Hydra

Open Source
Password Cracking

Parallelized network login auditing tool that tests dozens of remote authentication protocols including SSH, SMB, RDP, HTTP, and database services.

LicenseAGPL-3.0-only with OpenSSL exception
PlatformLinux, macOS, Windows, BSD, Solaris

Nmap

Free / Commercial
Penetration Testing Tools

Network discovery scanner and port auditor for discovering live hosts, open ports, running services, and OS fingerprints.

LicenseNPSL-0.95 (Nmap Public Source License, not OSI-approved)
PlatformLinux, macOS, Windows

Zeek

Open Source
Network Monitoring Tools

Network security monitoring framework that translates raw packet traffic into structured transaction logs and network events.

LicenseBSD-3-Clause
PlatformLinux, FreeBSD, macOS, OpenBSD

Frequently Asked Questions

What is the difference between port 143 and port 993?→

Port 143 is the cleartext IMAP port, where TLS can be added with STARTTLS. Port 993 starts TLS immediately (implicit TLS), which RFC 8314 recommends for mail access.

Is IMAP TCP or UDP?→

IMAP uses TCP. IANA registers port 143 for TCP only and marks UDP 143 as reserved.

Sources

Port assignments from the IANA Service Name and Transport Protocol Port Number Registry. Services can be configured to run on any port, so traffic on port 143 is not guaranteed to be IMAP. Exploited-in-the-wild data from the CISA KEV catalog (CC0).