Page 1 of 1

Only 66mb in VAR !!

Posted: 05 Oct 2017 14:31
by bas60
How do I clear used up space in VAR

I changed the message retention from 60 > 30 and now to 7

I 've run mailwatch_db_clean.php twice and rebooted

still around 60mb

What am i doing wrong ???

Re: Only 66mb in VAR !!

Posted: 05 Oct 2017 14:42
by TheGr8Wonder
While logged into MailWatch, can you take a snippet of the "Free Disk Space" at the top-center of the page and post here? We want to see how your system was carved up.

Thanks

Re: Only 66mb in VAR !!

Posted: 05 Oct 2017 15:13
by bas60
Hi

2 children
postfix 4 proc

1min 0.00
5min 0.03
15min : 0.02

Inbound :0
Outbound: 5

/ 4.66Gb [60%]
/boot 312.47Mb [65%]
/tmp 913.59 [94%
/var 61.47MB [0%]

Re: Only 66mb in VAR !!

Posted: 05 Oct 2017 16:19
by shawniverson
What's your MailScanner quarantine retention in /etc/MailScanner/defaults ?

What happens when you run this?

Code: Select all

/usr/local/bin/mailwatch/tools/Cron_jobs/mailwatch_quarantine_maint.php --clean 

Re: Only 66mb in VAR !!

Posted: 05 Oct 2017 16:28
by bas60
only thing obvious is q_days=0

does that mean it not going to delete any !!??

Re: Only 66mb in VAR !!

Posted: 05 Oct 2017 16:30
by shawniverson
No, actually, it should be 0. Just wanted to double check. eFa uses MailWatch instead to handle this....

MailWatch should be purging items based on QUARANTINE_DAYS_TO_KEEP. How far back can you see in /var/spool/MailScanner/quarantine folders?

Re: Only 66mb in VAR !!

Posted: 05 Oct 2017 16:39
by bas60
Ok

that seems have freed up 13Gb

I forgot I set q_days=7 before I run the command !

THANK YOU

Re: Only 66mb in VAR !!

Posted: 11 Jan 2019 09:51
by Justin
I'm having the same issue at the moment.
44mb left on /var

/var/lib/mysql/mailscanner has a file name maillog.ibd which is 23.6 GB

Is there a way to shrink this?

Re: Only 66mb in VAR !!

Posted: 11 Jan 2019 22:18
by shawniverson
Justin wrote: 11 Jan 2019 09:51 I'm having the same issue at the moment.
44mb left on /var

/var/lib/mysql/mailscanner has a file name maillog.ibd which is 23.6 GB

Is there a way to shrink this?
Reduce this number here...

/var/www/html/mailscanner/conf.php

Code: Select all

// Define how many days of emails to keep.
define('RECORD_DAYS_TO_KEEP', 60);