接上篇“linux下通过mailx发送qq企业邮件:Error in certificate: Peer's certificate issuer is not recognized.”
废了半天劲,才发现,腾讯企业邮箱有个小心机:表面上,腾讯公开说只能通过smtps方式的465去连接....
事实上,它还是偷偷的支持普通的smtp方式25端口去发送邮件的!
所以,mail.rc 完全可以简单的去配置了:
set from=user@domain
set smtp=smtp.exmail.qq.com
set smtp-auth-user=user@domain
set smtp-auth-password=password
set smtp-auth=login
#该配置没什么用
#set ssl-verify=ignore