You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Samuel Marinov <sa...@centrevilletech.com> on 2018/07/13 17:21:19 UTC

Quotas not updating

Howdy!

I've setup James using the JPA mailbox format. When I run 
"./james-cli.sh GetStorageQuota user@domain.com" it shows the mailbox is 
at 0 B. Any pointers?


Thanks,

Samuel Marinov


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Quotas not updating

Posted by Benoit Tellier <bt...@linagora.com>.
Hey.

If you enable quotas while already having data, then delete it, the
count can go negative, yes.

I imagine we would need to enforce quota re-calculation upon first
update. (This is not done for JPA and Cassandra, as far as I know...)

Thanks for the feedback.

I created this ticket: https://issues.apache.org/jira/browse/MAILBOX-346

Would you like to be contributing on this issue?

Benoit

Le 16/07/2018 à 23:02, Samuel Marinov a écrit :
> Hey, Benoit,
> Thanks a lot! That helped. I had quotas enabled, but I didn’t realize what a quota root was. Also, now that I can see the quotas, it looks like one of them is at negative storage. Why is that?
> 
> Thanks,
> Samuel Marinov
> 
>> On Jul 15, 2018, at 11:58 PM, Benoit Tellier <bt...@linagora.com> wrote:
>>
>> Hi Samuel,
>>
>> -1. GetStorageQuota do require a QuotaRoot as a parameter and not a
>> username.
>>
>> You can get the quota root to be used by calling the
>>
>> "./james-cli.sh GetQuotaRoot #private user@domain.com INBOX" command
>>
>> Note that quota root should be "#private&user@domain.com" by default.
>>
>> -2. If you are using Spring, did you took a look at "quota.xml" file?
>>
>> By default, quotas are not enabled (because some implementations do not
>> supports this).
>>
>> You can follow the instruction in that file to set this correctly up, if
>> need be.
>>
>> Cheers,
>>
>> Benoit
>>
>> Le 14/07/2018 à 00:21, Samuel Marinov a écrit :
>>> Howdy!
>>>
>>> I've setup James using the JPA mailbox format. When I run
>>> "./james-cli.sh GetStorageQuota user@domain.com" it shows the mailbox is
>>> at 0 B. Any pointers?
>>>
>>>
>>> Thanks,
>>>
>>> Samuel Marinov
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Quotas not updating

Posted by Samuel Marinov <sa...@centrevilletech.com>.
Hey, Benoit,
Thanks a lot! That helped. I had quotas enabled, but I didn’t realize what a quota root was. Also, now that I can see the quotas, it looks like one of them is at negative storage. Why is that?

Thanks,
Samuel Marinov

> On Jul 15, 2018, at 11:58 PM, Benoit Tellier <bt...@linagora.com> wrote:
> 
> Hi Samuel,
> 
> -1. GetStorageQuota do require a QuotaRoot as a parameter and not a
> username.
> 
> You can get the quota root to be used by calling the
> 
> "./james-cli.sh GetQuotaRoot #private user@domain.com INBOX" command
> 
> Note that quota root should be "#private&user@domain.com" by default.
> 
> -2. If you are using Spring, did you took a look at "quota.xml" file?
> 
> By default, quotas are not enabled (because some implementations do not
> supports this).
> 
> You can follow the instruction in that file to set this correctly up, if
> need be.
> 
> Cheers,
> 
> Benoit
> 
> Le 14/07/2018 à 00:21, Samuel Marinov a écrit :
>> Howdy!
>> 
>> I've setup James using the JPA mailbox format. When I run
>> "./james-cli.sh GetStorageQuota user@domain.com" it shows the mailbox is
>> at 0 B. Any pointers?
>> 
>> 
>> Thanks,
>> 
>> Samuel Marinov
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Quotas not updating

Posted by Benoit Tellier <bt...@linagora.com>.
Hi Samuel,

 -1. GetStorageQuota do require a QuotaRoot as a parameter and not a
username.

You can get the quota root to be used by calling the

"./james-cli.sh GetQuotaRoot #private user@domain.com INBOX" command

Note that quota root should be "#private&user@domain.com" by default.

 -2. If you are using Spring, did you took a look at "quota.xml" file?

By default, quotas are not enabled (because some implementations do not
supports this).

You can follow the instruction in that file to set this correctly up, if
need be.

Cheers,

Benoit

Le 14/07/2018 à 00:21, Samuel Marinov a écrit :
> Howdy!
> 
> I've setup James using the JPA mailbox format. When I run
> "./james-cli.sh GetStorageQuota user@domain.com" it shows the mailbox is
> at 0 B. Any pointers?
> 
> 
> Thanks,
> 
> Samuel Marinov
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org