阿里云centos7配置qq邮件

1.安装sendmail

yum -y install sendmail

2.配置文件

vi /etc/mail.rc
最后添加
set [email protected]
set smtp=smtp.qq.com:587(阿里云默认587邮件端口)
set smtp-auth-user=123456
set smtp-auth-password=xxxxxxxx(需要上qq邮件进行授权)
set smtp-auth=login

3.发送测试

echo 'test' | mail -s 'test' [email protected]
发布了27 篇原创文章 · 获赞 0 · 访问量 877

猜你喜欢

转载自blog.csdn.net/apple2417/article/details/104070510