php script runs without errors
Everything looks great in php.ini
WHM -> Tweak Settings -> 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.)
* is not checked.
Here is my php script:
<?php
$to = 'wade@wadearnold.com';
$subject = 'Wakeup bob!';
$message = '<b>yo</b>, whassup?';
$headers = "From: wade@nebraskabankersbank.com\r\n" .
'X-Mailer: PHP/' . phpversion() . "\r\n" .
"MIME-Version: 1.0\r\n" .
"Content-Type: text/html; charset=utf-8\r\n" .
"Content-Transfer-Encoding: 8bit\r\n\r\n";
// Send
mail($to, $subject, $message, $headers);
?>
and here is the very odd error that I am getting from /var/log/exim_mainlog
2005-10-05 16:17:35 1ENGdr-000146-3N <= nobody@bwebs1.aneinfosecure.com U=nobody P=local S=459
2005-10-05 16:17:35 1ENGdr-000146-3N failed to expand condition "${perl{checkspam}}" for lookuphost router: Gid 99 is not permitted to relay mail at /etc/exim.pl line 365.
2005-10-05 16:17:35 1ENGdr-000146-3N failed to expand condition "${perl{checkspam}}" for literal router: Gid 99 is not permitted to relay mail at /etc/exim.pl line 365.
2005-10-05 16:17:35 1ENGdr-000146-3N ** wade@wadearnold.com R=fail_remote_domains: unrouteable mail domain "wadearnold.com"
2005-10-05 16:17:35 1ENGdr-000148-5D <= <> R=1ENGdr-000146-3N U=mailnull P=local S=1354
2005-10-05 16:17:35 1ENGdr-000146-3N Completed
2005-10-05 16:17:35 1ENGdr-000148-5D remote host address is the local host: bwebs1.aneinfosecure.com
2005-10-05 16:17:35 1ENGdr-000148-5D == nobody@bwebs1.aneinfosecure.com R=lookuphost defer (-1): remote host address is the local host
2005-10-05 16:17:35 1ENGdr-000148-5D ** nobody@bwebs1.aneinfosecure.com: retry timeout exceeded
2005-10-05 16:17:35 1ENGdr-000148-5D nobody@bwebs1.aneinfosecure.com: error ignored
2005-10-05 16:17:35 1ENGdr-000148-5D Completed
Any help would be greatly appreciated



LinkBack URL
About LinkBacks
Reply With Quote





