# POP3

## **Introduction**

> * There are 3 different versions of POP, but POP3 is the mostly used one.
> * POP3 runs on TCP ports 110(unencrypted) and 995(encrypted) by default.
> * Post Office Protocol (POP) is a protocol that extracts and retrieves email from a remote mail server for access by the host machine.
> * POP3 provides users the ability to fetch and receive email

***

## **POP3 Basic Interaction**

| Command                                                 | Description                        |
| ------------------------------------------------------- | ---------------------------------- |
| openssl s\_client -connect \<FQDN/IP>:pop3s             | Connect to the POP3s service.      |
| hydra -L users.txt -p 'Company01!' -f 10.10.110.20 pop3 | Login Bruteforce with Hydra (POP3) |

***

## **POP3 Commands**

| Command       | Description                                                 |
| ------------- | ----------------------------------------------------------- |
| USER username | Identifies the user.                                        |
| PASS password | Authentication of the user using its password.              |
| STAT          | Requests the number of saved emails from the server.        |
| LIST          | Requests from the server the number and size of all emails. |
| RETR id       | Requests the server to deliver the requested email by ID.   |
| DELE id       | Requests the server to delete the requested email by ID.    |
| CAPA          | Requests the server to display the server capabilities.     |
| RSET          | Requests the server to reset the transmitted information.   |
| QUIT          | Closes the connection with the POP3 server.                 |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://notes.sfoffo.com/protocols-and-services/pop3.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
