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

tecnotronico

Active Member
Apr 17, 2004
28
1
153
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.
 

tecnotronico

Active Member
Apr 17, 2004
28
1
153
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.
 

artenweb

Registered
Jan 26, 2012
1
0
51
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.
 

tecnotronico

Active Member
Apr 17, 2004
28
1
153
Re: mailing list (mailman) wrong space used (quota) - clean mailman archive

So, is there a way to do this from cPanel or WHM?
Or does it have to be from SSH?
Sorry, but until the current version of WHM/CPanel there is no any other way to do that but using SSH.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
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.
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.