I configured email subsystem of my Centos 7 so it sends emails to outside world. Since then I started receiving about 10 emails every minutes from crond process. It is useless for me and want crond not to send any emails.

I tried to set


in /etc/crontab and in /etc/crontab.d (there's no more MAILTO=root in crontab related files) but the emails are still coming. I restarted crond service and later I restarted whole system. Nothing helps so far.


Add the following to /etc/sysconfig/crond and then restart crond. This will send the outputs to syslog instead of mail:

CRONDARGS="-s -m off"

  • thats what I was looking for. it didn't come to my mind, that theres another cron config file under sysconfig. Logging is much better than mailing, suppose dedicated cron.log would be nicer Aug 29 '17 at 13:50

If you don't want to receive any emails from running cron jobs, you can redirect stdout and stderr to /dev/null or to some log file.

command > /dev/null 2>&1

You can still redirect stdout to a log file and stderr to /dev/null if needed.

  • I know about this one, but we have many crontabs under different users so I prefer one "final solution" to this problem Aug 29 '17 at 13:45
  • @PavelNiedoba: You did not say that explicitly in your question.
    – Khaled
    Aug 29 '17 at 13:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.