Symptoms
I am trying to send a message from Webmail but the following error appears:Failed to open sendmail [/var/qmail/bin/sendmail] for execution.
The same error I can find at the log file /var/log/psa-horde/psa-horde.log.
Resolution
There can be two reasons of this problem. Please check them:- Make sure that *exec* or *open* functions are not disabled, i.e. not in listed in "disable_functions" directive in php.ini files:
# grep -i disable_functions /etc/php.ini /etc/php.d/* /usr/local/etc/php.iniTo make sure that "disable_functions" does not affect Webmail, you can comment this line, restart Apache and try to send mail again. If it works, then disable the functions one by one, restart Apache and check mail sending through Webmail.
- check if selinux is enabled in the system:
# getenforce
EnabledTry to temporary disable it with the "setenforce 0" command and send mail using Webmail again. If it helps and you have Plesk 8 or later, try to reinstall 'psa-selinux' package, it should configure polices for Plesk. Then enable selinux back.