Skip to main content

Disable cron notification from SSH

Comments

6 comments

  • cPRex Jurassic Moderator
    Hey @Vs Nu Can you let me know what cron notification that was? It would be helpful to know if this was a custom user cron that was setup or something that is a system cron.
    0
  • Vs Nu
    It was showing the cPanel username which is causing the issue.It should be Current Email (None) How to set this for all the cPanel accounts from root SSH any commands
    0
  • kodeslogic
    Currently, there's no way to manage this "by default", this feature is requested but still open for discussion. [QUOTE]
    0
  • cPRex Jurassic Moderator
    Thanks for the details. There isn't an automated way to add or change the email at once for all domains, but you could set up a valid email by editing /var/spool/cron/$username for each user directly, which may be quicker than logging into cPanel for each account. If you just wanted to disable the notifications completely, adding the line that @kodeslogic mentions would work.
    0
  • Vs Nu
    Thanks for the details. There isn't an automated way to add or change the email at once for all domains, but you could set up a valid email by editing /var/spool/cron/$username for each user directly, which may be quicker than logging into cPanel for each account. If you just wanted to disable the notifications completely, adding the line that @kodeslogic mentions would work.

    As we need to do it for morethan 100+ users so we need to do it manually as it was creating more mails like 20k per day
    0
  • Vs Nu
    I had taken the cp username and stored in cron.txt and made an command to do on all the user's cron file which is sending out more emails for i in `cat cron.txt`; do echo 'MAILTO=""' >> /var/spool/cron/$i ;done
    0

Please sign in to leave a comment.