Linux使用QQ邮箱
生活随笔
收集整理的這篇文章主要介紹了
Linux使用QQ邮箱
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1、安裝mailx
yum -y install mailx2、配置mail
qq郵箱授權碼生成:
3、配置QQ郵箱的SSL證書
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為了防止出現前文所說的發送郵件警告提示,還需要進入郵箱 SSL 證書存放目錄 /root/.certs 里執行如下命令:
certutil -A -n "GeoTrust SSL CA - G3" -t "Pu,Pu,Pu" -d ./ -i qq.crt返回如下提示即可:
Notice: Trust flag u is set automatically if the private key is
present.
4、通過命令行發送測試郵件
mailx -s “郵箱測試” xxxx@qq.com < message_file.txt
總結
以上是生活随笔為你收集整理的Linux使用QQ邮箱的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Windows编程之钩子程序
- 下一篇: 计算机在线题库系统,试题库管理系统.do