Page 1 of 1

purge data from maillog table

Posted: 19 Aug 2014 08:05
by lelle
Hi all,

my mailscanner db has grown to fill the /var to 100%. It's the maillog table that is very big
Does anybody know how to purge the data but keeping the table.

/Lennart

Re: purge data from maillog table

Posted: 19 Aug 2014 23:03
by shawniverson
Simple way....

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

Code: Select all

define('RECORD_DAYS_TO_KEEP', 60);
Lower this number to your liking.

Then run the following...

Code: Select all

sudo /usr/local/bin/mailwatch/tools/Cron_jobs/db_clean.php