Test SMTP server using telnet

The steps to test a email server are quite simple.
below you will find the steps to do so.
In these examples mail.example.com is the domain of the server which is tested.

> telnet mail.example.com 25
< 220 fallback.xeed.nl ESMTP Postfix
> EHLO test.com
< 250-mail.example.com
< 250-PIPELINING
< 250-SIZE 10240000
< 250-VRFY
< 250-ETRN
< 250-ENHANCEDSTATUSCODES
< 250-8BITMIME
< 250 DSN
> MAIL FROM: foo@test.com
<
250 OK – MAIL FROM foo@test.com
> RCPT TO: User@test.com
< 250 OK – Recipient User@test.com
> DATA
<  354 Send data. End with CRLF.CRLF
> type the message and end with <return> . <return>
< 250 OK
> QUIT
< 221 closing connection

The output of the server may vary from server to server. but the commands are the same.

 

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>