Skip to content

Instantly share code, notes, and snippets.

@suguanYang
Created February 4, 2020 07:25
Show Gist options
  • Save suguanYang/2fbce3649b6a11143822489c579c46bb to your computer and use it in GitHub Desktop.
Save suguanYang/2fbce3649b6a11143822489c579c46bb to your computer and use it in GitHub Desktop.
Test SMTP via telnet
telnet exampledomain.com 25
Trying 1.1.1.1...
Connected to exampledomain.com (1.1.1.1).
Escape character is '^]'.
220-server1.exampledomain.com ESMTP Exim 4.66 #1 Wed, 01 Jua 2020 23:55:12 +0200
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
EHLO exampledomain.com
250-server1.exampledomain.com Hello [1.1.1.2]
250-SIZE 52428800
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
AUTH LOGIN3
334 VXNlcm5hbWU6 # username
dXNlcm5hbWUuY29t
334 UGFzc3dvcmQ6 # password
bXlwYXNzd29yZA==
235 Authentication succeeded
HELO exampledomain.com
250 exampledomain.com
MAIL FROM: <[email protected]>
250 Ok
RCPT TO: <[email protected]>
250 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
asdsad
.
250 Ok: queued as
QUIT
221 Bye
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment