Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8327393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:05:39+00:00 2026-06-09T01:05:39+00:00

I want to access a shared mailbox (NOT FOLDER) via Javamail API (1.4.5) using

  • 0

I want to access a shared mailbox (NOT FOLDER) via Javamail API (1.4.5) using IMAP(s) with plain logon. The mailserver is a Exchange Server 2010.

User: user1 (user1@domain.com)
pwd: xxxx

shared mailbox: shared_MB@domain.com

I´ve managed to get access to the user1 – mailbox:

    Session session = Session.getInstance(properties, new ExchangeAuthenticator(username, password));
        session.setDebug(true);

        Store store = session.getStore("imaps");

        store.connect(imapHost, username, password);

properties:

mail.imaps.socketFactory.port = 993

mail.imaps.starttls.enable = true

mail.imaps.socketFactory.class = javax.net.ssl.SSLSocketFactory

mail.imaps.socketFactory.fallback = false

username = user1@domain.com

password = xxxx

–> this works just fine! But now i want to access the additional mailbox by changing the login-String:

username=user1@domain.com/shared_MB

–> unfortunately I´m getting an “NO AUTHENTICATE” message:

   DEBUG IMAP: AUTHENTICATE PLAIN command result: A1 NO AUTHENTICATE failed.

I was able to get access with Thunderbird, so I think there is something missing in my code…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T01:05:41+00:00Added an answer on June 9, 2026 at 1:05 am

    I am doing the following and it is working fine for me

    properties = System.getProperties();
    properties.setProperty("mail.imaps.auth.plain.disable", "true");
    properties.setProperty("mail.imaps.auth.ntlm.disable", "true");
    Session session = Session.getInstance(properties, null);
    store = session.getStore("imaps");
    store.connect("HOST", PORT, "DOMAIN\\USER\\SHAREDACCOUNT","pwd");
    

    Here
    DOMAIN\\USER\\SHAREDACCOUNT would be like this
    suppose email account is tarun@abc.com then
    abc\\tarun\\shared_MB

    You have to also enter the password of tarun@abc.com account.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Redemption to work with outlook 2003. I want to access folder
I want to access a repository using both GIT and SVN clients. A way
I want to access the clipboard using Python 3.1. I've obviously come across win32clipboard,
If I have SSH access to a shared server (running centOS) and I want
I want to access shared preferences on alarm receiver activity and database also.Is it
I want to access a file via c# which is created and still processed
I am using Emacs on Linux and would want to know how to access
I have some shared preferences (latitude, longitude) that I want to access from a
I want to access MySQL through ruby on a shared linux server. I figure
I want private variables to be constructed for each child and not shared. (That's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.