How to test SMTP operations using Telnet

1. Telnet into Exchange server hosting IMS service using TCP port 25.
Command is telnet <servername> 25

2. Issue the following smtp command sequence

helo <your domain name><enter>
response should be as follows
250 OK

3. You should be able to send mail

mail from: <your Email Address><enter>
response should be as follows
250 OK - mail from <your Email address>

rcpt to: <recipient address><enter>
response should be as follows
250 OK - Recipient <recipient address>

data<enter>
response should be as follows
354 Send data. End with CRLF.CRLF

To: <recipient's display name><enter>
From: <your display name><enter>
Subject: <Subject field of Email message><enter>
<Enter you body text><enter><enter> . <enter>
response should be as follows
250 OK

quit<enter>

To Test IMAP using telnet

telnet imap.dbaloungeapps.com 143
...

Use the Workflow mailer Credentials to login

1 LOGIN Username Password
1 OK Logged in.

2 LIST "" "*"
* LIST (\HasNoChildren) "." "INBOX"
2 OK List completed.

3 EXAMINE INBOX
...
3 OK [READ-ONLY] Select completed.

4 FETCH 1 BODY[]
....
4 OK Fetch completed.

5 LOGOUT
* BYE Logging out
5 OK Logout completed.