Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 13 of 13
  1. #1
    Member kiwiroll's Avatar
    Join Date
    Jun 2006
    Location
    Japan
    Posts
    16

    Angry exim (package exim is not installed)

    /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. #2
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    What is the result of the following commands?

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

  3. #3
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    What is the output of:

    /scripts/eximup --force --verbose

    Also:

    rpm -qa | grep -i exim

  4. #4
    Member kiwiroll's Avatar
    Join Date
    Jun 2006
    Location
    Japan
    Posts
    16

    Default

    Quote Originally Posted by Shekhar View Post
    What is the result of the following commands?

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

    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. #5
    Member kiwiroll's Avatar
    Join Date
    Jun 2006
    Location
    Japan
    Posts
    16

    Default

    Quote Originally Posted by cpanelkenneth View Post
    What is the output of:

    /scripts/eximup --force --verbose

    Also:

    rpm -qa | grep -i exim



    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:NS is up to date (0.61).
    perlmod--Install done
    Fetching http://diff.cpanel.net/exim/4.68-1/r...ildir.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. #6
    Registered User
    Join Date
    Sep 2007
    Posts
    3

    Default 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. #7
    Registered User
    Join Date
    Sep 2007
    Posts
    3

    Default 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. #8
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by kiwiroll View Post
    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:



    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?
    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. #9
    Registered User
    Join Date
    Sep 2007
    Posts
    3

    Default 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.

    Ronnie

  10. #10
    Member kiwiroll's Avatar
    Join Date
    Jun 2006
    Location
    Japan
    Posts
    16

    Angry

    Quote Originally Posted by rgilkey View Post
    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

    exim.pl file thank you!!!!

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

    E-mail moved.

    but

    It is not possible to solve it fundamentally ・・・

  11. #11
    Member kiwiroll's Avatar
    Join Date
    Jun 2006
    Location
    Japan
    Posts
    16

    Red face

    Quote Originally Posted by cpanelkenneth View Post
    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/


    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. #12
    cPanel Partner NOC cPanel Partner NOC Badge DWHS.net's Avatar
    Join Date
    Jul 2002
    Location
    LA, Costa RIca
    Posts
    1,356

    Default

    Quote Originally Posted by kiwiroll View Post
    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.
    Thanks for clarifying! This was very helpful

  13. #13
    Member
    Join Date
    Jan 2006
    Posts
    29

    Default 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!!

Similar Threads & Tags
Similar threads

  1. Exim not installed on Fedora 3
    By WinterpegCanuck in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 04-07-2005, 12:31 PM
  2. exim failed !! in big mess !! Error:package exim is not installed
    By atul in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-15-2004, 11:37 AM
  3. Exim failed after Mailscanner installed
    By Doctor in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 02-15-2004, 09:30 AM
  4. Exim Says not installed by is and working
    By networkalive in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-24-2003, 10:07 AM
  5. Updated Exim+Antivirus Package Available
    By Elikster in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-12-2003, 05:32 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube