Get Adobe Flash player

    postheadericon Sending mail through Telnet

    In order to send mail through Telnet you will need two things:

    • An active internet connection
    • The address of a mail server capable of relaying for you - usually provided by your dialup provider (e.g. mail.domain.ext)
    • A valid email address (e.g. This e-mail address is being protected from spambots. You need JavaScript enabled to view it ) - you CAN use any address, but that's spoofing and we do not encourage that.

    The first thing to do is to open a connection from your computer to your mail server.
    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 state the domain from where you are sending the email :
    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 the FROM address:
    MAIL FROM: This e-mail address is being protected from spambots. You need JavaScript enabled to view it
    You should now be either accepted or refused:
    250 2.1.0 This e-mail address is being protected from spambots. You need JavaScript enabled to view it ... Sender ok

    Now give the recipients address:
    RCPT TO: This e-mail address is being protected from spambots. You need JavaScript enabled to view it

    The recipient should either be accepted or refused:
    250 2.1.0 This e-mail address is being protected from spambots. You need JavaScript enabled to view it ... Recipient ok


    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. Hi Ronald, it's me sending you mail through telnet!)
    To tell the mail server that you have completed the message enter a single dot 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.


    Last Updated (Saturday, 30 August 2008 14:20)

     
    Comments (2)
    nice
    1 Sunday, 31 August 2008 16:51
    very nice walktrough ! keep it up
    !
    2 Wednesday, 03 September 2008 15:34
    just what i needed !

    Add your comment

    Your name:
    Your email:
    Your website:
    Subject:
    Comment: