SMTP Protocol Series One

Source: Internet
Author: User
Tags email account

Talk about DOS under telnet command to send mail

Step, take my 163 mailbox as an example

1, start-->cmd into DOS inside

2. Enter Telnet smtp.163.com 25

C: \users \administrator> telnet smtp.163.com 25

Returns 220 after carriage return

163.com Anti-Spam GT for Coremail System <163com[20141201]>

3. Input EHLO smtp.163.com

EHLO smtp.163.com

Returns 250 after carriage return

250-mail

250-pipelining

250-auth LOGIN PLAIN

250-auth-login PLAIN

250-coremail 1uxr2xkj7kg0xki17xgru7i0s8fy2u3uj8cz28x1uuuuu7ic2

250-starttls

4. Input AUTH LOGIN

AUTH LOGIN

Carriage return 334

334 Dxn1cm5hbwu6

5, enter the corresponding 163 email account base64 encoding (recommended a base64 encoding and decoding query site:http://base64.supfree.net/), return 334

bgupbhvodwkxmjnamtyzlmnvbq==

334 Ugfzc3dvcmq6

6, enter the account password Base64 code (omitted here, haha, secrecy!!!) ), returns 235 after carriage return

235 Authentication Successful

7, enter the mail from <[email protected]> return 250

MAIL FORM <[email protected]>

+ Mail OK

8, input RCPT to <[email protected]> returns after return 250

RCPT to <[email protected]>

+ Mail OK

9. Enter data return display 354

DATA

354 End data with <CR><LF>. <CR><LF>

10. Enter in sequence

Form:[email protected] (enter when finished)

Subject:hello

Blank line, enter

"Here is the text to be entered, I wish you all good results!" ”

11, after the text is finished, enter, to. means end, send mail, return below, how can you go to your mailbox to check the mail!

+ Mail OK queued as SMTP9, Dccowabxo4m377jvjqnaag--. 35991

Enclose the return code meaning:

501 Parameter Format error
502 Command not implemented
503 Wrong sequence of commands
504 command parameters are not implemented
211 System status or system help response
214 Help information
<domain> Service Ready
221 <domain> Service shutdown
421 <domain> Service is not ready to close the transport channel
250 Required mail operations completed
251 The user is not local and forwards to the <forward-path>
450 The requested mail operation is not completed and the mailbox is not available
550 The requested mail operation is not completed and the mailbox is not available
451 abort the requested operation; Error during processing
551 users are not local, try <forward-path>
452 Insufficient system storage, required operation not performed
552 Excessive storage allocation, required operation not performed
553 The mailbox name is not available and the requested action is not performed
354 Start the Mail entry to "." End
554 operation failed

Copyright NOTICE: There is not the right place, but also hope that you guide, thanks!

SMTP Protocol Series One

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.