My host is not able to figure out why jailshell keep showing up in emails that it can not find shell commands like mail.
They have disabled jailshell for all domains under my reseller account with them. But all of my own sites that use cron job to backup certain databases do not run fully due to cron job not being able to find mail command.
I have created a dummy cron job to send just an email to myself every few minutes, and the cron job runs, but no email is received as it can not find or use mail command.
My host first disabled jailshell when the problem first happened and the emails came in ok, but as I had the cron job setup to email every few minutes to test it worked without having to wait for 24 hours to see if it worked, this change back to every 24 hours meant that the problem came back due to me changing it.
All other cron job work fine as I do not think it is a cron job not working, just that it seems to alter something on the server to make is go back to using the jailshell method even thought it should be disabled for that account or all accounts.
Has anyone had this happen and was able to fix it and how?
Or can anyone suggest what I or they can do next to fix this. As this has been going on for months. They have even reinstalled parts and the whole server again once before but still the problems comes back.
I am wondering if there is a problem with whm or cpanel itself that is causing the issues to return when cron job is created or edited?
From cPanel 11.38, cron jobs run in Jailed shell ( http://releases.cpanel.net/releases/...system-update/ ). Perhaps modifying SHELL variable may help for you; not sure whether cPanel will overwrite it with any updates. Or ask your host to enable mail command to the jail shell and that will help.