Monday 10 March 2014

Testing SMTP on UNIX and Windows

On Windows:

Open a command Prompt and follow the below test.

telnet smtp-test1.domain.net 25
220 zuq60i-8841.domain.net ESMTP Sendmail ready
helo smtp-test1.domain.net
250 zuq60i-8841.domain.net Hello server1.com [169.56.0.219], pleased to meet you
MAIL FROM: test@domain.com
250 2.1.0 test@domain.com... Sender ok
RCPT TO:xyz@domain.com
250 2.1.5 xyz@domain.com... Recipient ok
DATA
354 Enter mail, end with "." on a line by itself
From: test@domain.com
To:xyz@domain.com
Subject: Testing ET SMTP Server

Please return the email to me at xyz1@domain.com
I’m currently testing the SMTP server.

Thanks,
Joel

.
250 2.0.0 s2ACefbM021550 Message accepted for delivery


Note: All red marked text need to be entered during testing. The Mail From address is the one registered during the SMTP mailbox configuration


On Unix:

$ echo "Subject: Send mail test" | /usr/lib/sendmail -v -f test@domain.com xyz1@domain.com
xyz1@domain.com... Connecting to [127.0.0.1] via relay...
220 usl20030123.domain.com; Fri, 15 Nov 2013 08:44:21 -0500
>>> EHLO usl20030123.am.hedani.net
250-NXHOST.NXDOMAIN Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 10485760
250-DSN
250-DELIVERBY
250 HELP
>>> MAIL From:<test@domain.com> SIZE=24
250 2.1.0 <test@domain.com>... Sender ok
>>> RCPT To:<xyz1@domain.com>
>>> DATA
250 2.1.5 <xyz1@domain.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 rAFDiLlP027717 Message accepted for delivery
xyz1@domain.com... Sent (rAFDiLlP027717 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 NXHOST.NXDOMAIN closing connection


No comments:

Post a Comment