The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

php can not use mail object exim stopping messages

Discussion in 'E-mail Discussions' started by wadearnold, Oct 5, 2005.

  1. wadearnold

    wadearnold Well-Known Member

    Joined:
    Jan 13, 2002
    Messages:
    111
    Likes Received:
    0
    Trophy Points:
    16
    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
     
  2. wadearnold

    wadearnold Well-Known Member

    Joined:
    Jan 13, 2002
    Messages:
    111
    Likes Received:
    0
    Trophy Points:
    16
    resolved

    rpm --rebuilddb
    /scripts/exim4 --force


    Fixed the issue.
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    It was probably the existence of a file /etc/eximmailtrap and deleting it could have fixed the issue. Reinstalling exim probably wiped it ;)
     
Loading...

Share This Page