Closed Jaymon closed 8 years ago
Eh, here is what I finally did to get rid of that email (from my notes):
If you get an email with the subject:
Cron <root@marcyes> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
and the body:
/etc/cron.daily/apt:
FATAL -> Failed to fork.
You can turn it off by adding:
> /dev/null 2>&1
To all of the commands in /etc/crontab
.
So, you can edit the file:
$ sudo vi /etc/crontab
and then make all the lines for daily, weekly, and monthly, look like this:
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily > /dev/null 2>&1 )
That should get rid of the email. Not sure if this is worth automating since it only becomes a problem on the box that hosts my email.
I've been receiving this email
Every night at midnight, after doing some digging I ran this command:
And I didn't receive the email tonight, if I don't receive the email again in the next few days I'll add this to the spam assassin configuration.