程序问答   发布时间:2022-06-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了使用 apache camel 通过 imaps 连接到 ms exchange 共享邮箱失败,错误为 AUTHENTICATE failed大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

如何解决使用 apache camel 通过 imaps 连接到 ms exchange 共享邮箱失败,错误为 AUTHENTICATE failed?

开发过程中遇到使用 apache camel 通过 imaps 连接到 ms exchange 共享邮箱失败,错误为 AUTHENTICATE failed的问题如何解决?下面主要结合日常开发的经验,给出你关于使用 apache camel 通过 imaps 连接到 ms exchange 共享邮箱失败,错误为 AUTHENTICATE failed的解决方法建议,希望对你解决使用 apache camel 通过 imaps 连接到 ms exchange 共享邮箱失败,错误为 AUTHENTICATE failed有所启发或帮助;

正在运行 Apache Camel (2.25.2) 并通过 imap 连接到邮箱。 我们的配置有效,但不适用于共享邮箱。我们用来连接“普通”邮箱的连接字符串:

imaps://srv.Domain:993?username=UserMb@Domain&password=Pass&foldername=InBox&consumer.delay=60000&copyTo=done&delete=true&mail.imap.starttls.enable=true&mapMailmessage=true

这很好用。 Camel 能够从收件箱和其他文件夹读取/复制等邮件。 为了连接到共享邮箱,我们使用相同的字符串,仅调整 username=

例如:

imaps://srv.Domain:993?username=UserMb@Domain\UserMb2&password=Pass&foldername=InBox&...

.. 它不起作用。

我已经尝试过 Domain\UserMb\UserMb2 或 UserMb@Domain\UserMb2@Domain 或 UserMb@Domain\UserMb2 等。 还有

imaps://UserMb@Domain:Pass@srv.Domain:993?foldername=InBox...

在添加共享邮箱 UserMb2 之前,UserMb 一切正常。

我也在 Thunderbird 中重新检查,使用 UserMb@Domain\UserMb2@Domain 将 UserMb2 映射为共享邮箱,效果很好。

我已经在 Possible to connect with a Microsoft Exchange shared mailbox via service account using JavaMail and Apache Camel Mail (IMAp)? 处阅读了类似的内容,但没有为我们提供正确的解决方案。

有人有想法吗? 谢谢!

解决方法

经过数小时的搜索发现 https://www.mulesoft.org/jira/browse/MULE-9355 添加

@H_637_5@mail.imaps.auth.plain.disable=true&mail.imaps.auth.ntlm.disable=true&mail.imaps.auth.gssapi.disable=true

解决了我的问题。

大佬总结

以上是大佬教程为你收集整理的使用 apache camel 通过 imaps 连接到 ms exchange 共享邮箱失败,错误为 AUTHENTICATE failed全部内容,希望文章能够帮你解决使用 apache camel 通过 imaps 连接到 ms exchange 共享邮箱失败,错误为 AUTHENTICATE failed所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。