Win a copy of Head First Android this week in the Android forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

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: 43027
76
  • 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: 43027
76
  • 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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic