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.

Spamassassin relay country & Can't locate loadable object for module Geo::IP

Discussion in 'E-mail Discussions' started by feanorknd, Aug 11, 2016.

  1. feanorknd

    feanorknd Member

    Joined:
    Sep 28, 2005
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Helo:

    Executed:
    Code:
    /scripts/perlinstaller Geo::IP
    Then, Geo::IP updated to version 1.50.... bug fixed, but not really, as:


    Code:
    root@server [/etc/mail/spamassassin]# find /usr/ -type f -name "IP.pm" | grep -i Geo | xargs grep "VERSION ="
    /usr/local/csf/lib/Geo/IP.pm:    $VERSION = '1.45';
    /usr/local/share/perl5/Geo/IP.pm:    $VERSION = '1.50';
    /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/Geo/IP.pm:    $VERSION = '1.45';
    So.... as you may see, 3rdparty perl module from cpanel is not updated.

    Spamassassin is using bugged perl GEO::IP outdated version yet.

    Is there a way to update correctly the perl GEO::IP module from cpanel's perl????

    If trying installing GEO::IP module from WHM, the perl installer does say:

    Code:
    Source: fastest CPAN mirror ... Geo::IP is up to date. (1.50)
    what's wrong?

    Thanks.
     
  2. bloatedstoat

    bloatedstoat Well-Known Member

    Joined:
    Jun 14, 2012
    Messages:
    78
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Victoria, Australia
    cPanel Access Level:
    Root Administrator
    FWIW, I noticed that the relay country plugin was not flagging bad countries in the mail headers.
    Having looked at /etc/mail/spamassassin/init.pre the line:

    loadplugin Mail::SpamAssassin::Plugin::RelayCountry


    was commented out, does the init.pre file get modified during updates?

    I enabled it again and restarted spamd. I'm having deja-vu as this issue has reappeared again:

    Can't locate loadable object for module Geo::IP in @INC (@INC contains: /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib /usr/local/cpanel /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/5.22.1/x86_64-linux-64int /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/5.22.1 /opt/cpanel/perl5/522/site_lib/x86_64-linux-64int /opt/cpanel/perl5/522/site_lib) at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/Geo/IP.pm line 42.

    Thing is, how is the Use of uninitialized value $hasStructureInfo in numeric eq (==) at (eval 27) line 5520 line within IP.pm throwing an error in the maillog if the IP.pm file cannot be found in the first place? Confused by this.

    Just to add as an edit to this post. The 'RELAYCOUNTRY_BAD' rule we have set is triggering as the header is in the received email, as such the file is loading regardless of the above "Can't locate loadable object for module Geo::IP" error.
     
    #2 bloatedstoat, Aug 16, 2016
    Last edited: Aug 16, 2016
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
Loading...

Share This Page