Skip to content

Instantly share code, notes, and snippets.

@asolera
Created June 30, 2022 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asolera/1bf024111f6ca6d4eb909fcac2db47d0 to your computer and use it in GitHub Desktop.
Save asolera/1bf024111f6ca6d4eb909fcac2db47d0 to your computer and use it in GitHub Desktop.
SMTP test using Telnet
telnet 172.16.10.10 25
Trying 172.16.10.10...
Connected to 172.16.10.10.
Escape character is '^]'.
220 c1v41d.localdomain ESMTP Postfix
helo test.smtp
250 c1v41d.localdomain
mail from:<youremail@domain.com>
250 2.1.0 Ok
rcpt to:<youremail@domain.com>
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
From: youremail@domain.com
Subject: test
test mail body
.
250 2.0.0 Ok: queued as <HASH>
quit
221 2.0.0 Bye
Connection closed by foreign host.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment