IMAP

Port 143

IMAP Reference

Port 143

Overview

IMAP (Internet Message Access Protocol) is used for retrieving and managing emails. It operates on port 143 and uses tagged commands.

Commands

LOGIN <tag> LOGIN <user> <pass>

Authenticates with the server

A001 LOGIN user password
SELECT <tag> SELECT <mailbox>

Opens a mailbox for access

A002 SELECT INBOX
EXAMINE <tag> EXAMINE <mailbox>

Opens a mailbox in read-only mode

A002 EXAMINE INBOX
LIST <tag> LIST <ref> <pattern>

Lists available mailboxes

A003 LIST "" "*"
FETCH <tag> FETCH <seq> <items>

Retrieves message data

A004 FETCH 1 BODY[]
LOGOUT <tag> LOGOUT

Closes the session

A005 LOGOUT
HELP HELP [command]

Shows available commands

HELP

Tips

  • Type help or ? for command list
  • Type help <command> for details
  • Press Ctrl+L to clear terminal

Further Reading

RFC 3501 - Internet Message Access Protocol ↗