Skip to main content

Block cron emails

Comments

3 comments

  • 24x7server
    Hi, You can either try adding the below line at the end of the specific cron >/dev/null 2>&1 And also, you can set a variable at the top of the user cron file: MAILTO=""
    0
  • Mugoma
    adding the below line at the end of the specific cron

    The mail logs show mails from cron but we don't where those cron jobs are. We just want to block all cron jobs except those run by the system.
    0
  • cPanelMichael
    We tried using /etc/cron.deny but it's not working.

    Hello, Could you let us know what entries you added to this file? Did you try restarting the crond service after setting up that file? Thank you.
    0

Please sign in to leave a comment.