Linux 设置发送qq邮件
操作系统:centos 6.8
1. 安装mailx
yum install mail
2. 配置SMTP
vi /etc/mail.rc
set from=***@qq.com
set smtp-auth-user=***@qq.com
set smtp-auth-password=igsre***
set smtp-auth=login
set ssl-verify=ignore
set nss-config-dir=~/.certs
set smtp=smtps://smtp.qq.com:465
3. 生成SSL证书
mkdir ~/.certs && certutil -N -d ~/.certs
4. 发送测试邮件
echo "test mail" | mail -vvv -s "subject" **@qq.com
参考:
http://www.51xpage.com/%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%AE%A1%E7%90%86/2015/12/10/dao-ting-tu-shuo-linux-xi-lie-9-fa-song-wai-bu-you-jian
相关推荐
zhangwentaohh 2020-09-16
文山羊 2020-08-16
行吟阁 2020-07-04
xiaodaiwang 2020-06-12
JasonYeung 2020-06-07
oXiaoChong 2020-06-01
sunnyhappy0 2020-05-19
airfling 2020-05-19
singer 2020-05-06
winmeanyoung 2020-04-11
wenjs00 2020-03-06
vs00ASPNET 2020-02-19
zhangpan 2020-01-10
ITxiaobaibai 2020-01-03
huakai 2019-12-29
cbao 2019-12-24
idning 2019-12-21