Only 66mb in VAR !!

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

Only 66mb in VAR !!

Post by bas60 » 05 Oct 2017 14:31

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 » 05 Oct 2017 14:42

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: 41
Joined: 04 Feb 2014 13:58

Re: Only 66mb in VAR !!

Post by bas60 » 05 Oct 2017 15:13

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: 2643
Joined: 13 Jan 2014 23:30
Location: Rushville, Indiana, USA
Contact:

Re: Only 66mb in VAR !!

Post by shawniverson » 05 Oct 2017 16:19

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 
Version 3.0.2.6 released! Update now to keep your eFa secure!

bas60
Posts: 41
Joined: 04 Feb 2014 13:58

Re: Only 66mb in VAR !!

Post by bas60 » 05 Oct 2017 16:28

only thing obvious is q_days=0

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

User avatar
shawniverson
Posts: 2643
Joined: 13 Jan 2014 23:30
Location: Rushville, Indiana, USA
Contact:

Re: Only 66mb in VAR !!

Post by shawniverson » 05 Oct 2017 16:30

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?
Version 3.0.2.6 released! Update now to keep your eFa secure!

bas60
Posts: 41
Joined: 04 Feb 2014 13:58

Re: Only 66mb in VAR !!

Post by bas60 » 05 Oct 2017 16:39

Ok

that seems have freed up 13Gb

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

THANK YOU

Justin
Posts: 87
Joined: 18 Sep 2014 13:00
Location: The Netherlands
Contact:

Re: Only 66mb in VAR !!

Post by Justin » 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?

User avatar
shawniverson
Posts: 2643
Joined: 13 Jan 2014 23:30
Location: Rushville, Indiana, USA
Contact:

Re: Only 66mb in VAR !!

Post by shawniverson » 11 Jan 2019 22:18

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);
Version 3.0.2.6 released! Update now to keep your eFa secure!

Post Reply