Skip to main content

Unable to stop cron mails

Comments

4 comments

  • cPanelLauren
    Hi @shahzaibmushtaq can you tell me the output of the following: crontab -l
    0
  • shahzaibmushtaq
    Sure, please have a look here:
    0
  • cPanelLauren
    Can you do the same for the user? crontab -l -u $username
    Also, please upload screenshots to the thread rather than link to 3rd party sites, I've removed the link previously added.
    0
  • shahzaibmushtaq
    Can you do the same for the user? crontab -l -u $username
    Also, please upload screenshots to the thread rather than link to 3rd party sites, I've removed the link previously added.

    Hi, Here it is : MAILTO="" SHELL="/usr/local/cpanel/bin/jailshell" 0 0 * * * php /home/domain/public_html/admin/tasks/auto_prune.cron.php >/dev/null 2>&1 SHELL="/usr/local/cpanel/bin/jailshell" 0 0 * * * php /home/domain/public_html/admin/tasks/create_internal_notifications.cron.php >/dev/null 2>&1 SHELL="/usr/local/cpanel/bin/jailshell" 0 * * * * php /home/domain/public_html/admin/tasks/delete_redundant_files.cron.php >/dev/null 2>&1 SHELL="/usr/local/cpanel/bin/jailshell" 0 0 * * * php /home/domain/public_html/admin/tasks/downgrade_accounts.cron.php >/dev/null 2>&1 SHELL="/usr/local/cpanel/bin/jailshell" */5 * * * * php /home/domain/public_html/admin/tasks/process_file_queue.cron.php >/dev/null 2>&1 SHELL="/usr/local/cpanel/bin/jailshell" 0 1 * * * php /home/domain/public_html/admin/tasks/create_email_notifications.cron.php >/dev/null 2>&1 SHELL="/usr/local/cpanel/bin/jailshell" * * * * * php /home/domain/public_html/plugins/archivemanager/queue/process_archive_queue.cron.php > /dev/null 2>&1
    As you may have noticed MAILTO variable in the beginning, i added this manually for each user cron and after which it looks like cron emails are now stopped. Do you think, missing this variable by default in cpanel could be the issue ?
    0

Please sign in to leave a comment.