I can't get mail to work on my local linux box. When I execute something like this...
<?php
$mailtest = mail("someone@somewhere.com","Test","Test Email");
if(!$mailtest) {
echo("An error occurred.");
} else {
echo("Mail sent successfully.");
}
?>
it prints out "Mail sent successfully.". However, I get this error on the system:
Diagnostic-Code: SMTP; 550 rejected: cannot route to sender <apache@alderaan>
Anyone know how to configure sendmail? Or at least point me in the right direction?
Thanks in advance.