mail() failure

emmanuel

Verified User
Joined
Mar 26, 2007
Messages
89
I have php4 (suphp/cgi) and php5 (mod) on the server.

Roundcube doesn't send mail outside of the server so poking around, it was finally narrowed down to the fact external domains are rejecting sent emails because of error 553 "envelope sender domain must exist"

Searching around, I come across this note http://au2.php.net/manual/en/function.mail.php#72715

Following the instructions to alter sendmail parameters in php.ini, didn't work. I wrote a quick test mail .php file and ran it with the inprogram options and that didn't work either.

However, I discover that if I rename the file to .php5, it will work fine. I compared phpinfo() from 4 and 5 and realized in php5, the sendmail parameter is set using -f and not -r.

But changing php.ini for 4 to the exact same value does not work.

In fact, looking at the error log, it's blithely ignoring my changes. Despite correctly being reflected in phpinfo, sendmail is still using '[email protected]' instead of what works in php5, i.e. '[email protected]';

Anybody knows how this can be fixed? Thanks!
 
Back
Top