Page 1 of 1

daily quarantine report

Posted: 24 Jan 2017 17:00
by zxmax777
HI, i 've read some posts about the cron job for the user daily quarantine report
i'm trying to do 2 things:
1= on the report, i would like to show only 1 day report, cause by default it shows about 4 days , so next day will show previous 3 days .. etc
so would like to show only the new quarantine for that specific date
(if you could show me which file to modify, and what to change in it, will be great

2: change the time of the con job, instead of being sent at 3 am (i think) to run at 9 am or what ever we need
(try to be detailed on location of files and file name .. etc i'm kind of new to this :)

thanks everyone

Re: daily quarantine report

Posted: 26 Jan 2017 05:10
by zxmax777
anyone ? i would appreciated

Re: daily quarantine report

Posted: 27 Jan 2017 22:36
by shawniverson
To limit the report days, check out the options in /var/www/html/mailscanner/conf.php

For the cron, you can disable the built-in job and create your own.

In /etc/cron.daily/mailwatch
Comment out the quarantine_report.php line

Create your own cron job in /etc/cron.d

/etc/cron.d/mailwatch

Code: Select all

0 9 * * * root /usr/local/bin/mailwatch/tools/Cron_jobs/quarantine_report.php >> /dev/null 2>&1