mail 邮箱配置

系统Centos7

编辑使用的代理邮箱信息

vi /etc/mail.rc

set from=xxx@163.com
set smtp=smtp.163.com
set smtp-auth-user=xxx@163.com
set smtp-auth-password= 使用客户端授权密码
set smtp-auth=login

测试

echo "this is a test mail" | mail -s "TEST mail" maoxf@sogood360.com

 

报错提示:

Unexpected EOF on SMTP connection

一定要使用客户端授权密码才行

posted @ 2018-11-01 10:49  codeforu2  阅读(465)  评论(0编辑  收藏  举报