https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7741
Marcel <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #17 from Marcel <[email protected]> --- Unfortunately I did up some new RPMs after the latest commits and this isn't completely fixed. When the perl-Geo-IP module is also installed spamassassin will still display the Invalid database type 0 error even when country_db_type GeoIP2 and geoip2_default_db_path /usr/share/GeoIP/GeoLite2-City.mmdb is set in the config. Note: perl-Geo-IP needs to be on the system as its required by the awstats package. ># spamassassin --lint >Invalid database type 0 The RelayCountry plugin: >spamassassin --lint -D 2>&1 | grep -i RelayCountry >Jul 22 04:53:51.895 [16493] dbg: plugin: loading >Mail::SpamAssassin::Plugin::RelayCountry from @INC >Jul 22 04:53:53.349 [16493] dbg: plugin: >Mail::SpamAssassin::Plugin::RelayCountry=HASH(0x3e5f178) implements >'extract_metadata', priority 0 >Jul 22 04:53:53.363 [16493] dbg: metadata: RelayCountry: Using database: >GeoIP2 GeoLite2 City database / Mon Jul 15 11:54:14 2019 >Jul 22 04:53:53.363 [16493] dbg: check: tagrun - tag RELAYCOUNTRY is now >ready, value: ARY:[] >Jul 22 04:53:53.363 [16493] dbg: check: tagrun - tag RELAYCOUNTRYEXT is now >ready, value: ARY:[] >Jul 22 04:53:53.363 [16493] dbg: check: tagrun - tag RELAYCOUNTRYAUTH is now >ready, value: ARY:[] >Jul 22 04:53:53.363 [16493] dbg: check: tagrun - tag RELAYCOUNTRYALL is now >ready, value: ARY:[] The URILocalBL plugin: >spamassassin --lint -D 2>&1 | grep -i URILocalBL >Jul 22 04:55:04.651 [19000] dbg: plugin: loading >Mail::SpamAssassin::Plugin::URILocalBL from @INC >Jul 22 04:55:05.109 [19000] dbg: config: uri_block_cc added >URILOCALBL_BAD_COUNTRY >Jul 22 04:55:06.238 [19000] dbg: check: uri_local_bl evaluating rule >URILOCALBL_BAD_COUNTRY using database Geo::IP GEO-106FREE 20180327 Build 1 >Copyright (c) 2018 MaxMind Inc All Rights Reserved >Jul 22 04:55:06.238 [19000] dbg: check: uri_local_bl URILOCALBL_BAD_COUNTRY no >match The Geo databases: ># ls -la /usr/share/GeoIP/ >total 84588 >drwxr-xr-x 2 root root 4096 Apr 15 03:01 . >drwxr-xr-x. 123 root root 4096 Jul 20 10:29 .. >lrwxrwxrwx 1 root root 17 Jan 6 2019 GeoIP.dat -> GeoIP-initial.dat >-rw-r--r-- 1 root root 19 Apr 15 03:01 GeoIP.dat.test >-rw-r--r-- 1 root root 1242574 Oct 30 2018 GeoIP-initial.dat >lrwxrwxrwx 1 root root 19 Jan 6 2019 GeoIPv6.dat -> >GeoIPv6-initial.dat >-rw-r--r-- 1 root root 2322773 Oct 30 2018 GeoIPv6-initial.dat >-rw-r--r-- 1 root root 61244638 Jul 17 01:00 GeoLite2-City.mmdb >-rw-r--r-- 1 root root 20539238 Apr 2 2018 GeoLiteCity.dat >-rw-r--r-- 1 root root 1242574 May 3 2018 GeoLiteCountry.dat It seems that the URILocalBL still tries to use the old GeoIP database even though GeoIP2::Database::Reader is installed and working with the RelayCountry plugin. -- You are receiving this mail because: You are the assignee for the bug.
