Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

SOLVED Where is exim version information stored?

Discussion in 'E-mail Discussions' started by jackburton, Jan 25, 2018.

  1. jackburton

    jackburton Registered

    Joined:
    Jan 25, 2018
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    east coast
    cPanel Access Level:
    Root Administrator
    Hello,

    I was asked to find out why one of our cPanel servers is showing the wrong Exim version in WHM -> Service Status. That page reports 4.89-3, but every other indication clearly shows 4.89.1-1.

    Code:
    root@cp20 ~ # exim --version |head -1
    Exim version 4.89_1 #1 built 29-Nov-2017 18:47:20
    2018-01-25 14:20:57 cwd=/root 2 args: exim --version
    
    Code:
    root@cp20 ~ # rpm -qa |grep exim
    exim-4.89.1-1.cp1162.x86_64
    
    Code:
    (tail end of 'yum list exim')
    Installed Packages
    exim.x86_64                                                                             4.89.1-1.cp1162                                                                              installed
    
    Code:
    root@cp20 ~ # /scripts/check_cpanel_rpms
    root@cp20 ~ #
    
    Code:
    root@cp20 ~ # grep exim /var/cpanel/rpm.versions.d/local.versions
    root@cp20 ~ #
    
    I've used grep on all of /var, /usr, /etc, and /scripts and am not seeing where the presumably cached version is being pulled from. 4.89-3 was never installed on here but that version is being stored somewhere. Not even running strace on cpsrvd is yielding any useful results, but there is a ton of data before that version is referenced (that I may have missed), and clearly shows the wrong version.

    Code:
    <td>exim</td>\n        <td>4.89-3</td>\n        <td>up</td>\n
    
    Checking other servers using 68.0 (build 27) show the correct version. Reinstalling Exim, forcing upcp, and disabling/enabling monitoring didn't do anything either.

    Can you let me know where Service Status is fetching the Exim version from?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,763
    Likes Received:
    1,710
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The following command should output the version of Exim installed on your system:

    Code:
    whmapi1 installed_versions packages=1|grep exim
    Does the issue persist if you move the cPanel cached RPM data and reload "WHM >> Server Status"? EX:

    Code:
    mkdir /root/cprpmcache/
    mv /root/.cpanel/datastore/_bin_rpm* /root/cprpmcache/
    Thank you.
     
  3. jackburton

    jackburton Registered

    Joined:
    Jan 25, 2018
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    east coast
    cPanel Access Level:
    Root Administrator
    Hi Michael,

    Thank you very much for your prompt response. That was indeed the problem.

    Code:
    root@cp20 ~ # whmapi1 installed_versions packages=1|grep exim
      exim: 4.89-3
        - exim-4.89-3.cp1162.x86_64
    
    Moved the _bin_rpm* out of the way and Service Status is showing the correct data now.

    Thank you again!
     
    cPanelMichael likes this.
Loading...

Share This Page