How do I disable root cron job emails? Print

  • cronjob, root, disable, crontab, mailto
  • 348

First, you'll need to log in as root via SSH. Once logged in, I suggest choosing your favorite editor. For me, it's nano, so for me, I would run:

export EDITOR=nano

If it's not installed you'll need to download it like this:

yum install nano

Next, you need to open crontabs to make a quick change by doing this: 

crontab -e

Once the crontab file is open, you need to add this to the first line of the file.

MAILTO=""

Then save the file and exit. You will no longer get emails from cronjobs sent to root directly from the server. This is mostly done on cPanel servers because cPanel already emails you if there is an issue.


Was this answer helpful?

« Back