根据邮箱如何获取server_阿里云邮箱 501 SMTP server error: "MAIL FROM" is nonlocal account...

3f4bcde75e6bc6b8f1ace5f108d2c082.png

使用程序来发送阿里云企业邮件,发现如何调试均是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:
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

加上后解决。

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值