Problem with GETQUOTAROOT under proxyauth login

Dear all,

I am having some kind of troubles using the GETQUOTAROOT imap command under a login done through proxyauth.

I am using the following sequence :

* OK [CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS CHILDREN BINARY LANGUAGE XSENDER X-NETSCAPE XSERVERINFO AUTH=PLAIN] imap.blabla.fr Ready

aa login admin admin

aa OK User logged in

aa proxyauth john.doe

aa OK Completed

aa getquotaroot inbox

aa NO Mailbox does not exist

aa logout

* BYE LOGOUT received

aa OK Completed

Please note the result of the GETQUOTAROOT command and read next sequence :

* OK [CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS CHILDREN BINARY LANGUAGE XSENDER X-NETSCAPE XSERVERINFO AUTH=PLAIN] imap.blabla.fr Ready

aa login john.doe password

aa OK User logged in

aa getquotaroot inbox

* QUOTAROOT inbox user/john.doe

* QUOTA user/john.doe (STORAGE 229 102400)

aa OK Completed

So, we have two different replies, the second one being the correct one.

Does anyone have any idea on how to fix this problem ?

I am using MS 6.2 on Solaris 9.

Best regards.

--

Eric

[1233 byte] By [edechauxa] at [2007-11-27 3:36:00]
# 1

Hi,

Works fine for me with 118207-63:

bash-2.05$ telnet myhost 143

Trying 1.2.3.4...

Connected to myhost.aus.sun.com.

Escape character is '^]'.

* OK [CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS CHILDREN BINARY UNSELECT LANGUAGE STARTTLS XSENDER X-NETSCAPE XSERVERINFO AUTH=PLAIN] myhost.aus.sun.com IMAP4 service (Sun Java(tm) System Messaging Server 6.2-8.04 (built Feb 28 2007))

. login admin secret

. OK User logged in

. proxyauth user001

. OK Completed

. getquotaroot inbox

* QUOTAROOT inbox user/user001

* QUOTA user/user001 (STORAGE 1562 10240)

. OK Completed

Regards,

Shane.

shane_hjortha at 2007-7-12 8:39:13 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 2
Great,we just have planned this patch installation on stores. Maybe we should also install it on mmp.Thanks for your reply.--Eric
edechauxa at 2007-7-12 8:39:13 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 3
I have just found out that it works great when I connect directly to the imap on store.It fails when I connect through the mmp imap proxy.Any idea why ?Best regards.--Eric
edechauxa at 2007-7-12 8:39:13 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 4

Hi,

> I have just found out that it works great when I

> connect directly to the imap on store.

Yep that would explain it.

> It fails when I connect through the mmp imap proxy.

>

> Any idea why ?

Where does the 'admin' account reside? Is it on the same mailhost as the user in question?

Regards,

Shane.

shane_hjortha at 2007-7-12 8:39:13 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 5
Proxyauth through MMP was never intended to work.Unsupported.
jay_plesseta at 2007-7-12 8:39:13 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 6
Good news,We have found a way to make it work. We are now using the AUTHENTICATE PLAIN 'magic' string.It is too bad this feature is not listed in the documentation...
edechauxa at 2007-7-12 8:39:13 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 7

I could write a book on things that aren't documented :)

Just for future reference, this is an example on how to use PLAIN authentication with the proxyauth user:

Get the Base64 encoded form of the string <USERNAME><ADMIN USER><ADMIN PASSWORD>

e.g. For user 'shjorth' and an admin user of 'admin' with password 'secret'

# /usr/local/bin/perl -MMIME::Base64 -e 'print encode_base64("shjorth\0admin\0secret")'

c2hqb3J0aABhZG1pbgBzZWNyZXQ=

# telnet myserver 143

Trying 1.2.3.4...

Connected to myserver.aus.sun.com.

Escape character is '^]'.

* OK [CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS CHILDREN BINARY UNSELECT LANGUAGE STARTTLS XSENDER X-NETSCAPE XSERVERINFO AUTH=PLAIN] myserver.aus.sun.com IMAP4 service (Sun Java(tm) System Messaging Server 6.2-8.04 (built Feb 28 2007))

. AUTHENTICATE PLAIN

+

c2hqb3J0aABhZG1pbgBzZWNyZXQ=

. OK User logged in

. getquotaroot INBOX

* QUOTAROOT INBOX user/shjorth

* QUOTA user/shjorth (STORAGE 1663 10240)

. OK Completed

Obviously you shouldn't be passing the admin user & password over a clear-text non-secure link (use 993/SSL/IMAPS instead).

Regards,

Shane.

shane_hjortha at 2007-7-12 8:39:13 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...