Sorry in advance, most likely the problem obiefuna, but my guglani the right answer isn't there.
The PHP script needs to send email about the following design:
mail("firstname.lastname@example.org", "subject", "my message", "From: email@example.com\r\n");
EXIM is configured in a mode smarthost and works fine. But this PHP-shnaya design takes the current user. It is www-data, developer, root and other friends on my mail server not provided.
As sumapit www-data on, for example, sales, the lovers, kitty or even something nice to the user? Where dig nose?