Only 66mb in VAR !!

Questions and answers about how to do stuff
Post Reply
bas60
Posts: 57
Joined: 04 Feb 2014 13:58

Only 66mb in VAR !!

Post 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 ???
TheGr8Wonder
Posts: 97
Joined: 01 Jul 2017 02:32

Re: Only 66mb in VAR !!

Post 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
bas60
Posts: 57
Joined: 04 Feb 2014 13:58

Re: Only 66mb in VAR !!

Post 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%]
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Only 66mb in VAR !!

Post 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 
bas60
Posts: 57
Joined: 04 Feb 2014 13:58

Re: Only 66mb in VAR !!

Post by bas60 »

only thing obvious is q_days=0

does that mean it not going to delete any !!??
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Only 66mb in VAR !!

Post 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?
bas60
Posts: 57
Joined: 04 Feb 2014 13:58

Re: Only 66mb in VAR !!

Post by bas60 »

Ok

that seems have freed up 13Gb

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

THANK YOU
Justin
Posts: 111
Joined: 18 Sep 2014 13:00
Location: The Netherlands
Contact:

Re: Only 66mb in VAR !!

Post 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?
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Only 66mb in VAR !!

Post 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);
Post Reply