是否可以使用JavaMail和Apache Camel Mail(IMAP)通过服务帐户与Microsoft Exchange共享邮箱连接? [英] Possible to connect with a Microsoft Exchange shared mailbox via service account using JavaMail and Apache Camel Mail (IMAP)?

查看:98
本文介绍了是否可以使用JavaMail和Apache Camel Mail(IMAP)通过服务帐户与Microsoft Exchange共享邮箱连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用Apache Camel通过IMAP连接到我们的收件箱.Apache Camel Mail组件基于JavaMail构建.

We are using Apache Camel to connect via IMAP to our inbox. The Apache Camel Mail components are build on JavaMail.

我们的测试服务器使用Outlook和Office365.我们使用Outlook.office365.com作为主机/域,个人用户的电子邮件帐户是用户名,并带有其密码.考虑到凭据是连接到其各自收件箱的注册个人用户的凭据,此方法效果很好.

Our testing server is using Outlook and Office 365. We are using outlook.office365.com as the host/domain and a personal user's email account is the username and so forth with their password. This works well, considering the credentials are those of a registered personal user connecting to their individual inbox.

<from uri=imaps:outlook.office.365.com:993?username=un@domain.com&password=blah/>

生产服务器是一个共享邮箱,我们在其中设置了服务帐户.理想情况下,此服务帐户将充当邮箱的用户".邮箱没有附加实际用户".我们希望将服务帐户的用户名用作"un"字段,并使用该帐户的密码来获得访问权限.

The production server is a shared mailbox where we have a service account set up. This service account will ideally act as the 'user' of the mailbox. There is not an 'actual user' attached to the mailbox. We are hoping to use the service account username as the 'un' field and the password for the account to gain access.

<from uri=imaps:host-domain:993?username=ServiceAccuntUN&password=ServiceAccountPW/>

<from uri=imaps:sharedmailbox@domain.com:993?username=ServiceAccuntUN&password=ServiceAccountPW/>

<from uri=imaps:domain:993?username=sharedmailbox@domain.com/ServiceAccuntUN&password=ServiceAccountPW/>

是否有人希望使用Microsoft Exchange服务帐户共享访问共享邮箱的经验?我不应该说这是 Microsoft Exchange 2010服务器.

Does anybody have any experiences they would like to share using Microsoft Exchange Service Accounts to access shared mailboxes? I should not that this is a Microsoft Exchange 2010 Server.

推荐答案

为进行记录,与Apache Camel组件的连接与典型的Exchange 2010登录名相同.

For the record, connecting with the Apache Camel component works the same as the typical Exchange 2010 login.

用户名属性应为:DOMAIN \ SERVICE_ACCOUNT \ SHARED_MAILBOX_ALIAS

The username property should be: DOMAIN\SERVICE_ACCOUNT\SHARED_MAILBOX_ALIAS

密码应该是服务帐户的密码.

The password should be that of the service account.

我们发现JavaMail和Apache Camel Mail在我们的用例中非常可靠.

We have found JavaMail and Apache Camel Mail to be very reliable in our use case.

(有关其他信息,请参见上面的评论)

(for additional info, see the comments above)

这篇关于是否可以使用JavaMail和Apache Camel Mail(IMAP)通过服务帐户与Microsoft Exchange共享邮箱连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆