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 (package exim is not installed)

Discussion in 'Data Protection' started by kiwiroll, Oct 9, 2007.

  1. kiwiroll

    kiwiroll Member

    Joined:
    Jun 5, 2006
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Japan
    /var/log/exim_mainlog


    2007-10-09 15:51:35 1If4hW-0007jF-MS failed to expand condition "${perl{democheck}}" for democheck router: Undefined subroutine &main::democheck called.

    2007-10-09 15:51:35 1If4hW-0007jF-MS failed to expand condition "${perl{checkbx_autowhitelist}{$authenticated_id}}" for boxtrapper_autowhitelist router: Undefined subroutine &main::checkbx_autowhitelis
    t called.

    2007-10-09 15:51:35 1If4hW-0007jF-MS failed to expand condition "${perl{hasfilterfile}{$local_part}}" for mainacct_central_user_filter router: Undefined subroutine &main::hasfilterfile called.

    2007-10-09 15:51:35 1If4hW-0007jF-MS == info@xxx.com <root@xxx.com> routing defer (-51): retry time not reached
    2007-10-09 15:51:35 1If4hW-0007jF-MS == aaa@xxx.net <root@xxx.com> routing defer (-51): retry time not reached



    ------

    WHM 11.2.0 cPanel 11.11.0-S16999
    REDHAT Enterprise 4 i686 - WHM X v3.1.0

    ------

    WHM > Service Status > exim (package exim is not installed)

    ------


    The following were executed.

    /scripts/courierup --force
    /scripts/eximup --force
    /scripts/buildeximconf
    /scripts/restartsrv_exim

    and

    /etc/exim.pl → doesn't exist


    It is not possible to solve it.

    please help me!!
     
  2. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    What is the result of the following commands?

    /etc/init.d/exim restart
    /etc/init.d/exim status
     
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    What is the output of:

    /scripts/eximup --force --verbose

    Also:

    rpm -qa | grep -i exim
     
  4. kiwiroll

    kiwiroll Member

    Joined:
    Jun 5, 2006
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Japan

    root@xxx [/etc]# /etc/init.d/exim restart
    Shutting down exim: [ OK ]
    Shutting down antirelayd: [ OK ]
    Shutting down spamd: [ OK ]
    Starting exim: [ OK ]
    Starting exim-smtps: [ OK ]
    Starting antirelayd: [ OK ]
    Starting spamd: [ OK ]

    root@xxx [/etc]# /etc/init.d/exim status
    exim (pid 6809 6804) is running...


    but

    It is not possible to solve it.
    please help me!!
     
  5. kiwiroll

    kiwiroll Member

    Joined:
    Jun 5, 2006
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Japan



    root@xxx [/etc]# /scripts/eximup --force --verbose
    Exim (maildir) Setup Script Version 20.0
    Fetching version information from http://updates.cpanel.net/eximinstall/version (STABLE)....Fetching http://updates.cpanel.net/eximinstall/version (0)....@208.74.123.20......connected......receiving...100%......Done
    Done
    This is the exim 4.68 installer release number 1 for platform redhat AS-4
    rpmdb: Lock table is out of available locker entries
    error: db4 error(22) from db->close: Invalid argument
    error: cannot open Packages index using db3 - Cannot allocate memory (12)
    error: cannot open Packages database in /var/lib/rpm
    An error has occurred:
    exceptions.TypeError
    See /var/log/up2date for more information
    Resetting Exim to cPanel Defaults and Installing the Latest Version
    Method: Perl Expect
    Fetching CPAN timestamp...Done
    Testing connection speed...(this could take a while)...Done
    Ping:22.522 Testing connection speed to ftp.nara.wide.ad.jp using pureperl...(156700.00 bytes/s)...Done
    Ping:101.500 Testing connection speed to cpan-sj.viaverio.com using pureperl...(9524.24 bytes/s)...Done
    Three usable mirrors located
    Mirror Check passed for ftp.nara.wide.ad.jp (/index.html)
    Unknown config variable 'less'
    commit: wrote '/usr/lib/perl5/5.8.8/CPAN/Config.pm'
    CPAN: File::HomeDir loaded ok (v0.66)
    CPAN: Storable loaded ok (v2.16)
    Going to read /home/.cpan/Metadata
    Database was generated on Tue, 09 Oct 2007 15:36:47 GMT
    HTML::Parser is up to date (3.56).
    cPCPAN: Module (Mail::SpamAssassin) holdback (3.002003 held back to 3.2.3)
    Mail::SpamAssassin is up to date (3.002003).
    Net::DNS is up to date (0.61).
    perlmod--Install done
    Fetching http://diff.cpanel.net/exim/4.68-1/redhat/AS-4/exim-4.68-1_cpanel_maildir.i386.rpm (0)....@208.74.123.20......connected......receiving...1%...2%...3%...4%...5%...6%...7%...8%...9%...10%...11%...12%...13%...14%...15%...16%...17%...18%...19%...20%...21%...22%...23%...24%...25%...26%...27%...28%...29%...30%...31%...32%...33%...34%...35%...36%...37%...38%...39%...40%...41%...42%...43%...44%...45%...46%...47%...48%...49%...50%...51%...52%...53%...54%...55%...56%...57%...58%...59%...60%...61%...62%...63%...64%...65%...66%...67%...68%...69%...70%...71%...72%...73%...74%...75%...76%...77%...78%...79%...80%...81%...82%...83%...84%...85%...86%...87%...88%...89%...90%...91%...92%...93%...94%...95%...96%...97%...98%...99%...100%......Done
    rpmdb: Lock table is out of available locker entries
    error: db4 error(22) from db->close: Invalid argument
    error: cannot open Packages index using db3 - Cannot allocate memory (12)
    error: cannot open Packages database in /var/lib/rpm
    rpmdb: Lock table is out of available locker entries
    error: db4 error(22) from db->close: Invalid argument
    error: cannot open Packages database in /var/lib/rpm
    Installing latest version of antirelayd ... Done
    Building exim.conf ... 2007-10-10 09:38:02 non-existent configuration file(s): /etc/exim.conf
    Enabled system filter options: attachments|fail_spam_score_over_200|spam_rewrite
    Enabled ACL options in block ACL_RBL_BLOCK:
    Enabled ACL options in block ACL_NOTQUIT_BLOCK: ratelimit
    Enabled ACL options in block ACL_CONNECT_BLOCK: ratelimit
    Enabled ACL options in block ACL_SPAM_BLOCK: deny_spam_score_over_200
    Detected spam handling in acls, disabling spamassassin in routers & transports!.
    SpamAssassin method remains unchanged
    Configured options list is:
    Provided options list is: acl_smtp_notquit|acl_smtp_connect|spamd_address
    Exim Insert Regex is: virtual_user|virtual_sa_user|address_pipe|localuser|virtual_aliases|virtual_userdelivery|lookuphost
    Exim Replace Regex is: virtual_sa_user|sa_localuser|virtual_sa_userdelivery|local_sa_delivery|central_filter|central_user_filter|democheck|fail_remote_domains|literal|localuser_spam|lookuphost|remote_smtp|virtual_user_spam
    Exim Match Insert Regex is: quota_directory|maildir_format
    Adding maildir specific virtual_sa_user to exim config
    Adding maildir specific address_pipe to exim config
    Exim version 4.68 #1 built 02-Sep-2007 10:33:24
    Copyright (c) University of Cambridge 2006
    Berkeley DB: Sleepycat Software: Berkeley DB 4.2.52: (December 11, 2004)
    Support for: crypteq iconv() PAM Perl OpenSSL Content_Scanning Old_Demime Experimental_DomainKeys
    Lookups: lsearch wildlsearch nwildlsearch iplsearch dbm dbmnz
    Authenticators: cram_md5 plaintext spa
    Routers: accept dnslookup ipliteral manualroute queryprogram redirect
    Transports: appendfile/maildir autoreply pipe smtp
    Size of off_t: 8
    Configuration file passes test! New configuration file was installed.
    Exim Perl Load List is: boxtrapper|checkuserquota|spam_acl_support|fast_isdemo|checkspam2|checkpass_cphulkd|checkspam
    /etc/exim.pl.local installed!
    Done
    /scripts/mailscannerupdate: This script should not be run manually. If you really wanted to do that, please add --force
    exim: no process killed
    Waiting for exim to restart..............finished.

    mailnull 24340 0.0 0.3 6860 4096 ? S Oct09 0:00 eximstats
    mailnull 6031 0.0 0.0 9228 876 ? Ss 09:38 0:00 /usr/sbin/exim -bd -q60m
    mailnull 6036 0.0 0.0 8972 848 ? Ss 09:38 0:00 /usr/sbin/exim -tls-on-connect -bd -oX 465
    root 6080 0.0 0.1 5508 1428 ? S 09:38 0:00 antirelayd

    exim started ok
    Install Complete





    root@xxx [/etc]# rpm -qa | grep -i exim
    rpmdb: Lock table is out of available locker entries
    error: db4 error(22) from db->close: Invalid argument
    error: cannot open Packages index using db3 - Cannot allocate memory (12)
    error: cannot open Packages database in /var/lib/rpm


    It becomes an error.
    Why?
     
  6. rgilkey

    rgilkey Registered

    Joined:
    Sep 18, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    same here

    I'm having the _exact_ same errors after an auto-update from CPanel. I've turned auto-updates off to prevent this from happening again, but what can be done to resolve this issue now?

    I have _zero_ mail functionality for any of my domains, and the RPM database is down too.
     
  7. rgilkey

    rgilkey Registered

    Joined:
    Sep 18, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    short-term resolution!

    Kiwiroll,

    I found a resolution to this issue. Since the /etc/exim.pl file was lost in the upgrade (as well as many other things) I was able to restore the file from an off-site backup just before the upgrade. The file contents are too large to be displayed in this post, so you can download them from https://web.puryear-it.com/~rgilkey/exim.pl.

    Then just run a "service exim restart" and your mail will flow again.

    Ronnie
     
  8. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    These errors must be fixed, your RPM database is corrupt. The information at the following link will help you resolve these errors. Once resolved, you should be able to re-install the exim RPM.

    http://www.rpm.org/hintskinks/repairdb/
     
  9. rgilkey

    rgilkey Registered

    Joined:
    Sep 18, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    resolved for me

    cpanelkenneth,

    Thanks for the quick link on rebuilding the RPM database. We're running on CentOS so all we had to do was reboot the server (rc.sysinit cleared the RPM database locks).

    After that I just did a /scripts/cpup --force and everything is back to normal. :D

    Ronnie
     
  10. kiwiroll

    kiwiroll Member

    Joined:
    Jun 5, 2006
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Japan

    exim.pl file thank you!!!!

    /etc/exim.pl  → It set it up.

    E-mail moved.

    but

    It is not possible to solve it fundamentally ・・・:confused:
     
  11. kiwiroll

    kiwiroll Member

    Joined:
    Jun 5, 2006
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Japan


    very!! very!! thank you


    root@xxx [/etc]# rpm -qa | grep -i exim
    exim-4.68-1_cpanel_maildir


    WHM > Service Status > exim (exim-4.68-1_cpanel_maildir)

    and

    /scripts/eximup --force --verbose → OK

    /etc/exim.pl → It exists.


    The error was solved. :)
     
  12. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Thanks for clarifying! This was very helpful
     
  13. bmarshallbri

    bmarshallbri Active Member

    Joined:
    Jan 11, 2006
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    RE: How does this happen?

    I just had similar issues. The above notes fixed it for me. I had stale locks on the RPM database and exim.pl had vanished on my system.

    Did upcp cause this?

    Thanks god I have a sister machine to this that had the exim.pl file, otherwise I'd of been hosed.

    Taking snapshots now!!
     

Share This Page