> For the complete documentation index, see [llms.txt](https://docs.qu35t.pw/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.qu35t.pw/imap-pop3.md).

# IMAP / POP3

## Enumeration

{% tabs %}
{% tab title="Authentication" %}

```bash
curl -k 'imaps://10.10.10.10' --user qu35t:qu35t
```

{% endtab %}

{% tab title="TLS Certificate" %}

```bash
openssl s_client -connect 10.10.10.10:pop3s
```

```bash
openssl s_client -connect 10.10.10.10:imaps
```

{% endtab %}

{% tab title="Read Emails" %}
Displays email UIDs.

```bash
curl -nk 'imaps://10.10.10.10/DEV.QU35T.PW' -X 'UID SEARCH ALL' --user qu35t:qu35t
```

Read an email.

```bash
curl -nk 'imaps://10.10.10.10/DEV.QU35T.PW;UID=1' --user qu35t:qu35t
```

{% endtab %}
{% endtabs %}

## References

* [imapcli](https://github.com/Gentux/imap-cli)
