开发者社区> 问答> 正文

使用阿里企业邮件,发送报错526 Authentication failure

1.配置服务器地址smtp.lepont.com.cn
2.配置用户 system@lepont.com.cn
3.密码也和实际一致
4.mail.smtp.auth 为true


通过企业邮箱客户端界面,使用 system@lepont.com.cn对外发送邮件成功,但是在后台java中使用以上(1,2,3,4)的配置,往外发送邮件,始终报如下错误:

===============================
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "smtp.lepont.com.cn", port 25, isSSL false
220 smtp.aliyun-inc.com MX AliMail Server(10.147.40.44)
DEBUG SMTP: connected to host "smtp.lepont.com.cn", port: 25


EHLO Lxh-PC
250-smtp.aliyun-inc.com
250-STARTTLS
250-8BITMIME
250-AUTH=PLAIN LOGIN XALIOAUTH
250-AUTH PLAIN LOGIN XALIOAUTH
250-PIPELINING
250 DSN
DEBUG SMTP: Found extension "STARTTLS", arg ""
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Found extension "AUTH=PLAIN", arg "LOGIN XALIOAUTH"
DEBUG SMTP: Found extension "AUTH", arg "PLAIN LOGIN XALIOAUTH"
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "DSN", arg ""
DEBUG SMTP: Attempt to authenticate
AUTH LOGIN
334 dXNlcm5hbWU6
a2xhZEBsZXBvbnQuY29tLmNu
334 UGFzc3dvcmQ6
Q2VsZW50aTk5
526 Authentication failure[0]

展开
收起
轩谷 2018-06-13 17:44:16 7016 0
1 条回答
写回答
取消 提交回答
  • Re使用阿里企业邮件,发送报错526 Authentication failure
    请各位有碰到过类似问题的,或知道解决方案的,给我支支招,多谢大家了!
    2018-06-13 17:45:16
    赞同 展开评论 打赏
相关问答
问答排行榜
最热
最新

相关电子书

更多
友盟+智能认证U-Verify 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载