Javamail - Access MS Exchange non default Mail Box

Hi
My MS Exchange user has access to multiple mailboxes on an Exchange Server.
Using java mail I can connect to my default mailbox; however I cannot find away to connect to a non default mailbox that I have access to. I am using the "imap" protocol.
Connection code is as follows.
Properties props = System.getProperties();
props.setProperty("mail.imap.auth.ntlm.domain",domain);
Session session = Session.getInstance(props, null);
session.setDebug(debug);
store = session.getStore(protocol);
store.connect(host, user, password);
The function store.getSharedNamespaces() only returns a single entry in the array for "Public Folders".
The function store.getPersonalNamespaces() returns a 0 length array.
The function store.getUserNamespaces(user) returns a 0 length array.
Is there any way to access another mailbox that the user has access to?
Thanks for your help.
Nick.

Hi
As a user I will have a mail box (or mail store). My colleagues will have their own mail boxes. There will also be some shared mailboxes. Typically permissions will ensure that users cannot access other users mail boxes and appropriate permissions will ensure that shared mailboxes are accessible by the permitted users.
Within a mailbox, folders can be created for storing mails etc.
From my user account I wish to be able to access a mailbox other than my own (default). Permissions have been correctly set so the some mailboxes are accessible to other users.
If its possible to access another mailbox by using the folder, then what is the format for the folder that allows me to go beyond my users default mailbox.
Example.
I have mailboxes called.
Nick1
John1
HelpDesk
I connect to exchange as Nick1 and have access to mailbox Nick1 and HelpDesk. Using the javamail API I can access the emails and folders in the Nick1 mailbox, but cannot access the HelpDesk mailbox at all.
Does that make it any clearer?
Thanks.
Nick.

Similar Messages

  • How to make the delegeted mail box as a default mail box while sending .

    Hi,
    Good afternoon!
    I have delegated one mail box in outlook .when i try to send the mail it is showing the my name in from (New Mail).
    I need to change the this default setting . i want delegated mail id in from when i open a new mail .
     Thanks
    Amit Saxena
    Delhi India .

    Hi,
    If you have Full Access permissions on your delegate mailbox, we
    can configure your mail profile with that mailbox instead and add your own as a delegate mailbox.
    In addition, we can use Macro code to set the From address programmatically which
    works for any address that you have Send As or Send on Behalf Of permissions for.
    For more information, please refer to the article below:
    http://www.howto-outlook.com/howto/setfromaddress.htm#macrocode
    Best Regards,
    Steve Fan
    TechNet Community Support

  • Office 365 to Exchange 2010 Hybrid Mail Box Migration

    I'm working on setting up a pilot for Office 365. We have Exchange 2010 SP3, in a DAG configuration (two front end, and 2 mail box servers). I have setup the hybrid configuration. All firewall ports are open.
    Problem 1: We can move mail boxes up to office 365 with out a problem. When we try to move them back we get
    "[email protected]
    Status: Failed
    [email protected] Skipped item details
    Data migrated:  Migration rate:  Error: MigrationTransientException: The call to ‎'https://webmail.contoso.com/EWS/mrsproxy.svc City-ExchCAS1.contoso.local ‎(14.3.178.0 caps:05FFFF)‎‎' failed. Error
    details: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults ‎(either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior)‎
    on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.. --> The call to ‎'https://webmail.contoso.com/EWS/mrsproxy.svc
    City-ExchCAS1.contoso.local ‎(14.3.178.0 caps:05FFFF)‎‎' failed. Error details: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults ‎(either from ServiceBehaviorAttribute
    or from the <serviceDebug> configuration behavior)‎ on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.. --> The
    server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults ‎(either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior)‎ on the server
    in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs."
    I know someone is going to say "Trun on IncludeExceptionDetailInFaults", please tell me how to do that. I'm not an exchange expert, or an IIS expert.
    Problem 2: We can email to account in Office 365. Office 365 can't email to on-site exchange. We do have Mimecast as a spam filter, and I've been digging in that to see if that is a problem.
    Just looking to see if anyone has an idea of thing to check for this.

    Fixed
    1. Connect to the Office 365 Portal http://portal.microsoftonline.com 
    2. Click “Admin” in the upper left hand corner and go to “Exchange”
    3. Click “migration”
    4. Click “+” and then “Migrate from Exchange Online”
    5. Click “+” 
    6. Add the users that you need to move back to Exchange on site at Dedicated Computing
    7. Click “next”
    8. Click “next”
    9. Put any name for “*New migration batch name:”
    10. Put <your email domain> for “*Target delivery domain:”
    11. Put GUID of target database in for “*Target database:”
    Commands for Exchange Management PowerShell to find GUID
    i. Get-MailboxDatabase
    ii. Get-MailboxDatabase <insert database name from last command> |fl
    12. Click “next”
    13. Make sure both radio buttons for Automatically are check, and click “new”

  • E-61, change default mail box on display

    How do I change the mail box showong in the display under the menu line?
    how do I add / delete items on the displayed menu?
    thanks

    You cannot do that.

  • Error:[The specified object was not found in the store] when trying to read another mail box using Delegate access

    Hi all,
    I need to create service to access all unread mails of  other mailbox's every time in Exchange server 2013, for that i trying to use Delegate access.
    but i am not succeed. I am getting Error Every time : [The specified object was not found in the store]
     error shows in FolderId in  
    var folderId = new FolderId(WellKnownFolderName.Inbox, userMailbox);
    List<DelegateUser> newDelegates = new List<DelegateUser>();
    DelegateUser emailDelegate = new DelegateUser("[email protected]");
    emailDelegate.Permissions.InboxFolderPermissionLevel = DelegateFolderPermissionLevel.Editor;
    newDelegates.Add(emailDelegate);
    Mailbox mailbox = new Mailbox("[email protected]");
    Collection<DelegateUserResponse> response = service.AddDelegates(mailbox, MeetingRequestsDeliveryScope.DelegatesAndSendInformationToMe, newDelegates);  var userMailbox = new Mailbox(useremail);
        var folderId = new FolderId(WellKnownFolderName.Inbox, userMailbox);
        var itemView = new ItemView(20);   
        var userItems = service.FindItems(folderId, itemView);
     i changed my code in many ways by adding new Delegate User with different folder permissions.
     but i am getting same Error, Please help me.

    That error means you don't have rights to the Mailbox your trying to access. In Exchange by default the only user that has access to mailbox is the owner of the Mailbox, Exchange Administration rights does not grant you access to another users mailbox. You
    need to either specifically grant rights to each mailbox using Add-MailboxPermissions or use EWS impersonation where you can impersonate the owner of the Mailbox see
    http://msdn.microsoft.com/en-us/library/bb204095(EXCHG.140).aspx and
    http://msdn.microsoft.com/en-us/library/office/dd633680(v=exchg.80).aspx
    Cheers
    Glen

  • Exchange 2003 - 2010 Local Mail box move Error

    Hey everyone,
    I have just finished a transition from Microsoft Exchange 2003 to 2010, and I am having problem with moving the Legacy mailboxes over.
    I have managed to move all the mail boxes over bar 2, using the " New local move Request".
    So the problem is just these 2 mail boxes with the same error as below.
    Any Advice?
    Summary: 1 item(s). 0 succeeded, 1 failed.
    Elapsed time: 00:00:39
    Sifiso Mguni
    Failed
    Error:
    Service 'net.tcp://tvt-exchange.vtrust.local/Microsoft.Exchange.MailboxReplicationService' encountered an exception. Error: MapiExceptionLogonFailed: Unable to open message store. (hr=0x80040111, ec=-2147221231)
    Diagnostic context:
        Lid: 18969   EcDoRpcExt2 called [length=131]
        Lid: 27161   EcDoRpcExt2 returned [ec=0x0][length=48][latency=0]
        Lid: 23226   --- ROP Parse Start ---
        Lid: 27962   ROP: ropLogon [254]
        Lid: 17082   ROP Error: 0x80040111
        Lid: 26937 
        Lid: 21921   StoreEc: 0x80040111
        Lid: 31418   --- ROP Parse Done ---
        Lid: 22753 
        Lid: 21817   ROP Failure: 0x80040111
        Lid: 26297 
        Lid: 16585   StoreEc: 0x80040111
        Lid: 32441 
        Lid: 1706    StoreEc: 0x80040111
        Lid: 24761 
        Lid: 20665   StoreEc: 0x80040111
        Lid: 25785 
        Lid: 29881   StoreEc: 0x80040111
    Exception details: MapiExceptionLogonFailed (80040111): MapiExceptionLogonFailed: Unable to open message store. (hr=0x80040111, ec=-2147221231)
    Diagnostic context:
        Lid: 18969   EcDoRpcExt2 called [length=131]
        Lid: 27161   EcDoRpcExt2 returned [ec=0x0][length=48][latency=0]
        Lid: 23226   --- ROP Parse Start ---
        Lid: 27962   ROP: ropLogon [254]
        Lid: 17082   ROP Error: 0x80040111
        Lid: 26937 
        Lid: 21921   StoreEc: 0x80040111
        Lid: 31418   --- ROP Parse Done ---
        Lid: 22753 
        Lid: 21817   ROP Failure: 0x80040111
        Lid: 26297 
        Lid: 16585   StoreEc: 0x80040111
        Lid: 32441 
        Lid: 1706    StoreEc: 0x80040111
        Lid: 24761 
        Lid: 20665   StoreEc: 0x80040111
        Lid: 25785 
        Lid: 29881   StoreEc: 0x80040111
    Exchange Management Shell command attempted:
    'vtrust.local/Valley Trust Users/Users/Staff/Sifiso Mguni' | New-MoveRequest -TargetDatabase 'Mailbox Database 0271422377'
    Elapsed Time: 00:00:39

    HI. I had the same problem while trying to migrate a user from Exchange 2003 to 2010. And the same error as you have appeared. I tried to skip more e-mails in case some fails but couldn't get successful.
    Check if the user have accessed the mail at all on Exchange 2003 because if the user didn't accessed it it may contain many mails and when we try to migrate the mailbox, the mailbox size on Exchange 2003 may be grater than on the 2010.
    On my case after many reading we just see that the user didn't access the mail at all on our Exchange 2003. (Let me know if you need to know how you can check if the user accessed the mail or not or you can just google it). So what we have done is we just
    reset the user password on Active Directory. Because as you can see the error is related with Logon Failure.
    This solved the issue for me. Can you check this way
    Thanks

  • How to extend Exchange User mail box session limit in Exchange 2013

    Hi,
    How to extend Exchange User mail box session limit in Exchange 2013??

    To configure default mailbox session limit, check this well described MS-Library link :http://technet.microsoft.com/en-us/library/ff477612%28v=exchg.141%29.aspx#SL
    Hope, this helps you.

  • Shortcut for selecting non-default button in dialog boxes

    I seem to remember that there was a keyboard shortcut many OSs ago. I can't seem to find it or replicate it. Particularly, I would like to choose the non-default button in a dialog box in Acrobat Pro for productivity's sake.
    Thanks, Jon

    Hi Jon, and a warm welcome to the forums!
    No way to tell if Adobe follows the standard, but TAB generally moves through the Dialog buttons & Space Bar selects that choice where Enter/Return chooses the default blue button. Sometimes the CMD key + the first letter of the button selects it iirc. Sometimes the esc key passes for Cancel.
    If it's not, in Sys Prefs change if the “Full keyboard access” under keyboard shortcuts is set to use text boxes and lists only, switch it to “All controls”.
    http://forums.macnn.com/90/mac-os-x/401945/keyboard-shortcuts-for-dialog-pop-ups /

  • Mail on iMac not accessing MS Exchange server but both iPhone and iPad access the same account with no problems.

    I have been using an iPhone and iPad to access my work emails via our MS Exchange server for a number of years now with no problems at all.  I recently replaced my home PC with an iMac (first Mac I have owned) but cannot get it to communicate with the exchange server.  I've checked and re-checked the information on the iMac and my iPad - I even deleted the mail account on the iPad and input the details concurrently with setting up on the iMac - but the Mac will not access the exchange server.
    I receive the message "The Exchange server "---------------" rejected the password for user "------"  Enter you password again or cancel."  I am using the correct password.  iPad and iPhone are logging on using that password fine.  iMac just ends up repeating this message.
    Our IT support at work assure me that there is no reason from their end for it not to work, and reasonably point to it working using the iPhone etc.
    I'd be extremely grateful if anyone can provide a solution to this basic, but extremely frustrating, little problem.

    iPhone and iPad use a different way of accessing the server.
    I don't know the exact details, but we are using Zarafa instead of Exchange and have the same problem:
    iPhone and the likes can connect to Zarafas z-push interface, which is some identical interface to the native Exchange interface, while the desktop e-mail application tries to interface with the web front end (via http) of the server.
    These are completely different setups and it depends on the actual installation of the server to get this going.
    So, you will most likely need different access parameters for the desktop - and the web mail feature has to be enabled on the Exchange server.
    In my opinion using the web mail interface is just silly. On the other hand, the native protocol has less features comparedto the web front end, so you are somehow stuck with sins of the past.
    Good luck!

  • Outlook 2013 set as default mail client but still shows error box saying it isn't?

    We have recently installed Office 2013 64-bit on 4 servers. We previously used Outlook 2007 64-bit.
    We set Outlook 2013 as the default mail client and do not have another mail client installed on the servers. However when you first login you get an error message box that says you have no default mail client 'either there is no default mail client or the
    current mail client cannot fulfill the messaging request'.
    I have checked all defaults to be for Outlook 2013.
    How can I solve this issue? I am an administrator.

    Try different Method to set Outlook 2013 as the default mail client to check the result. Thanks.
    Method 1:Set as default within outlook.
    -File > Options > General Tab >  select the "Make Outlook the default program for E-mail, Contacts, and Calendar"
    check box.
    Method 2: Set as default from the internet explorer.
    -Tool > Internet Options > Programs Tab > Set programs 
    Method 3: Set as default from control panel.
    1.Navigate to Control Panel\Default Programs\Set Default Programs
    2.Click on the outlook icon on the left hand side.
    3.Set as default.
    We may also try to create anther windows user profile in the same machine to check if the issue still persists. Thanks.
    Tony Chen
    TechNet Community Support

  • Apple tv 2 - root password has been changed to non default.   I need to access apple tv 2.   how do i get access with a forgotten password

    apple tv 2 - root password has been changed to non default.   I need to access apple tv 2.   how do i get access with a forgotten password

    Welcome to the Apple Community.
    It depends on which password you are referring to, but generally speaking you can always restore the Apple TV.

  • Our company have just upgraded to iOS 6 and the majority of the users are now receiving the following error 'Cannot Get Mail – Server error. Contact your server administrator' when accessing ms exchange this never happened on iOS 5 can anyone help

    Our company have just upgraded to iOS 6 and the majority of the users are now receiving the following error 'Cannot Get Mail – Server error. Contact your server administrator' when accessing ms exchange this never happened on iOS 5 can anyone help

    Have you tried deleting the account and re-adding it on the phone?
    What version of Exchange server are you running?

  • Mail.app supports accessing to Exchange Server through WebDAV OWA

    I have been reading many threads from both here and Microsoft in order to get my mail.app work with my Exchange Server via WebDAV and/ or OWA.
    My case is that I am fine with Entourage but not mail.app.
    Something a few of us may miss is that Mail.app automatically amend the field "Outlook Web Access Server" to something like mail.myserver.com regardless of what you type, as in most cases the correct address is mail.myserver.com/exchange
    So I am digging into my ~/Library/Application Support/Mail and try to find where exactly mail.app store the Account Information but I came out with no luck.
    Can someone guide me through where is the setting stored because I think forcefully change that "auto change" Outlook Web Access Server address may well fix the problem many of us face.

    With 10.5 and Mail 3.0, any luck for this topic?

  • Can't access yahoo account. continues to bounce back from mail box asking password?

    I can not access my Yahoo account.  When I log in and go to mail box I get bounced back to "Verify Password".  Need held.

    A number of posters are reporting this problem. It could be a problem with the Yahoo server. If deleting and setting up thevaccount again is not the solution then give it a few hours.

  • Mail box in NON alphabetical order

    Hello,
    I wish to change my mail box order from strict alphabetic structure to a drag and drop order of my preference. Is this possible?

    Hello Brian.
    No, it isn’t possible. The mailbox list is like the Finder’s View > as List or View > as Columns modes.
    You may name your mailboxes with a numeric prefix (e.g. “01-”, “02-”, etc.) to make them appear in the order you want — the prefix doesn’t have to be unique for each mailbox, nor do you have to use increments of 1, i.e. you don’t have to rename all the mailboxes every time you want to change the order of one of them.

Maybe you are looking for

  • With in Plant - Storage loc to Storage loc STO in ECC 6.0?

    In case of raw materials, we have to bring from outside godowns to inside plant storage location. As per business requirement we are treating the outside godowns as storage location of the same plant. In this scenario with in Plant, storage location

  • CATS_APPR_LITE - Default Selection Criteria?

    Hi Gurus, I could use a little help setting the default selection criteria fields for the CATS_APPR_LITE transaction.  Please provide directions on how after choosing selection fields desired by business ( i.e. Time Administrator) how to make the cho

  • Facebook app crashes immediately upon opening

    For some reason, I can not open Facebook app on iPhone or iPad .it crashes and closes immediately upon opening. Any ideas?

  • Execution of Dybamic Xsql pages

    Hello all, I am interested to know whether execution of dynamic xsql pages is possible? What I mean is, whether it is mandatory to have the physical xsql page on the disk? Can we dynamically form a xsql page and submit it (Without specifying URL) to

  • Where is stored the Folder label registry location?

    When I put a red label on a File that has xmp metadata, I can retrieve these values later and this will be stored in the file or in a side-car xmp file. But Folder can't have xmp. In this case, where is stored this info about the color label of a Fol