Originally Posted by edge
Sure there is.
Make sure you set a from email address in the header!
$Name = "Me"; //senders name
$email = "email@example.com"; //senders e-mail adress
$recipient = "firstname.lastname@example.org; //recipient
$mail_body = "Hello."; //mail body
$subject = "The subject of message"; //subject
$header = "From: ". $Name . " <" . $email . ">"; //optional headerfields
mail($recipient, $subject, $mail_body, $header);
There is a from address in the header and it is the correct one, but the return-path is the user apache is running as @ the server domain, not the actual hosted website's domain.
And when the recipient mail server validates the email, it validates the return-path, not the from address.
I understand this is how a normal Unix mail system would work. A user sends a mail, it uses the username @ domain, there is no seperate email field.
I have been working on this issue on and off for almost 2 years... I doubt its going to be as simple as that.