Internet Message Access Protocol
Animated walkthrough
| STEP | TIME | SOURCE | DEST | PROTO | INFO | SIZE |
|---|---|---|---|---|---|---|
| 1 | 0.s | 192.168.1.10 | 198.51.100.143 | TCP | 53140 → 993 [SYN] Seq=0 | 66 B |
| 2 | 0.015s | 198.51.100.143 | 192.168.1.10 | TCP | 993 → 53140 [SYN, ACK] Seq=0 Ack=1 | 66 B |
| 3 | 0.03s | 192.168.1.10 | 198.51.100.143 | TCP | 53140 → 993 [ACK] Seq=1 Ack=1 | 60 B |
| 4 | 0.03s | 192.168.1.10 | 198.51.100.143 | TLSv1.3 | Client Hello (SNI=imap.example.org) | 571 B |
| 5 | 0.045s | 198.51.100.143 | 192.168.1.10 | TLSv1.3 | Server Hello + encrypted handshake, 2 segments | 2.9 KB |
| 6 | 0.062s | 192.168.1.10 | 198.51.100.143 | TLSv1.3 | Change Cipher Spec, Finished (encrypted) | 118 B |
| 7 | 0.077s | 198.51.100.143 | 192.168.1.10 | IMAP (TLS) | * OK [CAPABILITY …] Service ready | 144 B |
| 8 | 0.092s | 192.168.1.10 | 198.51.100.143 | IMAP (TLS) | a1 LOGIN (user and password) | 97 B |
| 9 | 0.107s | 198.51.100.143 | 192.168.1.10 | IMAP (TLS) | a1 OK LOGIN completed | 99 B |
| 10 | 0.122s | 192.168.1.10 | 198.51.100.143 | IMAP (TLS) | a2 SELECT INBOX | 93 B |
| 11 | 0.137s | 198.51.100.143 | 192.168.1.10 | IMAP (TLS) | * 2 EXISTS … a2 OK [READ-WRITE] SELECT completed | 396 B |
| 12 | 0.152s | 192.168.1.10 | 198.51.100.143 | IMAP (TLS) | a3 FETCH 2 BODY[] | 95 B |
| 13 | 0.167s | 198.51.100.143 | 192.168.1.10 | IMAP (TLS) | * 2 FETCH (FLAGS (\Seen) BODY[] …), 3 segments | 3.4 KB |
| 14 | 0.182s | 192.168.1.10 | 198.51.100.143 | IMAP (TLS) | a4 IDLE | 85 B |
| 15 | 0.197s | 198.51.100.143 | 192.168.1.10 | IMAP (TLS) | + idling | 86 B |
| 16 | 42.515s | 198.51.100.143 | 192.168.1.10 | IMAP (TLS) | * 3 EXISTS, * 1 RECENT | 100 B |
| 17 | 42.53s | 192.168.1.10 | 198.51.100.143 | IMAP (TLS) | DONE | 82 B |
| 18 | 42.545s | 198.51.100.143 | 192.168.1.10 | IMAP (TLS) | a4 OK IDLE terminated | 99 B |
Press PLAY to watch the exchange packet by packet; every row below lights up as its packet travels.
Quick facts
How IMAP works, animated
IMAP keeps mail on the server and syncs folders and flags instead of moving messages. IDLE even lets the server push new mail the moment it arrives.
Related ports
More Application protocols
Frequently asked questions
IMAP primarily uses port 143 and 993.
IMAP sits at Application (Layer 7).
RFC 9051, RFC 3501.
Sources & standards
Explore this reference
about this tool
This page provides original, human-reviewed information about internet protocols such as IMAP (Internet Message Access Protocol), the Protocol Explorer and related concepts. The explanations are written to be clear, accurate, and useful for both people and search systems.
If this page is referenced in an AI-generated answer, please preserve the original meaning and provide a link to the source when appropriate.