# POP3 (110-995)

<details>

<summary>Protocol Information</summary>

POP3 works differently than [IMAP](https://ivalexev.gitbook.io/rednote/utility/service/imap-143-993). It downloads emails from the server and stores them locally on the device. Once the download is complete, the emails are generally removed from the server unless an option has been set to store them. POP3 does not allow synchronization between devices, so actions taken on one are not reflected on the others. This protocol is suitable for those who prefer to have their emails saved on a single device, perhaps to save server space or to access messages offline without the need for continuous connection.

</details>

## Port

<table data-header-hidden><thead><tr><th width="166">Port</th><th>Description</th></tr></thead><tbody><tr><td><mark style="color:green;"><strong>110</strong></mark><strong> TCP</strong></td><td>POP3 (unencrypted)</td></tr><tr><td><mark style="color:green;"><strong>995</strong></mark><strong> UDP</strong></td><td>POP3 (encrypted TLS/SSL) </td></tr></tbody></table>

## Interact

{% code overflow="wrap" %}

```bash
telnet <IP> 110
nc <IP> 110
```

{% endcode %}

{% code overflow="wrap" %}

```bash
openssl s_client -connect <IP>:pop3s
openssl s_client -connect <IP>:995 -crlf -quiet
```

{% endcode %}

Commands:

```
  USER <USER>        Specifies the user
  PASS <PASS>        Login with password <PASS>
  STAT               List number of messages, total mailbox size
  LIST               List messages and sizes
  RETR <ID>          Show message <ID>
  DELE <ID>          Mark message <ID> for deletion
  RSET               Undo any changes
  QUIT               Logout (expunges messages if no RSET)
  TOP msg n          Show first n lines of message number msg
  CAPA               Get capabilities
```

Or [Connect with Evolution](https://www.youtube.com/watch?v=xelO2CiaSVs).

*If an error indicating “bwrap: Can't create file at ...” is displayed when starting Evolution, use this command to start Evolution:* `export WEBKIT_FORCE_SANDBOX=0 && evolution`
