我有一个使用java邮件库发送电子邮件的应用程序。除了一个,它在我的所有客户环境中都能很好地工作。我相信环境中的交换服务器的接收器连接器存在一些问题。对于java邮件失败,我只有以下堆栈。您能否建议对连接器进行任何可能的更改
EHLO localhost
250-atprelaytest.xng2k10win2k8r2.com Hello [10.219.170.45]
250-SIZE 10485760
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-AUTH
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250-XEXCH50
250 XSHADOW
DEBUG SMTP: Found extension "SIZE", arg "10485760"
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "DSN", arg ""
DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP: Found extension "AUTH", arg ""
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Found extension "BINARYMIME", arg ""
DEBUG SMTP: Found extension "CHUNKING", arg ""
DEBUG SMTP: Found extension "XEXCH50", arg ""
DEBUG SMTP: Found extension "XSHADOW", arg ""
DEBUG SMTP: Attempt to authenticate using mechanisms: LOGIN PLAIN DIGEST- MD5 NTLM
DEBUG SMTP: mechanism LOGIN not supported by server
DEBUG SMTP: mechanism PLAIN not supported by server
DEBUG SMTP: mechanism DIGEST-MD5 not supported by server
DEBUG SMTP: mechanism NTLM not supported by server
ERROR EmailSender - Error in sending email : javax.mail.AuthenticationFailedException: No authentication mechanisms supported by both server and client
org.springframework.mail.MailAuthenticationException:身份验证失败;嵌套异常是javax.mail.AuthenticationFailedException:服务器和客户端都不支持任何身份验证机制
答案 0 :(得分:0)
在服务器允许您进行身份验证之前,您可能需要使用SSL进行连接。