> For the complete documentation index, see [llms.txt](https://p0db0t.gitbook.io/pentest/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://p0db0t.gitbook.io/pentest/tcp/143-993-imap.md).

# 143, 993 ) IMAP

By default, the IMAP protocol works on two ports:

* **Port 143** - this is the default IMAP non-encrypted port
* **Port 993** - this is the port you need to use if you want to connect using IMAP securely (SSL)

### Enumerations

* General

```bash
## ------------------| Connect to the server
### 143
telnet <IP> 143
ncat --crlf --verbose <IP> 143
openssl s_client -connect <IP>:143 -crlf -quiet -starttls imap
### 993 (SSL)
ncat --ssl <IP> 993
openssl s_client -connect <IP>:993 -quiet

## ------------------| Authenticating to IMAP
ANYTHING001 login <Username> <Password> 
```
