首页 > 技术文章 > mail 邮箱配置

maoxianfei 2018-11-01 10:49 原文

系统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

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

推荐阅读