Send mail using telnet

  The study Mail transparent encryption technology, the need to test the mail server protocol command, think of the telnet command, summarized as follows now.

  Usually we have to send mail using a mail client, but if you do the test may need to telnet program.

  1, using telnet ip address to connect to the mail server port. (SMTP port 25; imap port 143, pop3 port 110)

  telnet ip port

  2, helo send commands back just write words.

  helo jealousy

  3, the transmission instruction auth login

  auth login

  4, auth sequentially input the user name and password of the login command after transmission. Note that at this time the user name and password are the user name and password base64 encoded, such as:

  Username: [email protected] corresponding base64 encoding is bGFvd2FuZ0AxNjMuY29t

  Password: 123456 corresponding base64 encoding is MTIzNDU2

  5. If the login is successful, in relation to input mail from the command, followed by the sender's mailbox name.

  Mail from instructions not case sensitive, size parameter is marked behind the message size can easily write numbers, e-mail server for the current size of no distinction.

  MAIL FROM: <[email protected]> SIZE=1024

  6, similar mail from input rept to command, followed by the recipient's mailbox name

  RCPT TO: <[email protected]>

  7, data input instruction, the mail flag instruction transmission protocol smtp interaction phase left over, the next step is to send the message data.

  data

  8, a message number in the edit Notepad, requires only a simple mail message header, a message body. There must be a blank line between the message header and message body. End of the message need to add a period, but also between every dot and the message body by a blank line. Action period is to mark the end of the message body.

  Content-Type: text/plain; charset="utf-8"

  Content-Transfer-Encoding: 7bit

  From: [email protected]

  To: [email protected]

  Subject: 123-4

  Hello,laowang!

  .

  9, the message needs to be sent after the transmission is completed quit command to exit

  QUIT

  Finally, what message transparent encryption, there are a lot of e-mail encryption products on the market, but rarely transparent encryption products. Mail transparent encryption main advantage is simple to deploy, the user does not perceive. Which TEIN Yun'an occult mail, doing well in terms of transparent encryption. Seeing is believing site at: https://mail.tyyunan.com/

  Keywords: telnet transparent encryption to send mail smtp

Guess you like

Origin blog.51cto.com/14208524/2402915