Skrevet av Emne: How to make an SMTP transmission manually  (Lest 2769 ganger)

ATC

  • Gjest
How to make an SMTP transmission manually
« på: 27. ſeptember 2008, 18:24 pm »
  • [applaud]0
  • [smite]0
  • This can be useful for troubleshooting mail servers



    ATC

    • Gjest
    [Solved] How to make an SMTP transmission manually
    « Svar #1 på: 27. ſeptember 2008, 18:24 pm »
  • [applaud]0
  • [smite]0
  • 1. Telnet to port 25 on the server, you should be greeted by the status code 220 and a short message

    2. Send "HELO dude". The word dude can be replaced with just about any string you like, MTAs use this to tell the server what version/software they are.

    3. Send "MAIL FROM: from@address.com", obviously replacing the sender address with something sensible. The server should respond with status code 250 and a confirmation.

    4. Send "RCPT TO: to@address.com", again replacing the address . Again, the server should respond with status code 250 and a confirmation.

    5. Send "DATA". The server should now indicate that it is ready to receive the message itself.

    6. Send the message as follows:
    to: to@address.com
    from: from@address.com
    subject: test

    test
    .

    The lone "." signals the end of the message and you should receive a 250 and a confirmation that the message was accepted for delivery. Notice the empty line after subject, this is important as it signals the end of the headers and the beginning of the message body.

    You can now send another message, or

    6. Send "QUIT" to exit in a polite manner.