daily quarantine report

Questions and answers about how to do stuff
Post Reply
zxmax777
Posts: 5
Joined: 16 Jan 2017 03:44

daily quarantine report

Post 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
zxmax777
Posts: 5
Joined: 16 Jan 2017 03:44

Re: daily quarantine report

Post by zxmax777 »

anyone ? i would appreciated
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: daily quarantine report

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