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.

Exim problems

Discussion in 'General Discussion' started by chakky, May 13, 2004.

  1. chakky

    chakky Well-Known Member

    Joined:
    Sep 22, 2002
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    When I tail my exim_maillog, I get this error.
    +++++++++++++++
    ailed to expand condition "${perl{checkspam}}" for literal router: Undefined
    subroutine &main::checkspam called.

    2004-05-13 00:25:49 1BO8j7-00033n-JT failed to expand condition "${perl{check_deliver}{$domain}{$local_part}}" for virtual_user router: Undefined subroutine &main::check_deliver called.

    2004-05-13 00:25:49 1BO8j7-00033n-JT failed to expand condition "${perl{checkusersa}{$local_part}{$received_protocol}}" for sa_localuser router: Undefined subroutine &main::checkusersa called.

    2004-05-13 00:25:49 1BO8j7-00033n-JT failed to expand condition "${perl{hasfilterfile}{$local_part}}" for central_user_filter router: Undefined subroutine &main::hasfilterfile called.

    2004-05-13 00:25:49 1BO8j7-00033n-JT failed to expand condition "${perl{checkuserspambox}{$local_part}}" for localuser_spam router: Undefined subroutine &main::checkuserspambox called.
    +++++++++++++++

    When I try to do a /scripts/updatenow; /scripts/exim4

    It fails with an error
    ++++++++++++++++++++++++++
    root@s6 [~]# /scripts/exim4
    This is the exim 4.34 installer release number 0 subrelease rhel3
    rpmdb: fatal region error detected; run recovery
    error: db4 error(-30982) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
    error: cannot open Packages index using db3 - (-30982)
    error: cannot open Packages database in /var/lib/rpm
    Traceback (most recent call last):
    File "/usr/sbin/up2date", line 1190, in ?
    sys.exit(main() or 0)
    File "/usr/sbin/up2date", line 657, in main
    ret = sanityChecks(fromDaemon, hasGui)
    File "/usr/sbin/up2date", line 288, in sanityChecks
    if cfg["useGPG"] and gpgUtils.checkGPGInstallation() == 2:
    File "gpgUtils.py", line 31, in checkGPGInstallation
    File "gpgUtils.py", line 75, in findKey
    File "rpmUtils.py", line 97, in installedHeadersNameVersion
    TypeError: rpmdb open failed
    Resetting Exim to cPanel Defaults and Installing the Latest Version
    `/etc/localdomains' -> `/etc/localdomains.eximreset'
    `/etc/aliases' -> `/etc/aliases.eximreset'
    `/etc/secondarymx' -> `/etc/secondarymx.eximreset'
    --00:29:43-- http://diff.cpanel.net/exim-cpanel7...us_rewrite_mailman2_mailtrap_exiscan.i386.rpm
    => `exim-4.34-0_cpanel_stmpcontrol_antivirus_rewrite_mailman2_mailtrap_exiscan.i386.rpm'
    Resolving diff.cpanel.net... done.
    Connecting to diff.cpanel.net[216.118.116.104]:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1,905,958 [application/x-rpm]

    100%[================================================================================>] 1,905,958 1.24M/s ETA 00:00

    00:29:44 (1.24 MB/s) - `exim-4.34-0_cpanel_stmpcontrol_antivirus_rewrite_mailman2_mailtrap_exiscan.i386.rpm' saved [1905958/1905958]

    rpmdb: fatal region error detected; run recovery
    error: db4 error(-30982) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
    error: cannot open Packages index using db3 - (-30982)
    error: cannot open Packages database in /var/lib/rpm
    rpmdb: fatal region error detected; run recovery
    error: db4 error(-30982) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
    error: cannot open Packages database in /var/lib/rpm
    `/etc/localdomains.eximreset' -> `/etc/localdomains'
    `/etc/aliases.eximreset' -> `/etc/aliases'
    `/etc/secondarymx.eximreset' -> `/etc/secondarymx'
    Building exim.conf...Exim version 4.30 #1 built 20-Feb-2004 16:20:01
    Copyright (c) University of Cambridge 2003
    Berkeley DB: Sleepycat Software: Berkeley DB 4.1.25: (August 21, 2003)
    Support for: iconv() PAM Perl OpenSSL
    Lookups: lsearch wildlsearch nwildlsearch dbm dmbnz
    Authenticators: cram_md5 plaintext spa
    Routers: accept dnslookup ipliteral manualroute queryprogram redirect
    Transports: appendfile autoreply pipe smtp
    Configuration file is /etc/exim.conf.buildtest
    `/etc/exim.conf.buildtest' -> `/etc/exim.conf'
    Done
    exim: no process killed
    Waiting for exim to restart..............finished.
    +++++++++++++++++++++


    Any ideas???
     
  2. chakky

    chakky Well-Known Member

    Joined:
    Sep 22, 2002
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    Its been fixed. :)

    I did a rpm --rebuilddb
    Then followed it up with a
    /scripts/exim4

    and the error has been solved :)
     
Loading...

Share This Page