Javamail NTLM Authentication Failure

前端 未结 5 1078
误落风尘
误落风尘 2020-12-06 11:02

Trying to connect to Exchange server using NTLM in JavaMail. I can connect to SMTP, but not IMAP. I can also authenticate via the OS X Mail.app application using the ident

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-06 11:42

    Try setting the domain "" to the properties of the imap store :

    properties.setProperty("mail.imap.auth.ntlm.domain","");
    

    Since in SMTP you are login using LOGIN, the use of the domain is not necessary. But in NTLM the domain is mandatory.

提交回复
热议问题