Port 995 (POP3S)
Key facts
- Port
- 995
- Protocols
- TCP
- Range
- System port (Well-Known), 0-1023
- IANA service name
- pop3s
IANA assigns ports in this range to well-known services, under RFC 6335.
About port 995
Port 995 is the port of POP3 over an encrypted connection (POP3S), which email clients use to download messages from a mailbox on the server, over TCP. The connection is encrypted with TLS from the very start, so the username, password, and messages always travel encrypted.
POP3 is defined in RFC 1939, and RFC 8314 recommends port 995 for encrypted mailbox access over POP3. In the IANA port registry, TCP port 995 is registered for the pop3s service.
What port 995 is used for
- Downloading mail over an encrypted connection: the email client downloads new messages to the computer and, depending on the setting, deletes them from the server or leaves a copy there.
- Email client setup: in the incoming mail server settings, choose POP3, port 995, and SSL/TLS security.
- Collecting mail from another mailbox: services that gather mail from several mailboxes connect to port 995 and pull the messages over an encrypted connection.
Port 995 is for reading mail only. Sending mail uses SMTP, on port 465 or port 587.
Port 995 in the firewall
On a mail server that serves users over POP3, open port 995 to incoming traffic. Users download mail from anywhere, so it's usually not possible to limit the port to specific IP addresses.
- UFW:
ufw allow 995/tcp - firewalld:
firewall-cmd --permanent --add-service=pop3s
When all users connect on port 995, you can close port 110 in the firewall. A server that isn't a mail server doesn't need port 995 open.
Risks and security
The connection on port 995 is always encrypted, so protection focuses on the accounts themselves and on the server's encryption settings:
- Use strong, unique passwords for mailboxes.
- Temporarily block addresses that make repeated failed login attempts, for example with fail2ban.
- Set up a valid SSL certificate for the server name clients connect to, so email clients connect without warnings.
- Allow only current TLS versions.
Commands to check and configure
-
ss -tlnp | grep ':995 'Checks whether the POP3 server is listening on port 995.
-
nc -zv mail.example.com 995Checks whether port 995 on the mail server is open and reachable from your computer.
-
openssl s_client -connect mail.example.com:995 -crlfConnects over an encrypted connection and shows the certificate and the POP3 server's greeting line.
-
curl -v --user name@example.com pop3s://mail.example.com/Connects to the mailbox and lists the messages. The password is prompted for separately.
-
ufw allow 995/tcpOpens port 995 to incoming traffic (UFW).
-
firewall-cmd --permanent --add-service=pop3sOpens port 995 to incoming traffic in firewalld. Then run firewall-cmd --reload.
Port 995 in the IANA registry
| Port | Protocol | Service | IANA registry description |
|---|---|---|---|
| 995 | TCP | pop3s | POP3 over TLS protocol |
| 995 | UDP | pop3s | pop3 protocol over TLS/SSL (was spop3) |
Data source: IANA Service Name and Transport Protocol Port Number Registry (opens in a new tab)
Port 995 FAQ
Which security setting do I choose in my email client for port 995?
Choose SSL/TLS. On port 995 the connection is encrypted from the start, so the STARTTLS setting doesn't apply to it. STARTTLS is used on port 110.
What's the difference between port 995 and port 110?
Both ports are used for POP3. On port 110, the connection starts unencrypted and can switch to an encrypted connection, while on port 995 the connection is encrypted from the very first moment. When the server supports both, we recommend choosing port 995.
When should I choose POP3, and when IMAP?
POP3 suits anyone who reads mail on one computer and wants to keep the messages there. IMAP suits anyone who reads mail on several devices, because messages and folders are stored on the server and synced across all of them. Over an encrypted connection, IMAP runs on port 993.
Is port 995 also used to send mail?
No. Port 995 is used only to download mail from the server. Sending is set up separately, in the outgoing mail server (SMTP) settings, on port 465 or 587.