I have the same setup and exactly the same problem 🙁 I had a webserver that <em>did</em> work without any tweaking on my part, but then I had to replace the hardware. I did a complete reinstall, though with the minumum of packages and services this time to improve security. Now, although I can send mail directly from the command line using /var/qmail/bin/qmail-inject, and shell scripts can also send mail using /usr/bin/mail, the webserver itself apparently cannot send mail. I have amended php.ini to read:
sendmail_path = /var/qmail/bin/qmail-inject
When I run a page that is supposed to send an email, the mail() function returns TRUE, but no mail is sent. The syslog entry just says:
May 28 11:13:55 <stuff> new msg 482
May 28 11:13:55 <stuff> info msg 482: bytes 408 from <email@address> qp 9095 uid 48
May 28 11:13:55 <stuff> end msg 482
[48 is the Apache user id]
Message delivery never even starts, so I'm at a loss as to how to fix it...any help MUCH appreciated!