mailx for smtps over qqexmail

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.crtide


參考https://coderwall.com/p/ez1x2w/send-mail-like-a-bossspa

相關文章
相關標籤/搜索