Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jan 2002
    Posts
    113

    Default php can not use mail object exim stopping messages

    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. #2
    Member
    Join Date
    Jan 2002
    Posts
    113

    Default resolved

    rpm --rebuilddb
    /scripts/exim4 --force


    Fixed the issue.

  3. #3
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    It was probably the existence of a file /etc/eximmailtrap and deleting it could have fixed the issue. Reinstalling exim probably wiped it
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. Whitelisting a mail server ip for incoming messages via exim
    By karikas in forum E-mail Discussions
    Replies: 3
    Last Post: 11-12-2007, 11:09 PM
  2. PHP mail script owner and exim mail logs
    By neo4242002 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-16-2007, 08:06 AM
  3. Stopping exim-26?
    By webignition in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-15-2005, 09:31 AM
  4. Filtering mail messages in exim.conf
    By NetX in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-10-2004, 12:42 AM
  5. Stopping Exim
    By elleryjh in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 08-02-2003, 01:52 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube