This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

How to access shared mailboxes using JavaMail

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have few mail boxes (on Microsoft Exchange server 5.5) which do not have specific domain user name and password. Specific users are given restricted access to these mailboxes.

In MS Outlook, users can see these mailboxes by adding them as Additional mail boxes to their mail profile through advanced settings.

We are designing an application which reads mails from these mailboxes. Since the mailbox has no password associated with it, we need to use the authentication of specific users who have been given access.

We tried methods in the class com.sun.mail.imap.IMAPStore to access Shared, Personal and User namespaces. The public folders can be accessed through shared namespaces. But none of these methods were able to access these additional mail boxes that we added.

I believe there should be some workaround to access such mailboxes.

Can anyone tell me how to get this issue resolved ?

Appreciate any help in this regard.

Thanks,
Anky
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

I'm not sure the issue can be resolved. This sounds like something that's specific to Exchange, which a general-purpose API like JavaMail wouldn't know anything about. You may have to use an Exchange-specific Java library for doing this; most likely you'll have to pay for that.
 
Anky Pop
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ulf.

That's disappointing. So i am thinking the only this can be done is by asking my networking fellas to create a login id / password for these accounts and then maybe logging in using that. But i thought using IMAP i could get all the mailboxes in the shared namespace !! Then this is nothing better than POP where i can access only my mailbox ?

Anky
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If Exchange was nothing more than a POP/IMAP server, then it would be possible to use all its features with any standard mail client. But it's much more than that, and the Outlook client uses additional protocols beyond the standard mail protocols to communicate with Exchange.
 
The happiness of your life depends upon the quality of your thoughts -Marcus Aurelius ... think about this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic