I am getting tons of email from cronjobs. How do I stop those emails on Linux server hosted at AWS EC2. This is Red Hat Enterprise Linux 7 server. Please give solution. How do I stop cron daemon emails madness?
Edit the cronjob file and set the following
MAILTO=""
Poof. No more emails. This how I stop cron daemon emails on Unix and should work on Linux too.
Take a look at my page. I covered various methods.
https://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/