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.
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.