I am having problems PHP scripts. When the php script tries to send out an email, it sends the email as "nobody@MYHOSTNAME.com" when the web address and MYHOSTNAME are totally different. So to solve this problem, I turn on "Prevent the user 'nobody' from sending out mail to remote addresses (php and cgi scripts generally run as nobody if you are not using phpsuexec and suexec respectively.)"
After doing that, emails get stuck in the Mail Queue of the server. It says the email it was trying to send to has an "unrouteable mail domain".
I tried the PHPsuexec and it fixed the problem. However, I would like to keep phpsuexec off, if possible.
Bascially the "Return-path:" and "Received:" says it's from "nobody@myhostname.com" . Is there a way to fix this? I am reading and it seems to be a limitation of PHP, but there must be a solution because I've used other hosts without phpsuexec and I was able to send out mail with PHP.



LinkBack URL
About LinkBacks
Reply With Quote





