Daily Quarantine Report Timing

General eFa discussion
Post Reply
SteveC
Posts: 9
Joined: 16 May 2023 19:16

Daily Quarantine Report Timing

Post by SteveC »

I have some users requesting that their quarantine reports be sent first thing in the morning. The anacron daemon had started sending them at 11AM recently.

I checked that the system time was correct.

I had modified /etc/anarontab to the following:

Code: Select all

SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
# the maximal random delay added to the base delay of the jobs
RANDOM_DELAY=45
# the jobs will be started during the following hours only
START_HOURS_RANGE=3-6

#period in days   delay in minutes   job-identifier   command
1       5       cron.daily              nice run-parts /etc/cron.daily
7       25      cron.weekly             nice run-parts /etc/cron.weekly
@monthly 45     cron.monthly            nice run-parts /etc/cron.monthly
I thought this would have the daily reports sent between 3AM and 6:45AM. Instead todays reports came just after 8AM.

I thought of moving /etc/cron.daily/mailwatch to a regular cron job, but I think he next update would put it back resulting in 2 copies of reports being sent.

Is there any other underlying process for sending the reports that I'm missing? Seem pretty standard linux stuff, but thought I'd check first.

Thanks
User avatar
shawniverson
Posts: 3776
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Daily Quarantine Report Timing

Post by shawniverson »

This is pretty much it.

Yeah, if you change the cron job, you'll have to be mindful that an update to MailWatch could potentially add the default cron job back to cron.daily.
Post Reply