Product:
Search Type:

When I am trying to send a message from Webmail the following error appears: "Failed to open sendmail [/var/qmail/bin/sendmail] for execution".

Article ID: 2278
Last Review: Dec,19 2007
APPLIES TO:
  • Plesk for Linux/Unix

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.ini


To 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
Enabled

Try 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.

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields