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
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
相关文章推荐
- 关于上gmail 出现需要验证链接
- 以form表单上传文件,接口不响应,后台显示"file" does not contain '/'
- jenkins-info-Mail-configure
- [leetcode] 【数组】70. Climbing Stairs
- async/await Task Timeout
- Mail::Sender
- SendEmail使用TLS发送邮件
- 飛飛(四十七)定义抽象基类Shape,由它派生出3个派生类,Circle(圆形)、Rectangle(矩形)、Triangle(三角形)。用如下的main()函数,求出定义的几个几何体的面积和。
- software security training 的一些总结
- MyDetailedOS
- 3D打印技术冲突传统制造业,将导致更多工人下岗?
- PyCharm: Simplify chained comparison
- failed to load the jni shared library:“……jre\bin\client\jvm.dll”
- 高级IO中socketpair实现进程间通信以及重定向
- 【转】foxmail突然打不开了,双击没反应,怎么回事呀
- AIX sshd提示fatal: mm_memvalid: address too large: ffff0000
- 3dsMax之CoCreateInstence() failed报错
- LeetCode 172. Factorial Trailing Zeroes(0结尾)
- POJ 3297 Open Source STL(map+set+pair)
- Time wait bucket overflow