Port 143: IMAP

Port 143 (TCP) is used by IMAP. Internet Message Access Protocol keeps mail on the server and syncs folders. Secure version is 993.

143Port
TCPProtocol
imapIANA service name
EmailCategory

Port range

143 is a well-known (system) port (range 0–1023). On Linux and macOS, binding to it traditionally needs root or the CAP_NET_BIND_SERVICE capability.

Security

Only open port 143 to the hosts that need it. Prefer the encrypted variant of the protocol where one exists.

Open port 143 in a firewall

ufw         sudo ufw allow 143/tcp
iptables    sudo iptables -A INPUT -p tcp --dport 143 -j ACCEPT
firewalld   sudo firewall-cmd --permanent --add-port=143/tcp
Windows     New-NetFirewallRule -DisplayName "IMAP 143" -Direction Inbound -Protocol TCP -LocalPort 143 -Action Allow

Check if port 143 is open

nc -vz example.com 143
Test-NetConnection example.com -Port 143   # PowerShell
sudo ss -tulpn | grep ':143 '   # what is listening locally (Linux)

Other email ports

Frequently asked questions

What is port 143 used for?
IMAP. Internet Message Access Protocol keeps mail on the server and syncs folders. Secure version is 993.
Is port 143 TCP or UDP?
TCP.