E-mail retention policies

General eFa discussion
Post Reply
cam
Posts: 37
Joined: 26 Oct 2012 17:02

E-mail retention policies

Post by cam »

Is there a schedule to the e-mail retention we can modify? A couple of weeks ago we had one particular client get blasted and processed 85,000 messages in one day, now our /var partition is down to 7%, was wondering if we can purge those messages to free up before actually adding anymore hdd space. Thanks!
User avatar
shawniverson
Posts: 3649
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: E-mail retention policies

Post by shawniverson »

Yep

Head over to /var/www/html/mailscanner/conf.php

Code: Select all

define('QUARANTINE_DAYS_TO_KEEP', 30);
Reduce this setting, then to immediately purge, execute the following

Code: Select all

sudo /usr/local/bin/mailwatch/tools/Cron_jobs/quarantine_maint.php --clean
Post Reply