How SMTP works
SMTP sends email: your mail app submits the message to your provider's server, which looks up the recipient domain's MX record and relays it to their mail server.
Layer: Application (OSI layer 7) · Port: 25 / 587 · Transport: TCP · Format: Text commands · Standard: RFC 5321
SMTP packet flow
- SMTP Client → Mail Server: EHLO laptop / AUTH / MAIL FROM:<you@nanotech-kw.com>
- SMTP Client → Mail Server: RCPT TO:<ali@example.com> DATA …
- SMTP Mail Server → Client: 250 OK queued as 4F2A1
- DNS Mail Server → DNS Resolver: Query MX example.com
- DNS DNS Resolver → Mail Server: MX 10 mx.example.com
- SMTP Mail Server → Recipient MX: Relay: MAIL FROM / RCPT TO / DATA
Other protocols: HTTP · WebSocket · QUIC · IMAP · POP3 · FTP · SMB · WebRTC · SIP · RTSP · RTMP · MQTT · Modbus · PPPoE