mail.rc配置

解决:http://blog.51cto.com/irow10/1812638
Error in certificate: Peer’s certificate issuer is not recognized.

vim /etc/mail.rc #尾部添加如下内容
set from=766083824@qq.com smtp=”smtps://smtp.qq.com:465”
set smtp-auth-user=766083824@qq.com smtp-auth-password=bldylxxardklbfah smtp-auth=login
set nss-config-dir=/root/.certs
set ssl-verify=ignore

mkdir -p /root/.certs/
echo -n | openssl s_client -connect smtp.qq.com:465 | sed -ne ‘/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p’ > ~/.certs/qq.crt
certutil -A -n “GeoTrust SSL CA” -t “C,,” -d ~/.certs -i ~/.certs/qq.crt
certutil -A -n “GeoTrust Global CA” -t “C,,” -d ~/.certs -i ~/.certs/qq.crt
certutil -L -d /root/.certs
cd .certs
certutil -A -n “GeoTrust SSL CA - G3” -t “Pu,Pu,Pu” -d ./ -i qq.crt

/bin/mailx -s ‘404log’ -a /root/wgl/404log.txt wanggaoli@xxxx.com 766083824@qq.com < /root/wgl/meess.txt

-------------本文结束感谢您的阅读-------------