ccccanada

Well-Known Member
Jan 17, 2003
279
0
166
Hello!

I have some clients that have small 10MB mailboxes.

When the accounts get full mail is rejected from the server.

When the client downloads all email and the mailbox has been empty for over an hour the mail quota still shows at or over limit and rejects emails for these accounts.

Is there any way to reset the mail quota to actual size?

Thank you
Harold
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,216
10
313
Houston, TX
cPanel Access Level
Root Administrator
Hello!

I have some clients that have small 10MB mailboxes.

When the accounts get full mail is rejected from the server.

When the client downloads all email and the mailbox has been empty for over an hour the mail quota still shows at or over limit and rejects emails for these accounts.

Is there any way to reset the mail quota to actual size?

Thank you
Harold
What do you mean by "reset the mail quota to actual size."

If your client is routinely receiving more than 10mb of email, perhaps they should change their mail quota to a size larger than 10mb.
 

piehosting

Registered
Sep 17, 2010
1
0
51
similar problem..

mailbox size is 50mb..

actual size of mail / spam / sent / etc is 15mb.

after deleting some more emails actual size is now only 5mb.
ssh show around 5mb usage.

but cpanel still show 50mb usage.

temporary solution, increase mailbox size.
another is to delete account and create it again.

is there another way?
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,544
11
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
Forcefully recalculate email disk usage by rebuilding email account maildirsize files

E-mail disk usage information is normally updated automatically and no additional action should be necessary; however, it is possible to force e-mail disk usage to be recalculated using the following script via root SSH access:
Code:
# /scripts/generate_maildirsize --help
Usage: generate_maildirsize <modifier> <user>

This utility regenerates maildirsize files used by the maildir+
capable clients to assist in mailbox size calculations.

Modifier Flags:
    --confirm - This flag indicates that we really want to use this utility

    --allaccounts - This utility was originally intended to assist cPanel
        BoxTrapper with updating maildirsize files. Without this optional flag,
        generate_maildirsize will only operate on BoxTrapper enabled accounts.

    --rename - This optional flag indicates that the utility should rename
        individual message files to include the message size in the filename.
        This addition to the file name format is supported by Exim and greatly
        improves Exim's ability to update the maildirsize file.  POP3 accounts
        that store mail on the server may be forced to download their messages
        again if this option is used.

    --verbose - This optional flag turns on verbose mode for enhanced activity
        reporting to STDOUT.
 
    --onlyrecalculate - This optional flag will cause generate_maildirsize to
        only regenerate maildirsize files that are missing or are larger than
        5120 bytes.
       
    --help - display this message and exit.
To action upon e-mail accounts of a given cPanel user, specify the cPanel username as shown by the following example while ensuring to replace "$username" with the applicable cPanel login username:
Code:
# /scripts/generate_maildirsize --confirm --verbose $username
To action upon all e-mail accounts of all cPanel users, refer to the following example command; this may be entered via root SSH access:
Code:
# /scripts/generate_maildirsize --allaccounts --confirm --verbose
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,544
11
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
yahoo mail can only attach 10mb. can it be upgrade?
If you are sending an e-mail from Yahoo then I recommend referring to the official Yahoo help and support resources, as linked below:

For e-mail accounts setup via cPanel, their disk quotas can be increased via the E-mail Accounts page, as noted via the following navigational menu path (with linked documentation): cPanel: Main >> Mail >> Email Accounts