Sunday, 19 July 2009

Plesk Error: Failed to open sendmail [/var/qmail/bin/sendmail] for execution.

1. Trying to send a message from Webmail but the following error appears:

CODE : Failed to open sendmail [/var/qmail/bin/sendmail] for execution.



Note :- The same error I can find at the log file /var/log/psa-horde/psa-horde.log.

Resolution

There can be two reasons for 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.  You can search for this using the grep command:
# 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.

No comments:

Post a Comment