码迷,mamicode.com
首页 > 其他好文 > 详细

mailx for smtps over qqexmail

时间:2016-05-25 19:02:59      阅读:1057      评论:0      收藏:0      [点我收藏+]

标签:mailx smtps

edit /etc/mail.rc
add:

set ssl-verify=ignore
set smtp-auth=login
set smtp=smtps://smtp.exmail.qq.com:465
set from=username@company.com
set smtp-auth-user=username@company.com
set smtp-auth-password=YourPassword
set nss-config-dir=/home/path/to/.certs


Problem:
Error in certificate: Peer‘s certificate issuer is not recognized.

Solve:
cd /home/path/to/.certs
certutil -N -d ./
echo -n | openssl s_client -connect smtp.exmail.qq.com:465 | sed -ne ‘/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p‘ > ./qqmail.crt
certutil -A -n "GeoTrust SSL CA - G3" -t "Pu,Pu,Pu"  -d ./ -i ./qqmail.crt


参考https://coderwall.com/p/ez1x2w/send-mail-like-a-boss

mailx for smtps over qqexmail

标签:mailx smtps

原文地址:http://itest.blog.51cto.com/3511959/1783050

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!