研究邮件透明加密技术时,用到了imap协议,使用telnet作为测试和学习imap协议很不错,现总结如下:
1、登录邮件服务器,imap协议端口是143
telnet imap.163.com 143
2、输入标签号,标签号在整个连接中要保持唯一。然后输入账户名和密码。
A0001 login laoww@163.com 123456
3、输入标签号,使用select选中收件箱inbox
A0002 select inbox
4、搜索收件箱中所有未删除的邮件
A0003 UID SEARCH UNDELETED
5、输入fetch指令下载制定uid的邮件
A0004 UID FETCH 3 (BODY.PEEK[HEADER.FIELDS (CONTENT-TRANSFER-ENCODING CONTENT-TYPE X-SECIV X-SECKEY X-Mailer X-Tyin)])
以下指令是获取邮件各个部分的指令:
a0008 UID FETCH 3 (BODY.PEEK[HEADER.FIELDS (CONTENT-TRANSFER-ENCODING CONTENT-TYPE X-SECIV X-SECKEY)])
a0018 UID FETCH 3 (BODY[HEADER.FIELDS (MESSAGE-ID CONTENT-TRANSFER-ENCODING CONTENT-TYPE X-Seciv X-Seckey X-Mailer X-Alimail-AntiSpam)])
a0015 UID FETCH 3 (BODY.PEEK[HEADER])
a0016 UID FETCH 3 (BODY[HEADER])
a2004 UID FETCH 112 RFC822.HEADER
A0006 UID FETCH 40 (BODY.PEEK[0.MIME])
A0006 UID FETCH 3 (BODY.PEEK[])
最后介绍一下邮件透明加密,目前市场上有很多邮件加密产品,但是透明加密产品却很少。邮件透明加密主要优点是部署简单,用户无感知。其中天御云安的隐密邮,在透明加密方面做的很好。百闻不如一见,网址是:https://mail.tyyunan.com/