getquota don't work.

I'm trying to use on command line mode the getquota in order to put it in a script and to change the quota if it's lower than a certain value.

When I try to execute this command :

. getquota mailboxname

I receive the message :

NO Quota root does not exist.

What can I do to resolve this problem ?

I must know the actual quota and user after the command setquota.

Rgds.

JP

[428 byte] By [JPDa] at [2007-11-26 17:21:01]
# 1
Which version of Sun JES Messaging Server do you use?Since iPlanet Messaging Server there is./imquotacheck -u usernameto check user's quota and usage.
Siegfried-Ma at 2007-7-8 23:49:01 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 2

It's the 6.2-1.

I'm writing a perl script which uses CPAN modules and I need to use IMAP commands.

I succeeded yesterday to execute the command getquota, the "mistake" I made is to foget user/ before the mailboxname.

When I use quetquota user/mailbox it works.

But now I have the problem with setquota. I execute setquota user/mailbox (storage 50000)

Manually it's ok, but with the cpan module IMAPTalk, it says ok but nothing is changed.

Rgds

JPDa at 2007-7-8 23:49:01 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 3
Messaging Server has other mechanisms for setting a user's quota. Specifically, the entry in ldap. We don't allow users to configure their own quota.
jay_plesseta at 2007-7-8 23:49:01 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 4

Hi,

> But now I have the problem with setquota. I execute

> setquota user/mailbox (storage 50000)

> Manually it's ok, but with the cpan module IMAPTalk,

> it says ok but nothing is changed.

Nothing is changed due to this mechanism not being available as per what Jay noted. Although the change request may 'succeed' it doesn't actually do anything.

If you want to change the mailbox quota of an individual user you will need to change the mailquota: LDAP attribute for the user. You can change the 'default' quota but setting "store.defaultmailboxquota".

Regards,

Shane.

shane_hjortha at 2007-7-8 23:49:01 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...