We help IT Professionals succeed at work.

Telnet and CMD not recognizing commands

Jamie King
Jamie King asked
on
63 Views
Last Modified: 2018-05-27
I've been trying to use telnet to send emails, but commands like MAIL TO are described as unrecognized. Any solutions?
Comment
Watch Question

Dr. KlahnPrincipal Software Engineer
CERTIFIED EXPERT

Commented:
It is increasingly difficult to use Telnet to check anything except the simplest SMTP connections, because most sites use extensions, firewalls, context filtering and IP-based filtering to restrict spam.  SMTP connections must therefore be exact and precise, be quick with timing and responses, and conform to what the receiving MTA considers valid.

An example of the last can be found at Microsoft's web site regarding SMTP to Exchange MTAs.  The exchange is close to, but not quite "usual" SMTP, particularly as regards AUTH LOGIN and the encrypted usernames.

https://technet.microsoft.com/en-us/library/aa995718%28v=exchg.65%29.aspx

If you can show us a session log, it will be helpful.
AlanConsultant
CERTIFIED EXPERT

Commented:
Hi,

As per Dr Klahn, please can you post a copy of the interaction.

I am assuming you are successfully submitting a HELO / EHLO, and getting a valid response?

Thanks,

Alan.
System Administrator / Postmaster
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Jose Gabriel Ortega CastroCEO Faru Bonon IT&Agency /Top-Rated Freelancer (Upwork)/Photographer
CERTIFIED EXPERT
Awarded 2018
Distinguished Expert 2018

Commented:
This is one of my "go to" forums when trying to do testing with Telnet (mostly for exchange server)

https://www.petri.com/test_smtp_service

telnet srv1.dpetri.net 25
220 srv1.dpetri.net Microsoft ESMTP MAIL Service, Version: 5.0.2195.5329 ready at Sun, 15
Sep 2002 23:51:06 +0200
helo srv1.dpetri.net
250 srv1.dpetri.net Hello [192.168.0.100]
mail from: admin@petri.com
250 2.1.0 admin@petri.com....Sender OK
rcpt to: danielp@dpetri.net
250 2.1.5 danielp@dpetri.net
data
354 Start mail input; end with .
subject: this is a test
Hi Daniel
I'm trying to test this connection from Telnet.
Let me know if you get this message.
 
.
250 2.6.0  Queued mail for delivery
quit
221 2.0.0 srv1.dpetri.net Service closing transmission channel
 
Connection to host lost.
 
Press any key to continue...

Open in new window


The point in here is that "mail to" doesn't exist it would be "rcpt to" and "mail from"
AlanConsultant
CERTIFIED EXPERT

Commented:
Michaelangelo identified the issue.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.