标签: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 smtps
原文地址:http://itest.blog.51cto.com/3511959/1783050