Linux perl
Base64 编码的生成# perl -MMIME::Base64 -e 'print encode_base64('root\@test.net');'cm9vdEB0ZXN0Lm5ldA==# perl -MMIME::Base64 -e 'print encode_base64('000000');'MDAwMDAw
测试发送邮件(端口:25):mail# telnet 127.0.0.1 25Trying 127.0.0.1...Connected to 0.Escape character is '^]'.220 mail.test.net ESMTP Postfixehlo mail250-mail.test.net250-PIPELINING250-SIZE 4194304250-VRFY250-ETRN250-AUTH NTLM LOGIN PLAIN OTP250-AUTH=NTLM LOGIN PLAIN OTP250 8BITMIMEauth login334 VXNlcm5hbWU6cm9vdEB0ZXN0Lm5ldA== //用户名id:root@test.net334 UGFzc3dvcmQ6MDAwMDAw //用户密码password: Authentication successfulMAIL FROM:
测试收取邮件(端口:110):mail# telnet 127.0.0.1 110Trying 127.0.0.1...Connected to 0Escape character is '^]'+OK Hello thereuser root@test.net+OK Password requiredpass 000000+OK logged inlist+OK POP3 clients that break here, they violate STD531 2217retr 1 //返回第一封信的全部内容+OK 2217 octets follow.Return-Path: