Telnet pop settings for remote mail Control (1)

Source: Internet
Author: User

In terms of mail service, we can use the TELNET service for configuration and remote monitoring. Then we need to configure telnet pop. Now let's take a look at how to use TELNET to manually operate SMTP/POP to send and receive emails.

Note: manual input is represented in a blue font, and # is followed by a comment, which cannot be entered.
 

 
 
  1. ========= Calculate the BASE64 encoded username and password first, and use ============
  2. [Crazywill @ localhost crazywill] $ perl-MMIME: Base64-e 'print encode_base64 ("crazywill ");'
  3. Y3Jhenl3aWxs
  4. [Crazywill @ localhost crazywill] $ perl-MMIME: Base64-e 'print encode_base64 ("mypassword ");'
  5. BXlwYXNzd29yZA =
 
 
  1. ================================== Start the SMTP mail sending operation ================== ================
  2. [Crazywill @ localhost crazywill] $ telnet smtp.163.com 25 # telnet to port 25
  3. Trying 202.108.5.81...
  4. Connected to smtp.163.com.
  5. Escape character is '^]'.
  6. 220 163.com Coremail SMTP (Anti Spam) System
  7. EHLO smtp.163.com # handshake :)
  8. 250-mail
  9. 250-PIPELINING
  10. 250-AUTH LOGIN PLAIN
  11. 250-AUTH = LOGIN PLAIN
  12. 250 8 BITMIME
  13. Auth login # Start authentication telnet pop LOGIN
  14. 334 dXNlcm5hbWU6
  15. Crazywill
  16. 334 UGFzc3dvcmQ6
  17. Mypassword
  18. 535 Error: authentication failed # login failure due to direct user name and password
  19. AUTH LOGIN
  20. 334 dXNlcm5hbWU6
  21. Y3Jhenl3aWxs
  22. 334 UGFzc3dvcmQ6
  23. BXlwYXNzd29yZA =
  24. 235 Authentication successful # log on successfully using Base64 encoding
  25. Mail from: <test@163.com> # MAIL sender
  26. 553 You are not authorized to send mail, authentication is required # mail cannot be forged
  27. Mail from: <crazywill@163.com> # MAIL sender
  28. 250 Mail OK
  29. Rcpt to: <crazywill@163.com>
  30. # Recipient of the email. If multiple recipients exist, repeat this statement multiple times.
  31. 250 Mail OK
  32. DATA # body content
  33. 354 Please start mail input.
  34. TO: crazywill@163.com
  35. # Here, the TO, FROM, and other content can be fake at Will :) you can lie, but you can't lie TO anyone who knows how TO view the mail source code.
  36. FROM: cccc@163.com
  37. SUBJECT: test by telnet/smtp
  38.  
  39. Test, just a test. # The Body of the email, which is written with a blank line from the Header.
  40. . # After the email is completed, enter the result with a period.
  41. 250 Mail OK queued as smtp10, wKjADQ2ApxRnnqBE0CWaEw =. 38326S3 # If 250 is returned, the message is sent successfully.
  42. NOOP # empty statement, which does not execute any operation. It is generally used to maintain connection with the server and do not drop the line
  43. 250 OK
  44. QUIT # exit
  45. 221 Closing connection. Good bye.
  46. Connection closed by foreign host.
  47. [Crazywill @ localhost crazywill] $


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.