Simple Mail Transfer Protocol
Animated walkthrough
| STEP | TIME | SOURCE | DEST | PROTO | INFO | SIZE |
|---|---|---|---|---|---|---|
| 1 | 0.s | 192.168.1.10 | 203.0.113.25 | TCP | 52900 → 465 [SYN] Seq=0 | 66 B |
| 2 | 0.015s | 203.0.113.25 | 192.168.1.10 | TCP | 465 → 52900 [SYN, ACK] Seq=0 Ack=1 | 66 B |
| 3 | 0.03s | 192.168.1.10 | 203.0.113.25 | TCP | 52900 → 465 [ACK] Seq=1 Ack=1 | 60 B |
| 4 | 0.03s | 192.168.1.10 | 203.0.113.25 | TLSv1.3 | Client Hello (SNI=smtp.example.com) | 571 B |
| 5 | 0.045s | 203.0.113.25 | 192.168.1.10 | TLSv1.3 | Server Hello + encrypted handshake, 2 segments | 2.9 KB |
| 6 | 0.062s | 192.168.1.10 | 203.0.113.25 | TLSv1.3 | Change Cipher Spec, Finished (encrypted) | 118 B |
| 7 | 0.077s | 203.0.113.25 | 192.168.1.10 | SMTP (TLS) | 220 smtp.example.com ESMTP Postfix | 112 B |
| 8 | 0.092s | 192.168.1.10 | 203.0.113.25 | SMTP (TLS) | EHLO alice-laptop | 95 B |
| 9 | 0.107s | 203.0.113.25 | 192.168.1.10 | SMTP (TLS) | 250 capabilities (PIPELINING, SIZE, AUTH …) | 208 B |
| 10 | 0.122s | 192.168.1.10 | 203.0.113.25 | SMTP (TLS) | AUTH PLAIN (credentials) | 109 B |
| 11 | 0.137s | 203.0.113.25 | 192.168.1.10 | SMTP (TLS) | 235 2.7.0 Authentication successful | 113 B |
| 12 | 0.152s | 192.168.1.10 | 203.0.113.25 | SMTP (TLS) | MAIL FROM, RCPT TO, DATA (pipelined) | 140 B |
| 13 | 0.167s | 203.0.113.25 | 192.168.1.10 | SMTP (TLS) | 250 Ok, 250 Ok, 354 End data with <CR><LF>.<CR><LF> | 141 B |
| 14 | 0.182s | 192.168.1.10 | 203.0.113.25 | SMTP (TLS) | Message (316 bytes), then “.” | 395 B |
| 15 | 0.2s | 203.0.113.25 | 192.168.1.10 | SMTP (TLS) | 250 2.0.0 Ok: queued as 4A1F2C3D9E | 112 B |
| 16 | 0.205s | 203.0.113.25 | 8.8.8.8 | DNS | Standard query MX example.org | 82 B |
| 17 | 0.21s | 8.8.8.8 | 203.0.113.25 | DNS | Standard query response MX 10 mx.example.org | 101 B |
| 18 | 0.215s | 203.0.113.25 | 8.8.8.8 | DNS | Standard query A mx.example.org | 85 B |
| 19 | 0.22s | 8.8.8.8 | 203.0.113.25 | DNS | Standard query response A 198.51.100.25 | 101 B |
| 20 | 0.225s | 203.0.113.25 | 198.51.100.25 | TCP | 41522 → 25 [SYN] Seq=0 | 74 B |
| 21 | 0.245s | 198.51.100.25 | 203.0.113.25 | TCP | 25 → 41522 [SYN, ACK] Seq=0 Ack=1 | 74 B |
| 22 | 0.265s | 203.0.113.25 | 198.51.100.25 | TCP | 41522 → 25 [ACK] Seq=1 Ack=1 | 66 B |
| 23 | 0.285s | 198.51.100.25 | 203.0.113.25 | SMTP | 220 mx.example.org ESMTP Postfix | 100 B |
| 24 | 0.305s | 203.0.113.25 | 198.51.100.25 | SMTP | EHLO smtp.example.com | 89 B |
| 25 | 0.325s | 198.51.100.25 | 203.0.113.25 | SMTP | 250 capabilities (PIPELINING, STARTTLS …) | 188 B |
| 26 | 0.345s | 203.0.113.25 | 198.51.100.25 | SMTP | STARTTLS | 76 B |
| 27 | 0.365s | 198.51.100.25 | 203.0.113.25 | SMTP | 220 2.0.0 Ready to start TLS | 96 B |
| 28 | 0.385s | 203.0.113.25 | 198.51.100.25 | TLSv1.3 | Client Hello (SNI=mx.example.org) | 583 B |
| 29 | 0.405s | 198.51.100.25 | 203.0.113.25 | TLSv1.3 | Server Hello + encrypted handshake, 2 segments | 2.9 KB |
| 30 | 0.427s | 203.0.113.25 | 198.51.100.25 | TLSv1.3 | Change Cipher Spec, Finished (encrypted) | 130 B |
| 31 | 0.427s | 203.0.113.25 | 198.51.100.25 | SMTP (TLS) | EHLO smtp.example.com | 111 B |
| 32 | 0.447s | 198.51.100.25 | 203.0.113.25 | SMTP (TLS) | 250 capabilities (PIPELINING, SIZE …) | 196 B |
| 33 | 0.467s | 203.0.113.25 | 198.51.100.25 | SMTP (TLS) | MAIL FROM (SIZE=1316), RCPT TO, DATA | 162 B |
| 34 | 0.487s | 198.51.100.25 | 203.0.113.25 | SMTP (TLS) | 250 Ok, 250 Ok, 354 End data with <CR><LF>.<CR><LF> | 153 B |
| 35 | 0.507s | 203.0.113.25 | 198.51.100.25 | SMTP (TLS) | Message (1,316 bytes), then “.” | 1407 B |
| 36 | 0.538s | 198.51.100.25 | 203.0.113.25 | SMTP (TLS) | 250 2.0.0 Ok: queued as 7B3E9F01A2 | 124 B |
Press PLAY to watch the exchange packet by packet; every row below lights up as its packet travels.
Quick facts
How SMTP works, animated
SMTP moves mail between client and server and between servers: EHLO, MAIL FROM, RCPT TO, DATA. Submission uses port 465 or 587; servers relay to each other on 25.
Related ports
Explore this reference
More Application protocols
Frequently asked questions
SMTP primarily uses port 25 and 465 and 587.
SMTP sits at Application (Layer 7).
RFC 5321, RFC 6409.
Sources & standards
Explore this reference
about this tool
This page provides original, human-reviewed information about internet protocols such as SMTP (Simple Mail Transfer 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.