Free tech learning for everyone, from basics to pro

Port 143: IMAP (Internet Message Access Protocol)

What port 143 (TCP) does, the security risks of leaving it open, and how to secure and test it.

Port143
TransportTCP
ServiceInternet Message Access Protocol (IMAP)
EncryptedOptional (STARTTLS)

What is port 143?

IMAP lets email programs read mail that stays on the server, so the same mailbox looks the same on every device.

Common uses

  • Email clients such as Outlook, Thunderbird and phone mail apps

Security risks

  • Plain-text logins when TLS is not enforced
  • Password spraying against mailboxes

How to secure port 143

  • Use IMAPS on port 993
  • Require TLS and disable plain-text authentication
  • Enable multi-factor authentication and modern authentication

How to check if port 143 is open

WhereCommand
Scan from another machinenmap -p 143 <host>
Windows (PowerShell)Test-NetConnection <host> -Port 143
Linux (what is listening)sudo ss -tulpn | grep :143
Windows (what is listening)netstat -ano | findstr :143

Only scan systems you own or have permission to test.

Example: block it at the internet edge (Cisco)

For a service that should stay inside your network, deny it on the internet-facing interface. Put the rule before any broader permit statements:

ip access-list extended INTERNET-IN
 remark Block IMAP from the internet
 deny   tcp any any eq 143
 permit ip any any
!
interface GigabitEthernet0/0
 ip access-group INTERNET-IN in

In a real network the final line would be your normal inbound policy, not "permit ip any any". Build and check rules with the ACL builder.

Related ports

Frequently asked questions

What is port 143 used for?

Port 143 (TCP) is used by Internet Message Access Protocol (IMAP). IMAP lets email programs read mail that stays on the server, so the same mailbox looks the same on every device.

Is it safe to open port 143?

Only if the service needs to be reached and is configured securely. Use IMAPS on port 993.

How do I check if port 143 is open?

From another computer, run nmap -p 143 followed by the host address. On the server itself, ss -tulpn on Linux or netstat -ano on Windows shows whether anything is listening on 143.

Learn more: TCP, UDP and ports explained and firewall basics.

Get free updates by email

New notes, tools, CCNA and Security+ tips and important security news from FM TecHub, explained simply. Free, about twice a month. Unsubscribe anytime; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesup

Free · no spam · past emails · powered by Buttondown