Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Nov 2003
    Posts
    87

    Default Mail delivery problem

    After moving to 10.2.0-R82, I'm getting the following error whenever a bulletin board tries to send out an email:

    failed to expand condition "${perl{checkspam}}" for lookuphost router: Gid 99 is not permitted to relay mail at /etc/exim.pl line 365.

    The relevant section in exim.pl is:

    #MAILTRAP
    my $safegid = (getgrnam("mailtrap"))[2];
    if ($uid >= 99 && $gid >= 99 && $safegid ne $gid && -e "/etc/eximmailtrap") {
    die "Gid $gid is not permitted to relay mail";
    }
    #MAILTRAP

    Anyone know how to fix this?

  2. #2
    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

    Make sure that you don't have the following set: WHM > Tweak Settings > Prevent the user 'nobody' from sending out mail to remote addresses
    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

  3. #3
    nat
    nat is offline
    Member
    Join Date
    Jan 2003
    Posts
    210

    Default

    When sending using a php script and even squirrelmail included with cpanel....

    2005-11-21 21:04:36 1EeOSS-0003DD-JG failed to expand condition "${perl{checkspam}}" for literal router: Gid 531 is not permitted to relay mail at /etc/exim.pl line 365.

    "WHM > Tweak Settings > Prevent the user 'nobody' from sending out mail to remote addresses" is DISABLED.

    I have enabled it, restarted exim, then disabled it, then restarted exim, but that had no effect.

    I have ran...

    /scripts/mailperm
    /scripts/updateuserdomains
    /sbin/service exim restart

    For anyone else that has this problem and everything above does not work, remove the empty file at /etc/eximmailtrap

    rm /etc/eximmailtrap

  4. #4
    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

    If that file keeps reappearing, edit /var/cpanel/cpanel.config and set:

    eximmailtrap=0
    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

  5. #5
    Registered User
    Join Date
    Oct 2004
    Posts
    4

    Angry

    Quote Originally Posted by chirpy
    If that file keeps reappearing, edit /var/cpanel/cpanel.config and set:

    eximmailtrap=0
    That is strange answer from you...

    My problem:

    I am zydusnet (uid=32315 gid=32316)
    mailtrap (gid=32003)
    nobody (gid=uid=99)
    /etc/eximmailtrap exists

    My test:

    bash-2.05b$ exim -bt zydusnet@test.com
    LOG: MAIN PANIC
    failed to expand condition "${perl{checkspam}}" for lookuphost router: Gid 32316 is not permitted to relay mail at /etc/exim.pl line 365.

    LOG: MAIN PANIC
    failed to expand condition "${perl{checkspam}}" for literal router: Gid 32316 is not permitted to relay mail at /etc/exim.pl line 365.

    Your code:

    #MAILTRAP
    my $safegid = (getgrnam("mailtrap"))[2];
    if ($uid >= 99 && $gid >= 99 && $safegid ne $gid && -e "/etc/eximmailtrap") {
    die "Gid $gid is not permitted to relay mail";
    }
    #MAILTRAP

    Your condition works like

    if ( 32315 >= 99 && 32316 >= 99 && 32003 ne 32316 && -e "/etc/eximmailtrap") {
    die "Gid $gid is not permitted to relay mail";
    }

    1 & 1 & 1 & 1 = 1 !!!!

    As a result I am not able to send under real user environment and the originator of this post have told you the same. He cannot send from Cpane's webmail even...

    What is the solution? I am not a NOBODY user....

  6. #6
    Member chican0's Avatar
    Join Date
    Mar 2003
    Location
    Los Angeles
    Posts
    59

    Default

    I am having this same issue. Any more responses to this issue?

    Update: Nevermind... a /scripts/eximup --force fixed the problem for me as it was suggested in several other threads.
    Last edited by chican0; 01-25-2006 at 04:00 PM. Reason: Fixed the problem.

Similar Threads & Tags
Similar threads

  1. Local Mail Delivery Problem
    By biggdogg285 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-24-2006, 08:53 AM
  2. Mail receipt problem - local delivery failed
    By quortex in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-15-2005, 09:30 AM
  3. Mail delivery problem
    By Sheriff in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 04-20-2004, 02:50 AM
  4. Critical Mail Delivery Problem After Cpanel Update
    By bmcpanel in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-03-2003, 09:56 PM
  5. Mail delivery problem
    By sparek-3 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-07-2002, 05:28 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube