1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice


Discussion in 'Plesk for Linux - 8.x and Older' started by tha_mink, May 3, 2005.

  1. tha_mink

    tha_mink Guest

    PHP QMAIL Issues NOW FIXED~!!!

    We are attempting to migrate from our old non-Plesk server to our new Plesk server (Fedora core-[3?]) and can't seem to get PHP to find the qmail wrapper for sendmail.

    I can see the wrapper at /usr/sbin/sendmail which points to /var/qmail/bin/sendmail and everything is chmoded the way it should be but when you ask php if that file exists, you get a false return.


    if (@
    "<p>Got Qmail</p>";
    "<p>No Qmail</p>";

    Returns "No Qmail". In addition, php's native mail() funcition doesn't work. PHP.INI is reporting sendmail path to be correct to the qmail wrapper.

    Can't seem to figure this one out. I've even tried to send mail with PEAR's mail classes to no avail.

  2. gravenine

    gravenine Guest

    I'm having the same problem. Does anyone else know the answer?
  3. mattewers

    mattewers Guest

    From the info you gave I don't konw why PHP can't find sendmail, but from experience,
    would give an open_basedir error as /usr/sbin/ is outside your document root.
  4. gravenine

    gravenine Guest

    hmm.... I dunno.

    This is a major set back because I cant send email form php. NO BUENO!

    If anyone has any suggesstions I"d appreciate it.

  5. Cranky

    Cranky Guest

    Post or PM a link to a phpinfo file please ... or at least let us know the open_basedir value set in your php.ini.
  6. tha_mink

    tha_mink Guest

    I assume that I would not want to add /usr/sbin to my open_basedir directive though since that could open a whole other can of worms. Plus, I thought that PHP bypassed the open_basedir directive where sendmail is concerned.

    By the way, I have been able to send mail using the pear Mail package but would still love to figure out how to make the simple mail() function work.

    My open_basedir is not set to include /usr/sbin but I don't get the open_basedir error. (even if I crank error reporting all the way up.) The thing is...when I use mail(), I get NO errors...it just won't sent failing silently.
  7. tha_mink

    tha_mink Guest

    It's fixed. Huzzah....


    I have finally fixed the problem with my mail() function. Even though I had the qmail wrapper installed and linked correctly, it still didn't work. I fixed it by changing the sendmail path in php.ini to


    It's all better now. That should be documented somewhere or fixed. I wonder if it's an apache "follow_symlinks" deal or if it has something to do with php not liking to execute symlinks. Whatever it is...it's fixed now. I hope all of you with the same problem can get yours fixed as well.
  8. zeecreative

    zeecreative Guest

    Same error but no solution

    We are getting the same error but the solutions posted here didn't get us any closer... anyone have additional things to try?
  9. joel69

    joel69 Guest

    Did you remember to restart httpd?

    service httpd restart
  10. zeecreative

    zeecreative Guest

    We got this tracked down. The new default SE Linux settings in Red Hat ES4 were messing with the permissions we were accustomed to on our ES 3 server. Once we tweaked those a bit everything started working.
  11. joel69

    joel69 Guest

    Thanks ... We've actually got selinux disabled on our FC 3 box. PHP mail works after I edited the path to sendmail in the php.ini file, but it is extremely slow (takes a few hours to send a PHP email).

    Any ideas?
  12. zeecreative

    zeecreative Guest

    After we figured out the SE linux was messing things up we didn't need to make any changes from the default Plesk settings.

    An hour is a long time. The only thing I can think of would be this: http://kb.swsoft.com/article_22_298_en.html

    We have to reset this everytime we touch the main mail settings from within Plesk.

    Hope that helps.