Quota Question ...

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
ubumail
Posts: 9
Joined: Fri Sep 12, 2014 10:09 pm

Quota Question ...

Postby ubumail » Wed May 03, 2006 6:36 am

Hi,
How does the quota part of Zimbra work !?
What I mean is, if I set the quota of an account to 250mb does the server hold 250mb for that user to fill up, or does it just monitor the account until it hits 250mb and then start bouncing messages !?
For example, lets say I have 1000mb for mail storage, can I create 1000 accounts and set each accounts quota to 250mb or can I only create 4 accounts with 250mb quota because 250mb x 4 = 1000mb !?
Thanks
Mic


mmike
Posts: 33
Joined: Fri Sep 12, 2014 10:04 pm

Quota Question ...

Postby mmike » Wed May 03, 2006 8:08 am

I think that ZIMBRA just monitor the account until reaching the limit!
But wait confirmation from ZIMBRA team.
@+
Mike
14319KevinH
Ambassador
Ambassador
Posts: 4558
Joined: Fri Sep 12, 2014 9:52 pm

Quota Question ...

Postby 14319KevinH » Thu May 04, 2006 9:46 pm

We only check the user limit. If you give out more quote than you have disk space you may run into problems. So not a very good idea. Of course we do have an option to gzip messages and also only store one copy of each message so you do get some savings but it's still better to ensure you have enough disk space and just increase the quota for those who need more.
gkra
Advanced member
Advanced member
Posts: 53
Joined: Fri Sep 12, 2014 10:36 pm

Quota Question ...

Postby gkra » Wed Apr 02, 2008 12:25 pm

[quote user="14319KevinH"]We only check the user limit. If you give out more quote than you have disk space you may run into problems. So not a very good idea. Of course we do have an option to gzip messages and also only store one copy of each message so you do get some savings but it's still better to ensure you have enough disk space and just increase the quota for those who need more.[/QUOTE]
Wait, the single-message-instance storage is an option? I thought it was an on-by-default feature. If it's an option, where do I turn it on?
ArcaneMagus
Elite member
Elite member
Posts: 1138
Joined: Fri Sep 12, 2014 10:25 pm

Quota Question ...

Postby ArcaneMagus » Wed Apr 02, 2008 3:47 pm

It is on by default. If you have ever rsynced your store directory and watched the log you will occasionally see "messages" in some users that are just symlinks to other real messages.

And yes if you really wanted to you could give out 100K accounts on just that 1GB of storage but it really is best to make sure that you have enough quota to sustain all your users.
1545jasper
Posts: 11
Joined: Fri Sep 12, 2014 11:27 pm

Quota Question ...

Postby 1545jasper » Wed Jun 18, 2008 7:46 am

How does zimbra calculate the space used by a user?

It appears that the mails are stored here:

/zimbra/store dir, with a userid as subdir under it.
Is it that the dir space usage is calculated say for user by:

du -kh /zimbra/store/21
browsing throught the source code is not helping much :-(
Please advice.
Rich Graves
Outstanding Member
Outstanding Member
Posts: 687
Joined: Fri Sep 12, 2014 10:24 pm

Quota Question ...

Postby Rich Graves » Tue Jun 02, 2009 11:05 am

Repeating the previous question:
"How does zimbra calculate the space used by a user?"
Our in-house Zimbra trainer says he just saw his quota usage jump from 50% to 90%. The usual "search -t message larger:20mb" isn't illuminating.
I have a SAN snapshot immediately after upgrading to 5.0.15. As of that time, zmmailbox said:
mailbox: user@example.edu, size: 2.47 GB, messages: 77147, unread: 8666
Today, the same 5.0.15 version of zmmailbox says:
mailbox: user@example.edu, size: 4.66 GB, messages: 92905, unread: 8745
It is possible that a 20% increase in message count led to a 89% increase in byte count, but I find this hard to believe, especially given that we don't see large attachments. He's deleted all messages found by "search -t message 'larger:10mb'", including Trash and Junk, and still we have the unexpectedly large bytecount.
Is there a way to recalculate?
I can't be sure (can I?), but I don't think we've had other sudden jumps in quota... just this one user.
ArcaneMagus
Elite member
Elite member
Posts: 1138
Joined: Fri Sep 12, 2014 10:25 pm

Quota Question ...

Postby ArcaneMagus » Tue Jun 02, 2009 11:46 am

Your average message size would only have to be 145 KB to get that kind of difference:
((4.66 GB) - (2.47 GB)) / (92 905 - 77 147) = 145.727976 kilobytes
So it may not be entierly unreasonable if he gets a lot of mail with even something like a company logo that isn't compressed very well.
Rich Graves
Outstanding Member
Outstanding Member
Posts: 687
Joined: Fri Sep 12, 2014 10:24 pm

Quota Question ...

Postby Rich Graves » Tue Jun 02, 2009 4:13 pm

In this case, the quota calculation was correct, but the user did not receive 15,000 new messages in a month. The culprit was Outlook+ZCO+McAfee.
McAfee correctly detected a 170K message dated March 2002 as a trojan.
McAfee told Outlook to move that message to the /Quarantine folder.
The copy to /Quarantine succeeded.
The removal appears to have failed.
Repeat 14,602 times. :-(
ZCS 5.0.15; Outlook 2007 (no SP2); ZimbraConnectorForOutlook/5.0.2990.16.
What doesn't make sense is why the message originally dated March 14, 2002 and moved to /Quarantine on May 27, 2009 got a Zimbra Received date of June 18, 2007.
mbox user@example.edu> gf -v /Quarantine

{

"children": [],

"color": "defaultColor",

"grants": [],

"id": "44397",

"messageCount": 14602,

"name": "Quarantine",

"parentId": "1",

"path": "/Quarantine",

"unreadCount": 0,

"view": "conversation"

}

mbox user@example.edu> search -t message in:Quarantine

num: 25, more: true
Id Type From Subject Date

------ ---- -------------------- -------------------------------------------------- --------------

1. 174861 mess D Julie- is this a virus? - Thanks, Doug 06/18/07 17:39

2. 174860 mess D Julie- is this a virus? - Thanks, Doug 06/18/07 17:39

3. 174859 mess D Julie- is this a virus? - Thanks, Doug 06/18/07 17:39

4. 174858 mess D Julie- is this a virus? - Thanks, Doug 06/18/07 17:39
2009-05-27 09:33:37,201 INFO [btpool0-34690] [name=user@example.edu;mid=57;ip=137.22.2.218;ua=ZimbraConnectorForOutlook/5.0.2990.16;] mailop - Adding Message: id=160462, MessageID=, parentId=-1, folderId=44397, folderName=Quarantine.

ArcaneMagus
Elite member
Elite member
Posts: 1138
Joined: Fri Sep 12, 2014 10:25 pm

Quota Question ...

Postby ArcaneMagus » Tue Jun 02, 2009 5:04 pm

Not sure about the discrepancy between the "original" date and the Zimbra received date, but from what I have seen a lot of the machines that are compromised enough to be sending out spam have horribly out of date clocks, so a 2002 date is entirely possible.

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 6 guests