The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to reset mail quota

Discussion in 'E-mail Discussions' started by ccccanada, Jan 22, 2009.

  1. ccccanada

    ccccanada Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    279
    Likes Received:
    0
    Trophy Points:
    16
    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
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    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.
     
  3. piehosting

    piehosting Registered

    Joined:
    Sep 17, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  4. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    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
     
  5. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    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
     
Loading...

Share This Page