[Go] Use Telnet for SMTP authentication

Source: Internet
Author: User
Tags rfc822

This article transferred from: http://www.cnblogs.com/rootq/articles/1320266.html

[[Email protected] crazywill]$ Telnet192.168.0.1 143#telnet登录IMAP协议的143端口Trying192.168.0.1... Connected to xxxxxx Escape character is '^]'. *OK xxxxxxx System IMap Server ReadyA01 LOGIN ABC123#用户登录A01 OK LOGIN completedA02 LIST""*#列出所有信箱列表* LIST ()"/" "INBOX"* LIST ()"/" "Drafts"* LIST ()"/" "Sent Items"* LIST ()"/" "Trash"* LIST ()"/" "Junk e-mail"* LIST ()"/" "Virus Items"* LIST ()"/" "&xfjt0zabkk5o9g-"* LIST ()"/" "&g0l6pw-"* LIST ()"/" "&xfjt0zabkk5o9g-/dailyreport"* LIST ()"/" "Jira"* LIST ()"/" "Admin"* LIST ()"/" "&v4nxppcutvy-"A02 OK LIST CompletedA03 Select INBOX #选择收件箱*Panax NotoginsengEXISTS*0recent* OK [uidvalidity1] UIDs valid*FLAGS (\answered \seen \deleted \draft)*OK [Permanentflags (\answered \seen \deleted \draft)] Limited A03 OK [READ-WRITE] SELECT completedA04 Search All #查询收件箱所有邮件* OK X-searchinchProgress* OK X-searchinchProgress* OK X-searchinchProgress* SEARCH1 2 3 4 5 6 7 8 9 Ten  One  A  -  -  the  -  -  -  +  -  +  A  at  -  -  -  -  -  in  -  to  +  -  the  *  $ Panax NotoginsengA04 OK Search completed # lists eligible message ordinals (all means all messages listed in the current mailbox Inbox) A05 SEARCHNew#查询收件箱所有新邮件* OK X-searchinchProgress* OK X-searchinchProgress* OK X-searchinchProgress*Search A05 OK search completed #找不到任何新邮件A06 Fetch5Full #获取第5封邮件的邮件头*5FETCH (internaldate"27-jun-2006 14:00:27 +0800"FLAGS (\seen) ENVELOPE ("Tue, June 2006 13:56:51 +0800" "Test"(("xxxxxx"NIL"xxxx" "xxxxxx")) (("xxxxxx"NIL"xxxx" "xxxxxx")) (("xxxxxx"NIL"xxxx" "xxxxxx")) (Nil Nil"XXX" "xxxxx")) Nil Nil Nil"<[email protected]>") BODY (("text" "Plain"("CharSet" "gb2312") Nil Nil"Base64"  - 2) ("text" "HTML"("CharSet" "gb2312") Nil Nil"Base64" 420 7)"Alternative") RFC822. SIZE1396) A06 OK fetch completedA07 Fetch5rfc822 #获取第5封邮件的完整内容*5FETCH (RFC822 {1396} [here is the message content, too long, slightly ...] A07 OK fetch completedA08 Fetch5flags #查询第5封邮件的标志位A08 OK Fetch completedA09 Store5+flags.silent (\deleted) #设置标志位为删除A09 OK STORE completedA10 expunge #永久删除当前邮箱INBOX中所有设置了 \deleted label Log letter A10 OK expunge completedA11 noop # empty statement A11 OK noop completedA20 LOGOUT #退出* BYE IMAP4rev1 Server Logging outA20 OK LOGOUT completed Connection closed by foreign host. [Email protected] crazywill]$

[Go] Use Telnet for SMTP authentication

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.