Interactive Session: How SMTP Works
Step through the packet exchange sequence between nodes.
Interactive Execution Sandbox
Interact with a live or clearly-labelled simulated instance of SMTP.
Threat Model & Attack Simulation
How this protocol is attacked in practice, what defenders can see, and which control stops it.
Threat model & attack simulation
SimulatedDefensive education. Every step runs in this page; no traffic is generated or sent.
Sender spoofing and open relay
Feature abuseA misconfigured mail server relays mail for anyone or accepts a forged sender identity.
Probe for relay
The attacker tests whether the server forwards mail to an external domain.
Relay attempts and unusual RCPT TO domains.
Phishing delivery and reputational damage.
Defences that matter
- Require authentication for submission
- SPF, DKIM and DMARC enforcement
- Outbound rate limits and monitoring
This is a conceptual model for defenders, not an exploit toolkit. It contains no payloads, tooling or instructions for attacking systems you do not own.
Protocol Specification & Architecture
Key characteristics, real-world deployment patterns, and trade-offs.
Core Technical Features
- Text-based command/response protocol (HELO, MAIL FROM, RCPT TO, DATA)
- Port 25 (MTA-to-MTA relay) and Port 587 (Client email submission with STARTTLS)
- MIME extension support for attachments, HTML body, and Unicode
- DKIM, SPF, and DMARC authentication integration
Real-World Use Cases
- Sending transactional emails (password resets, notifications)
- Inter-server email routing (Gmail to Outlook)
Advantages & Strengths
- Universal standard for all worldwide email transport
Limitations & Vulnerabilities
- Inherently lacks sender verification without SPF/DKIM/DMARC, enabling spam spoofing