Wikipedia

Search results

Monday 13 October 2014

How to check SMTP Server is working or not in Linux/Unix



bash-3.2# telnet mail.iasri.res.in 25
Trying...
Connected to mail.iasri.res.in.
Escape character is '^]'.
220 mail.iasri.res.in ESMTP Smtpd; Mon, 13 Oct 2014 15:40:47 +0530
EHLO  mail.iasri.res.in
250-mail.iasri.res.in Hello [192.168.101.25], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 10485760
250-DSN
250-AUTH LOGIN PLAIN DIGEST-MD5 CRAM-MD5
250-STARTTLS
250-DELIVERBY
250 HELP
MAIL FROM:fmsprod@iasri.res.in
250 2.1.0 fmsprod@iasri.res.in... Sender ok
RCPT TO:gunasekarappsdba@gmail.com
250 2.1.5 gunasekarappsdba@gmail.com... Recipient ok
DATA
354 Enter mail, end with "." on a line by itself
Subject: test message sent from manual telnet session

Hello ,

This is a test message sent from a manual telnet session.

Yours truly,
SMTP administrator

.
250 2.0.0 s9DAAldq022476-s9DAAldr022476 Message accepted for delivery
QUIT
221 2.0.0 mail.iasri.res.in closing connection
Connection closed.
bash-3.2#

No comments:

Post a Comment