您的位置:首页 > 大数据 > 人工智能

mailx for smtps over qqexmail

2016-05-25 15:49 393 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: