Page 1 of 1

Tracking down large mailbox cause.

Posted: Sun Aug 29, 2010 9:47 pm
by jethro.carr
hi all,

I have a problem with a user's mailbox that has grown by about a couple GB in recent weeks - I want to try and track down the cause of the increase, it may be they're attached something large or imported some messages.

I did run an omscan against the mailbox to see if it's a glitch, and got the following message, which may be related:
Check Size : Should be 1754608 instead of 1754609 for item ~/user/g000050/0000004:1.
Fix Attempt : Successfully modified size to 1754608 for item~/user/g000050/0000004:1.

I did experience a similar problem once before when a user messed up some archiving settings on their IMAP client, which I managed to fix as per:
http://www.scalix.com/forums/viewtopic.php?f=2&t=16597&p=66356#p66356

However in that case I was able to find the dodgy directory of messages the user had created via IMAP, whereas this time one directory has grown particularly large but I'm not sure which one or which message is responsible, so I can't check it out with omcontain.

Anyone have any ideas/suggestions/thoughts that might be able to help me located the message(s) responsible? An ability to list the size of all folders/messages would do the trick.

regards,
jethro

Re: Tracking down large mailbox cause.

Posted: Thu Sep 09, 2010 10:22 am
by ltward
omscan -U "user name" -A
will show you the size of the inbox, outbox, sent, etc. It's good for a high-level view of the account.

sxdu -warh "user name"
will show you the size of the account overall (minus the waste basket), the size of the waste basket, and the size of the recovery folder. It's also good for high-level info.

omtidyu -B -u "user name" -Ti -a0 -To -a0 -Tp -a0 <...> -R
will show you a lot of info about the messages in the various folders that you requested via the -T option (i=intray, o=out tray, p=pending tray (sent folder)). See the man page for omtidyu for more info.