For network and systems engineers, there is real value in understanding how SMTP behaves at protocol level. A lightweight SMTP lab helps validate mail flow, observe server responses, and teach protocol fundamentals in a controlled environment.
This post shows how to build a simple SMTP testing workflow using Telnet for manual interaction and Wireshark for packet inspection.
The objective is to observe a basic SMTP session from connection to message submission, including:
For learning purposes, use a lab or non-production environment. Do not test systems you do not own or administer.
Open a terminal and connect to port 25:
telnet mailserver.example.com 25
Typical banner:
220 mailserver.example.com ESMTP Postfix
The banner confirms the SMTP service is reachable and often reveals the mail software in use.
After connection, type:
EHLO lab.local
Typical response:
250-mailserver.example.com
250-PIPELINING
250-SIZE 52428800
250-STARTTLS
250-AUTH LOGIN PLAIN
250 HELP
This response shows the capabilities the server exposes to the client.
Use a simple SMTP transaction:
MAIL FROM:<[email protected]>
RCPT TO:<[email protected]>
DATA
Subject: SMTP Lab Test
This is a test message from the SMTP lab.
.
QUIT
The single period on a line by itself ends the message body.
Open Wireshark before starting the Telnet session and capture on the correct network interface.
Useful display filters:
smtp
tcp.port == 25
ip.addr == x.x.x.x
Now you can see each SMTP command and server response in order.
This is a good way to teach protocol sequencing and application-layer behavior over TCP.
In enterprise operations, SMTP troubleshooting is still relevant for:
A simple Telnet-based exercise provides clarity that GUI tools often hide.
From a security perspective, this lab helps identify:
That makes it useful not only for learning but also for baseline validation.
A basic SMTP lab with Telnet and Wireshark remains one of the simplest and most effective ways to understand mail protocol behavior. It is low-cost, transparent, and highly practical for engineers and trainees.