プレーンログオンでIMAPを使用してJavamailAPI(1.4.5)経由で共有メールボックス(フォルダではない)にアクセスしたい。メールサーバーはExchangeServer2010です。
ユーザー:user1(user1@domain.com)pwd:xxxx
共有メールボックス:shared_MB@domain.com
user1-メールボックスにアクセスできました:
Session session = Session.getInstance(properties, new ExchangeAuthenticator(username, password));
session.setDebug(true);
Store store = session.getStore("imaps");
store.connect(imapHost, username, password);
プロパティ:
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
パスワード=xxxx
->これは問題なく動作します!しかし今、私はlogin-Stringを変更することによって追加のメールボックスにアクセスしたいと思います:
username = user1 @ domain.com / shared_MB
->残念ながら、「認証されていません」というメッセージが表示されます。
DEBUG IMAP: AUTHENTICATE PLAIN command result: A1 NO AUTHENTICATE failed.
Thunderbirdでアクセスできたので、コードに何か足りないものがあると思います...