# 110 - POP3

## Introduction

**Port**: 110 (TCP)

The **Post Office Protocol** (POP) is an Internet standard protocol for transferring messages from an e-mail server to an e-mail client.

## Enumeration

With the Nmap scripts, you can retrieve information about the server.

* To include information about: NetBios, DNS and OS build version.

```bash
nmap -n -p 110,995 --script=pop3-ntlm-info <TARGET>
```

* To show which commands the server supports.

```bash
nmap -n -p 110,995 --script=pop3-capabilities <TARGET>
```

Also, you can use the Metasploit module `auxiliary/scanner/pop3/pop3_version` in order to obtain the pop3 version.

## Commands

In this subsection, you will find some useful commands in order to interact with the POP3 service through CLI.

### Login

You can interact with a POP3 services following these steps.

```bash
[telnet <IP> <PORT>] | [nc -nC <IP> <PORT>]
ehlo example.com #Some servers also accept helo in place of ehlo.
USER <USERNAME>
PASS <PASSWORD>
```

### Listing emails

```bash
> list
1 897
2 5136
```

### Read an email

```bash
retr 2 
```

### Delete an email

```bash
dele 2
```


---

# 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://the-pentesting-guide.marmeus.com/active/services/110-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.
