使用JavaMail连接到IMAP获取;A1“没有登录失败”;例外

使用JavaMail连接到IMAP获取;A1“没有登录失败”;例外,java,jakarta-mail,exchange-server,Java,Jakarta Mail,Exchange Server,以下是我尝试连接的服务器的详细信息 mailbox_password = KexDa3P7hEtru mailbox_domain = mail.lenderlive.com mailbox_host= corp.lcl mailbox_username = SecondaryQC@lenderlive.com server_type = imap port = 143 我正在使

以下是我尝试连接的服务器的详细信息

    mailbox_password = KexDa3P7hEtru                            
    mailbox_domain = mail.lenderlive.com    
    mailbox_host= corp.lcl  
    mailbox_username = SecondaryQC@lenderlive.com
    server_type = imap
    port = 143
我正在使用以下java代码连接到exchange:

    String domain = "mail.lenderlive.com";
    String user= "SecondaryQC@lenderlive.com";
    String password= "KexDa3P7hEtru";
    String serverType = "imap";

    Store store = null;  
    Properties properties = System.getProperties();
    Session session = Session.getDefaultInstance(properties);
    session.setDebug(true);
    store = session.getStore(serverType);
    store.connect(domain, user, password);
以下是我得到的服务器跟踪:

    2016-11-02 15:01:22,885 INFO  [stdout] (http-/0.0.0.0:80-1) DEBUG: setDebug: JavaMail version 1.4ea
    2016-11-02 15:01:22,888 INFO  [stdout] (http-/0.0.0.0:80-1) DEBUG: getProvider() returning javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc]
    2016-11-02 15:01:22,899 INFO  [stdout] (http-/0.0.0.0:80-1) DEBUG: mail.imap.fetchsize: 16384
    2016-11-02 15:01:22,899 INFO  [stdout] (http-/0.0.0.0:80-1) DEBUG: disable AUTH=PLAIN
    2016-11-02 15:01:22,910 INFO  [stdout] (http-/0.0.0.0:80-1) * OK The Microsoft Exchange IMAP4 service is ready.
    2016-11-02 15:01:22,913 INFO  [stdout] (http-/0.0.0.0:80-1) A0 CAPABILITY
    2016-11-02 15:01:22,915 INFO  [stdout] (http-/0.0.0.0:80-1) * CAPABILITY IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI AUTH=PLAIN STARTTLS UIDPLUS CHILDREN IDLE NAMESPACE LITERAL+
    2016-11-02 15:01:22,915 INFO  [stdout] (http-/0.0.0.0:80-1) A0 OK CAPABILITY completed.
    2016-11-02 15:01:22,915 INFO  [stdout] (http-/0.0.0.0:80-1) IMAP DEBUG: AUTH: NTLM
    2016-11-02 15:01:22,915 INFO  [stdout] (http-/0.0.0.0:80-1) IMAP DEBUG: AUTH: GSSAPI
    2016-11-02 15:01:22,916 INFO  [stdout] (http-/0.0.0.0:80-1) IMAP DEBUG: AUTH: PLAIN
    2016-11-02 15:01:22,922 INFO  [stdout] (http-/0.0.0.0:80-1) DEBUG: protocolConnect login, host=mail.lenderlive.com, user=SecondaryQC@lenderlive.com, password=<non-null>
    2016-11-02 15:01:22,925 INFO  [stdout] (http-/0.0.0.0:80-1) A1 LOGIN SecondaryQC@lenderlive.com KeDa3P7hEtru
    2016-11-02 15:01:22,928 INFO  [stdout] (http-/0.0.0.0:80-1) A1 NO LOGIN failed.
2016-11-02 15:01:22885信息[stdout](http-/0.0.0:80-1)调试:setDebug:JavaMail版本1.4ea
2016-11-02 15:01:22888信息[stdout](http-/0.0.0:80-1)调试:getProvider()返回javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,sun Microsystems,Inc]
2016-11-02 15:01:22899信息[stdout](http-/0.0.0:80-1)调试:mail.imap.fetchsize:16384
2016-11-02 15:01:22899信息[stdout](http-/0.0.0:80-1)调试:禁用身份验证=普通
2016-11-02 15:01:22910信息[stdout](http-/0.0.0:80-1)*好,Microsoft Exchange IMAP4服务准备就绪。
2016-11-02 15:01:22913信息[stdout](http-/0.0.0:80-1)A0能力
2016-11-02 15:01:22915信息[stdout](http-/0.0.0:80-1)*功能IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI AUTH=PLAIN STARTTLS UIDPLUS子代空闲命名空间文字+
2016-11-02 15:01:22915信息[stdout](http-/0.0.0:80-1)A0正常功能完成。
2016-11-02 15:01:22915信息[stdout](http-/0.0.0:80-1)IMAP调试:验证:NTLM
2016-11-02 15:01:22915信息[stdout](http-/0.0.0:80-1)IMAP调试:AUTH:GSSAPI
2016-11-02 15:01:22916信息[stdout](http-/0.0.0:80-1)IMAP调试:验证:普通
2016-11-02 15:01:22922信息[stdout](http-/0.0.0:80-1)调试:protocolConnect登录,主机=mail.lenderlive.com,用户=SecondaryQC@lenderlive.com,密码=
2016-11-02 15:01:22925信息[标准输出](http-/0.0.0:80-1)A1登录SecondaryQC@lenderlive.comKeDa3P7hEtru
2016-11-02 15:01:22928信息[stdout](http-/0.0.0:80-1)A1没有登录失败。
有人能帮我解释一下我到底做错了什么吗

  • 您使用的是非常旧的JavaMail版本,如果可以,请联系我们
  • 你可能需要
  • 你应该
  • 我希望您没有在上面发布您的密码。:-)
  • 您使用的是非常旧的JavaMail版本,如果可以,请联系我们
  • 你可能需要
  • 你应该
  • 我希望您没有在上面发布您的密码。:-)