incorrect qota used for email account

ullalla

Well-Known Member
Jan 20, 2006
192
0
166
I am facing this issue for some of the email accounts, suppose I have allocated 10 mb space to the email account then it shows suppose 12 mb used and there are no emails in inbox or trash or sent items folder.

is there any suggestion on this?

Your quick response is appreciated.
 

UmbraHosting

Member
Mar 12, 2006
13
0
151
Do you have shell access to the server? If so, you can login and navigate to the user's mail directory which is located within the home directory for that user. From there, you can run the following command in order to see where the disk space usage is coming from.

# du -h --max-depth=1

This will show you a listing of disk space usage by folder allowing you to find and remove the mail that is taking up the space.
 

ullalla

Well-Known Member
Jan 20, 2006
192
0
166
Hello,

Thanks for your atttention on this but the real issue is that the email account is showing the incorrect space used though there are no emails in inbox.

Thanks.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
This is a bug with recalculating maildirsize, which is used to display how much space is being used. This will be fixed in the next release (in QA testing now).

edit:

sorry, forgot to tell you how to fix it now:
/scripts/regenerate_maildirsize --force --allaccounts
 

innsites

Well-Known Member
Nov 30, 2005
57
0
156
mailbox quotas are incorrect.

This is a bug with recalculating maildirsize, which is used to display how much space is being used. This will be fixed in the next release (in QA testing now).

edit:

sorry, forgot to tell you how to fix it now:
/scripts/regenerate_maildirsize --force --allaccounts
This does not work for me......no such script??
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
Looking at that portion of the script it checks for:

1) The domain name in /var/cpanel/users/username

2) The domain name in /home/user/mail/example.com

If it fails either of those checks, that error message is displayed
 

hbhb

Well-Known Member
Dec 1, 2006
67
0
156
i got the same problem back years ago after migrating accounts from VPS and finally found the answer.. i have about 100+ accounts having such problem

when i run /scripts/generate_maildirsize, it only fix about 30 accounts.. is this correct?

thanks!
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
i got the same problem back years ago after migrating accounts from VPS and finally found the answer.. i have about 100+ accounts having such problem

when i run /scripts/generate_maildirsize, it only fix about 30 accounts.. is this correct?

thanks!
Which problem? The Skipping main domain for <USERNAME> (missing from user's file) problem or a different one?

If the problem is the one bolded in this message, then you need to address the two points I raised in my prior response. My guess off hand is that the non-fixed accounts are missing the /home/user/mail/example.com directory

Please note, the example.com domain in the file path above should be the actual domain name associated with the account, I'm only using example.com for example purposes.
 

ullalla

Well-Known Member
Jan 20, 2006
192
0
166
this script doesn't work , gives the error

-bash: ./regenerate_maildirsize: No such file or directory


Please let me know if anyone having solution to this problem.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
this script doesn't work , gives the error

-bash: ./regenerate_maildirsize: No such file or directory


Please let me know if anyone having solution to this problem.
Your report suggests one of two situations:
  1. You are trying to execute the regenerate_maildirsize script from the current directory, and your current directory is not /scripts. If so, please execute /scripts/regenerate_maildirsize
  2. Your current directory is /scripts but the file does not exist. If so, execute /scripts/upcp --force to force an update. Either you are running a very old version of cPanel or somehow deleted that script. The upcp will fix that.


If neither of those situations describe yours, please open a support ticket with your license provider so we can take a look at what is happening with your server.

ON the off-chance you are not the server administrator, or a reseller with the proper access to /scripts, then you need to contact your system admin to have that script executed.
 

trinity1511

Member
Aug 29, 2005
14
0
151
Once again from your memory...

Your report suggests one of two situations:
  1. You are trying to execute the regenerate_maildirsize script from the current directory, and your current directory is not /scripts. If so, please execute /scripts/regenerate_maildirsize
  2. Your current directory is /scripts but the file does not exist. If so, execute /scripts/upcp --force to force an update. Either you are running a very old version of cPanel or somehow deleted that script. The upcp will fix that.


If neither of those situations describe yours, please open a support ticket with your license provider so we can take a look at what is happening with your server.

ON the off-chance you are not the server administrator, or a reseller with the proper access to /scripts, then you need to contact your system admin to have that script executed.
Hi cpanelkenneth.... the problem is that you're typing it from your memory again :rolleyes:, remember the correct command is
Code:
/scripts/generate_maildirsize --force --allaccounts
 

bayo

Registered
Jun 5, 2006
2
0
151
quota email not only inbox, include Trash, and spam.

You can check with cpanel - file manager-
Go to folder mail / domainname /

check trash , sent mail, and spam.

You can delete or download it.