how to disable Cron job mails for all accounts ?


Active Member
Mar 23, 2014
cPanel Access Level
Root Administrator
Hi . i have a SPAM problem on port 25 .
so i see Mail Queue that is full of spam cronjob mails . how i can disable mail notification for all accounts on cpanel ?
i add "/dev/null 2>&1" in at the end of cronjob.
0 1 5 10 * /path/to/ >/dev/null 2>&1
but it is for single account and i need to do it user by user .
i'm looking for a single command or a way to disable cronjob notification mails in 1 step for all cpanel accounts .

Thanks - Hossein .
Last edited by a moderator:


Jurassic Moderator
Staff member
Oct 19, 2014
cPanel Access Level
Root Administrator
Hey there! There isn't a way to do this globally on the system, as each cron can have unique email settings.

One user in a different thread made a script that added a blank MAILTO value to each user's cron file, outlined here:

so that may be a good option for you.