Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Oct 2004
    Posts
    39

    Default [RedHat] Exim: failed to expand condition "${perl{checkspam}}"

    After a few issues Exim was reinstalled. Since it was reinstalled, one of our PHP mail() scripts used for user registration confirmation can't dispatch e-mails, so our users can't register at the moment.

    exim_mainlog:

    2004-10-13 03:17:40 1CHXls-0001lZ-Tt <= xxx@xxx.net U=nobody P=local S=1413
    2004-10-13 03:17:41 1CHXls-0001lZ-Tt failed to expand condition "${perl{checkspam}}" for lookuphost router: you are not permitted to relay mail at /etc/exim.pl line 490.

    2004-10-13 03:17:41 1CHXls-0001lZ-Tt failed to expand condition "${perl{checkspam}}" for literal router: you are not permitted to relay mail at /etc/exim.pl line 490.

    2004-10-13 03:17:41 1CHXls-0001lZ-Tt ** xxx@post.htnet.hr R=fail_remote_domains: unrouteable mail domain "post.htnet.hr"
    The mails get returned.

    However, exim_paniclog produces:

    2004-10-13 03:17:41 1CHXls-0001lZ-Tt failed to expand condition "${perl{checkspam}}" for lookuphost router: you are not permitted to relay mail at /etc/exim.pl line 490.

    2004-10-13 03:17:41 1CHXls-0001lZ-Tt failed to expand condition "${perl{checkspam}}" for literal router: you are not permitted to relay mail at /etc/exim.pl line 490.
    Now, this is probably simple to configure using exim.conf editor in WHM but I really do not know what to enter and where.

    Mails sent to the same .post.htnet.hr or similar addresses through POP work, only e-mail sent through this form doesn't.

    We have recently had to reinstall Exim due to exim.conf issue mentioned in one of the threads here, and until then the latter script worked.

    Does this have something to do with this commented line in exim.conf:

    # host_accept_relay = localhost

    or is it some other setting?

    Thanks in advance

  2. #2
    Member
    Join Date
    Oct 2004
    Posts
    39

    Default

    OK, reinstall fixed this. cPanel was rewriting the working exim.conf with it's default after every upgrade.

    However, one problem remains, and it is extremely annoying.

    Last night cPanel has upgraded to the latest release - WHM 9.9.3 cPanel 9.9.3-R17
    RedHat 7.3 i686 - WHM X v3.1.0. It has rewritten the exim.conf with the default one, Exim startup failed.

    I have restored the working conf, restarted Exim. Service is up, mails go through normally, no errors in Exim logs, no errors in exim.conf but WHM is reporting Exim as failed, and chkservd is harrassing me with e-mails on Exim being unable to start every 7-8 minutes!

    chkservd.log:

    Starting clamd: rm: cannot lstat `.': Stale NFS file handle
    [ OK ]
    Starting exim: [ OK ]
    Starting exim-26: [ OK ]
    Starting exim-smtps: [ OK ]
    Starting antirelayd: [ OK ]
    Starting spamd: [ OK ]
    shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory
    Starting antirelayd: [ OK ]
    /bin/pwd: cannot get current directory: No such file or directory
    ]...exim-26 [+]...eximstats [shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory
    shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory
    +]...ftpd [+]...imap [+]...mysql [+]...syslogd [+]...Done
    /bin/pwd exists...

    Guys, does anyone know the fix for this? It is extremely annoying
    Last edited by SupaDucta; 10-19-2004 at 07:45 AM.

  3. #3
    Member nitromax's Avatar
    Join Date
    Feb 2002
    Posts
    189

    Default

    Did you ever resolve this problem? I'm having the same thing:

    2004-12-15 13:26:13 1Ceemr-0002sJ-0g failed to expand condition "${perl{checkspam}}" for lookuphost router: Gid 646 is not permitted to relay mail at /etc/exim.pl line 352.
    Chad E. Roadhouse

  4. #4
    Member avijit's Avatar
    Join Date
    Jul 2004
    Location
    India
    Posts
    116

    Default

    Does anybody have any solution to it . Even the /scripts/eximup didnt help
    Stop Reymond !! A single conversation with a wise man is better than ten years of study. So....

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

    The problem with digging up an old thread is that the orignal information is log out of date, like in this case.

    Exactly what error are you getting, under what circumstances and what version of exim are you running?

    Before you do that, check that you do not have WHM > Tweak Settings > Prevent the user 'nobody' from sending out mail to remote addresses > enabled. And that you do have a valid email address in each field of WHM > Change System Mail Preferences >
    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. Replies: 0
    Last Post: 02-28-2011, 07:35 AM
  2. Email is dead: failed to expand condition Errors
    By Bravo in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 08-18-2007, 06:25 AM
  3. lookuphost router failed to expand "$perl{mailtrapheaders}}"
    By jonwatson in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-06-2007, 12:16 PM
  4. failed to expand condition "${perl
    By Estrac in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-01-2005, 07:58 PM
  5. failed to expand condition
    By BianchiDude in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-24-2005, 10:41 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube