2020-05-28 linux配置qq/網(wǎng)易郵箱發(fā)送郵件

停止sendmail和postfix
service sendmail stop
chkconfig sendmail off
service postfix stop
chkconfig postfix off
使用mail / mailx發(fā)送郵件
rpm -qa|grep mailx 查看是否安裝mailx
vim /etc/mail.rc 更改配置文件

add new context: 網(wǎng)易

set from=郵箱賬戶
set smtp=smtphm.qiye.163.com 郵箱賬戶的smtp配置
set smtp-auth-user=郵箱賬戶
set smtp-auth-password=郵箱密碼
set smtp-auth=login

add new context: 騰訊 要開通smtp客戶端服務(wù) 在web頁面賬號設(shè)置中

set from=1293472700@qq.com
set smtp=smtp.qq.com
set smtp-auth-user=1293472700@qq.com
set smtp-auth-password=SMTP授權(quán)碼,不是郵箱密碼
set smtp-auth=login
echo "內(nèi)容" |mail -s "主題" 1293472700@qq.com(郵箱) 測試語句

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

友情鏈接更多精彩內(nèi)容