Cannot access user mailbox with IMAP and SASL

hi,

When accessing via IMAP, I am trying to use SASL, in order to access a normal user’s mailbox (user9), using only the admin user/password. I understand this is supported by Domino?

I am using javamail, and setting the properties:

props.put(“mail.imap.sasl.enable”, “true”);

props.put(“mail.imap.sasl.authorizationid”, user9);

session = Session.getInstance(props);

currentStore = session.getStore(connectionType);

currentStore.connect(host, port, adminuser, adminpassword);

   }

What happens is that currentStore.connect() successfully connects to a

mailbox, but it is always admin’s mailbox, even if a set an invalid

user in mail.imap.sasl.authorizationid I end up in the admin’s

mailbox.

jdk 1.6

javamail 1.4.2beta

lotus domino 8.0

here is the debug output:

DEBUG: setDebug: JavaMail version 1.4.2-SNAPSHOT

DEBUG: getProvider() returning

javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun

Microsystems, Inc]

DEBUG: mail.imap.fetchsize: 16384

DEBUG: enable SASL

DEBUG: mail.imap.sasl.authorizationid: user9

  • OK Domino IMAP4 Server Release 8.0 ready Wed, 15 Oct 2008 14:41:32 +0200

A0 CAPABILITY

  • CAPABILITY IMAP4rev1 AUTH=PLAIN LITERAL+ NAMESPACE QUOTA UIDPLUS

A0 OK CAPABILITY completed

IMAP DEBUG: AUTH: PLAIN

DEBUG: protocolConnect login, host=172.19.1.179, user=SYSTEM/xxxx,

password=

IMAP SASL DEBUG: Mechanisms: PLAIN

IMAP SASL DEBUG: callback length: 2

IMAP SASL DEBUG: callback 0: javax.security.auth.callback.NameCallback@10c3a08

IMAP SASL DEBUG: callback 1:

javax.security.auth.callback.PasswordCallback@1b6235b

IMAP SASL DEBUG: SASL client PLAIN

A1 AUTHENTICATE PLAIN

IMAP SASL DEBUG: challenge: :

IMAP SASL DEBUG: response: user9

Any idea what the problem is?

thanks indeed