Article ID: 2829, created on Oct 29, 2007, last review on May 3, 2014
Pro Control Panel Linux
Knowledge ID 2249
Product : Ensim Pro for Linux
Version : 3.5
Topic : Hotfix
Title MailQueueCleaner Error in root Email from Cron
Summary MailQueueCleaner Error in root Email from Cron
Details (Applicable for Webppliance version 3.1.3 and above Only, Fixed in Webppliance Pro 3.5)
Recieve the following Error via cron from the script, /usr/lib/opcenter/virtualhosting/MailQueueCleaner
/usr/sbin/chroot: cannot execute /usr/sbin/sendmail: No such file or directory
MailQueueCleaner is a script used to process mail from site queues, due to a minor bug it does not check if a site has sendmail enabled or not but just calls the sendmail process in the site at /home/virtual/<domainname>/usr/sbin/sendmail for all domains.
This binary sendmail, does not exists for domains which do not have sendmail enabled.
And as these domains do not recieve mails on this server anyway, this Error can be safely ignored.
If you want to fix this, Edit the file MailQueueCleaner and change the following check ..
if [ -d $siteroot/var/spool/mqueue ]; then
if [ -d $siteroot/var/spool/mqueue ] && [ -x $siteroot/usr/sbin/sendmail ]; then