Question:
sending mail with telnet?
anonymous
2007-07-19 13:43:57 UTC
can some1 just tell me what to do and what commands do type out to use telnet for emailing...please make as detailed and simple as possible please!!
Five answers:
renace217
2007-07-19 13:56:08 UTC
telnet mail.domain.ext 25

You should receive a reply like:

Trying ???.???.???.???...

Connected to mail.domain.ext.

Escape character is '^]'.

220 mail.domain.ext ESMTP Sendmail ?version-number?; ?date+time+gmtoffset?



You will then need to delcare where you are sending the email from:

HELO local.domain.name - dont worry too much about your local domain name although you really should use your exact fully qualified domain name as seen by the outside world the mail server has no choice but to take your word for it as of RFC822-RFC1123.

This should give you:

250 mail.domain.ext Hello local.domain.name [loc.al.i.p], pleased to meet you



Now give your email address:

MAIL FROM: mail@domain.ext

Should yeild:

250 2.1.0 mail@domain.ext... Sender ok

If it doesn't please see possible problems.



Now give the recipients address:

RCPT TO: mail@otherdomain.ext

Should yeild:

250 2.1.0 mail@otherdomain.ext... Recipient ok

If it doesn't please see possible problems.



To start composing the message issue the command DATA



If you want a subject for your email type Subject:-type subject here- then press enter twice (these are needed to conform to RFC 882)



You may now proceed to type the body of your message (e.g. hello mail@otherdomain.ext from mail@domain.ext)



To tell the mail server that you have completed the message enter a single "." on a line on it's own.

The mail server should reply with: 250 2.0.0 ???????? Message accepted for delivery



You can close the connection by issuing the QUIT command.

The mailserver should reply with something like:221 2.0.0 mail.domain.ext closing connection

Connection closed by foreign host.
Bamba
2007-07-19 13:57:33 UTC
Telnet isn't the kind of application you appear to think it is, it's just a tool for accessing remote computers. If the computer you telnet into has an email application running then you can use it through telnet, but telnet itself doesn't have such features as it's just a remote access tool. If you want to send email from a box you've telnetted into then you'd need to talk to the person who own the machine you've connected to and see if (a) they've got a mail client on there and (b) if it's alright for you to use it. No one can give you the commands because we don't even know what operating system the box you're telnetting to is running; nor what software is installed on it.
anonymous
2007-07-19 14:03:42 UTC
Their is not an easy way to send e-mail from a telnet anymore. Most all providers block this activity due to the fact that they can harm the mail server, or gain too much control, or relay spam (bounce) it off of their server.



What you are actually trying to do is telnet to the SMTP server, and then issue SMTP commands through a telnet session. It is possible, just not likely that it will be allowed.



First the provider (ISP) has to of left this port open for telnet, then you will have to know some cryptic SMTP commands. Most SMTP servers do not allow an echo (allow you to see what you are typing) so you not only have to know the command, but it makes it harder to try by repition. Was the error caused by spelling, or just a wrong command?



If you still would like to try it and are sure that the server you are trying it on is unable to monitor your connection to the server, then check out this site for more info.



http://www.messagingtalk.org/how-smtp-commands-work



or



http://www.yuki-onna.co.uk/email/smtp.html



Good luck and try to keep out of trouble.

Liquidd
anonymous
2016-10-09 06:21:45 UTC
As I keep in mind, SMTP (straight forward Mail flow/transport Protocol) is a protocol for digital mail while Telnet is largely a terminal software. in case your digital mail server enables telnet connections, high quality. BTW, logging into your digital mail by way of your browser isn't a telnet connection. have you ever truthfully logged directly to a POP server as you indicated above? i've got completed it as quickly as some years in the past, in spite of the undeniable fact that it grow to be a genuine discomfort.
mamaboy7
2007-07-19 13:47:46 UTC
telnet mail.domain.ext 25



here http://www.yuki-onna.co.uk/email/smtp.html


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...