Skip to content

Instantly share code, notes, and snippets.

@guerrerocarlos
Last active January 8, 2024 00:46
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save guerrerocarlos/40fe378bb99c635bed82ceb066934255 to your computer and use it in GitHub Desktop.
Save guerrerocarlos/40fe378bb99c635bed82ceb066934255 to your computer and use it in GitHub Desktop.
Example telnet to check if a GMAIL email exists
telnet gmail-smtp-in.l.google.com 25
Connected to gmail-smtp-in.l.google.com.
220 mx.google.com ESMTP t2si1556751otm.271 - gsmtp
HELO gmail.com
250 mx.google.com at your service
mail from:<cguerrero@masterworks.io>
250 2.1.0 OK t2si1556751otm.271 - gsmtp
rcpt to:<thisemaildoesnotexist232131@gmail.com>
550-5.1.1 The email account that you tried to reach does not exist. Please try
550-5.1.1 double-checking the recipient's email address for typos or
550-5.1.1 unnecessary spaces. Learn more at
550 5.1.1 https://support.google.com/mail/?p=NoSuchUser t2si1556751otm.271 - gsmtp
rcpt to:<guerrerocarlos@gmail.com>
250 2.1.5 OK t2si1556751otm.271 - gsmtp
data
354 go ahead, make my day
Subject: My Telnet Test Email
Hello,
This is an email sent by using the telnet command.
Your friend,
Me
.
quit
221 carlos.local closing connection. Have a jolly good day.
Connection closed by foreign host.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment