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.

mailing list (mailman) wrong space used (quota) - clean mailman archives

Discussion in 'E-mail Discussions' started by tecnotronico, Dec 21, 2011.

  1. tecnotronico

    tecnotronico Active Member

    Joined:
    Apr 17, 2004
    Messages:
    28
    Likes Received:
    1
    Trophy Points:
    3
    Fellows,

    We are using cPanel/WHM 11.30.5 and had an issue with a customer that uses cPanel mailman for the mailing lists. Basically, they have been sending emails to a mailing list from 3 years ago and it was using 1.3GB of disk space for the mailman archives and attachments.

    Using SSH commands We have cleaned the old archives and kept only the last 3 months of archives as well as their attachment files/folders.


    The commands we ran to clean the mailman archives and attachments disk space were:

    To clean the old archives (keeping just the last 3 months):

    cd /usr/local/cpanel/3rdparty/mailman/archives/private/
    cd listname_clientdomain.ext
    rm -fR 2009*
    rm -fR 2010*
    rm -fR 2011-Jan*
    rm -fR 2011-Feb*
    rm -fR 2011-Feb*
    rm -fR 2011-Mar*
    rm -fR 2011-Apr*
    rm -fR 2011-May*
    rm -fR 2011-Jun*
    rm -fR 2011-Jul*
    rm -fR 2011-Aug*
    rm -fR 2011-Sep* etc …

    To clean the attachments (keeping just the last 3 months):

    cd attachments
    tmpwatch --mtime --all 744 /usr/local/cpanel/3rdparty/mailman/archives/private/listname_clientdomain.ext/attachments


    So, we are sure that we cleaned at least 800MB of space for this customer.

    The problem now is that WHM/cPanel still shows the space used for the account as 1.3GB instead of 500MB since it is not recalculating the space quota for this account taking into account the fact that the mailing list archive and attachment old files were eliminated.

    We have tried everything including the fixquotas script from cpanel (/scripts/fixquotas), however, WHM/cPanel keeps showing the old space used instead of the real current space used.

    How could we fix this particular quota issue???

    Thanks in advance for your very appreciated support.
     
  2. tecnotronico

    tecnotronico Active Member

    Joined:
    Apr 17, 2004
    Messages:
    28
    Likes Received:
    1
    Trophy Points:
    3
    Re: mailing list (mailman) wrong space used (quota) - clean mailman archive

    Solved - After an hour the system showed the right disk space used for the account. We guess that it runs some quota synchronization which takes some time to be showed in the right way.
     
  3. artenweb

    artenweb Registered

    Joined:
    Jan 26, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Re: mailing list (mailman) wrong space used (quota) - clean mailman archive

    Hello,

    I'm having the same issue with a client that complains that half of its HD allowed space is used by mailing lists that he would have no problem getting rid of.
    So, is there a way to do this from cPanel or WHM?

    Or does it have to be from SSH?
    Thanks in advance for your time.
     
  4. tecnotronico

    tecnotronico Active Member

    Joined:
    Apr 17, 2004
    Messages:
    28
    Likes Received:
    1
    Trophy Points:
    3
    Re: mailing list (mailman) wrong space used (quota) - clean mailman archive

    Sorry, but until the current version of WHM/CPanel there is no any other way to do that but using SSH.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Re: mailing list (mailman) wrong space used (quota) - clean mailman archive

    There are currently no options available in cPanel or Web Host Manager that will allow you to automatically prune messages from one or multiple Mailman mailing lists. I suggest opening a feature request for this on the following forum:

    Submit A Feature Request

    Thank you.
     
Loading...

Share This Page