使用程序来发送阿里云企业邮件,发现如何调试均是501错误代码。经过调试排查掉了(网页和客户端使用时是均正常收发)帐号、ssl、阿里邮箱smtp地址等原因。
2020-06-15 09:31:47 CLIENT -> SERVER: EHLO localhost.localdomain
2020-06-15 09:31:47 CLIENT -> SERVER: AUTH LOGIN
2020-06-15 09:31:47 CLIENT -> SERVER: [credentials hidden]
2020-06-15 09:31:47 CLIENT -> SERVER: [credentials hidden]
2020-06-15 09:31:47 CLIENT -> SERVER: MAIL FROM:<passwd@kinggoo.com>
2020-06-15 09:31:47 SMTP ERROR: MAIL FROM command failed: 501 "MAIL FROM" is non-local account
2020-06-15 09:31:47 The following From address failed: passwd@kinggoo.com : MAIL FROM command failed,"MAIL FROM" is non-local account
,501,SMTP server error: MAIL FROM command failed Detail: "MAIL FROM" is non-local account
SMTP code: 501
邮件发送失败: The following From address failed: passwd@kinggoo.com : MAIL FROM command failed,"MAIL FROM" is non-local account
,501,SMTP server error: MAIL FROM command failed Detail: "MAIL FROM" is non-local account
SMTP code: 501SMTP server error: MAIL FROM command failed Detail: "MAIL FROM" is non-local account
SMTP code: 5012020-06-15 09:31:47 CLIENT -> SERVER: QUIT
最后狂翻阿里云的帮助文件也没找到原因,后来无意登陆邮箱帐号,发现在网页邮箱最上面有一条小字,大概意思就是没有设置属于企业的解析,会影响到邮件的使用。
看自己企业域名的解析 发现没有自己域名的mx。
解析记录类型 解析记录值 优先级
MX mx2.qiye.aliyun.com 10
MX mx2.qiye.aliyun.com 5
加上后解决。
0 条评论。