密码发送失败。
邮件服务器本地主机响应:
无法在以下位置获取邮件文件夹
/exchange/[email protected]/,
Webdav在Exchange上不可用
服务器

这是我尝试连接时Thunderbird(和DavMail)向我显示的消息。
我已经按照DavMail指南的建议设置了雷鸟。

在DavMail OWA字段中设置正确的https url(我的意思是“https://mail.domain.it/owa”),但是出了点问题。

雷鸟中指定的凭据似乎正确。在Web访问上使用相同的文件可以完美地工作。

这里是DavMail日志的摘录:

2010-09-16 10:21:34,585 INFO  [main] davmail  - DavMail Gateway 3.8.4-1432 listening on SMTP port 1025 POP port 1110 IMAP port 1143 CALDAV port 1080 LDAP port 1389
2010-09-16 10:21:35,084 DEBUG [CheckRelease] davmail.DavGateway  - DavMail released version: 3.8.4-1432
2010-09-16 10:21:47,711 DEBUG [davmail.pop.PopServer] davmail  - Connection from /127.0.0.1 on port 1110
2010-09-16 10:21:48,471 DEBUG [PopConnection-53324] davmail  - Found permanently accepted certificate, hash F6:FF:75:7E:55:61:52:9C:77:6D:B1:21:C3:38:E8:2C:13:C1:A4:C8
2010-09-16 10:21:48,534 DEBUG [PopConnection-53324] davmail.exchange.ExchangeSession  - Test configuration status: 301
2010-09-16 10:21:48,547 DEBUG [PopConnection-53324] davmail  - > +OK DavMail POP ready at Thu Sep 16 10:21:48 CEST 2010
2010-09-16 10:21:48,551 DEBUG [PopConnection-53324] davmail  - < CAPA
2010-09-16 10:21:48,554 DEBUG [PopConnection-53324] davmail  - > +OK Capability list follows
2010-09-16 10:21:48,554 DEBUG [PopConnection-53324] davmail  - > TOP
2010-09-16 10:21:48,555 DEBUG [PopConnection-53324] davmail  - > USER
2010-09-16 10:21:48,555 DEBUG [PopConnection-53324] davmail  - > UIDL
2010-09-16 10:21:48,556 DEBUG [PopConnection-53324] davmail  - > .
2010-09-16 10:21:48,558 DEBUG [PopConnection-53324] davmail  - < USER USERNAME
2010-09-16 10:21:48,559 DEBUG [PopConnection-53324] davmail  - > +OK USER : USERNAME
2010-09-16 10:21:48,561 DEBUG [PopConnection-53324] davmail  - < PASS ********
2010-09-16 10:21:48,755 DEBUG [PopConnection-53324] davmail  - executeFollowRedirects(https://mail.DOMAIN.it/owa)
2010-09-16 10:21:48,788 DEBUG [PopConnection-53324] davmail  - executeFollowRedirects: /owa/ redirectCount:1
2010-09-16 10:21:48,836 DEBUG [PopConnection-53324] davmail  - executeFollowRedirects: https://mail.DOMAIN.it/owa/auth/logon.aspx?url=https://mail.DOMAIN.it/owa/&reason=0 redirectCount:2
2010-09-16 10:21:48,893 DEBUG [PopConnection-53324] davmail.exchange.ExchangeSession  - Form based authentication detected
2010-09-16 10:21:48,916 DEBUG [PopConnection-53324] davmail.exchange.ExchangeSession  - Detected script based logon, redirect to form at https://mail.DOMAIN.it/owa/auth/logon.aspx?replaceCurrent=1&url=https%3a%2f%2fmail.DOMAIN.it%2fowa%2f
2010-09-16 10:21:48,917 DEBUG [PopConnection-53324] davmail  - executeFollowRedirects(https://mail.DOMAIN.it/owa/auth/logon.aspx?replaceCurrent=1&url=https%3a%2f%2fmail.DOMAIN.it%2fowa%2f)
2010-09-16 10:21:48,980 DEBUG [PopConnection-53324] davmail  - executeFollowRedirects(https://mail.DOMAIN.it/owa/auth/owaauth.dll)
2010-09-16 10:21:49,003 DEBUG [PopConnection-53324] davmail  - executeFollowRedirects: https://mail.DOMAIN.it/owa/ redirectCount:1
2010-09-16 10:21:49,134 DEBUG [PopConnection-53324] davmail.exchange.ExchangeSession  - Current user email is [email protected], alias is NAME.SURNAME, mailPath is /exchange/[email protected]/
2010-09-16 10:21:49,402 ERROR [PopConnection-53324] davmail.exchange.ExchangeSession  - 401 Unauthorized at /exchange/[email protected]/
2010-09-16 10:21:49,403 ERROR [PopConnection-53324] davmail.exchange.ExchangeSession  - Unable to get mail folder at /exchange/[email protected]/, Webdav not available on Exchange server
2010-09-16 10:21:49,403 ERROR [PopConnection-53324] davmail  - Unable to get mail folder at /exchange/[email protected]/, Webdav not available on Exchange server
davmail.exception.DavMailAuthenticationException: Unable to get mail folder at /exchange/[email protected]/, Webdav not available on Exchange server
 at davmail.exchange.dav.DavExchangeSession.getWellKnownFolders(DavExchangeSession.java:716)
 at davmail.exchange.dav.DavExchangeSession.buildSessionInfo(DavExchangeSession.java:429)
 at davmail.exchange.ExchangeSession.<init>(ExchangeSession.java:181)
 at davmail.exchange.dav.DavExchangeSession.<init>(DavExchangeSession.java:421)
 at davmail.exchange.ExchangeSessionFactory.getInstance(ExchangeSessionFactory.java:117)
 at davmail.pop.PopConnection.run(PopConnection.java:137)
2010-09-16 10:21:49,405 DEBUG [PopConnection-53324] davmail  - > -ERR Unable to get mail folder at /exchange/[email protected]/, Webdav not available on Exchange server

我找到了一些有关在info.plist中添加选项的内容,但是我对Java的了解不足,无法理解该怎么做以及在哪里做……如果有人可以帮助您,将非常感激。

最佳答案

@thecrius,因为Webdav在Exchange服务器上不可用,所以您可以尝试使用EWS(Exchange Web服务)。这是DavMail论坛中的thread,可能会有所帮助。

关于java - 通过DavMail将Thunderbird连接到Exchange,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/3725092/

10-10 14:32