spamassassin-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giovanni Bechis <giova...@paclan.it>
Subject Re: How to block mails from unknown ip addresses?
Date Mon, 26 Aug 2019 07:07:47 GMT
On 8/26/19 9:01 AM, Dominic Raferd wrote:
> 
> 
> On Sun, 25 Aug 2019 at 20:16, <tbarth@txbweb.de <mailto:tbarth@txbweb.de>>
wrote:
> 
>     Am 2019-08-25 20:54, schrieb Matus UHLAR - fantomas:
> 
>     > I don't think you should download geoip postgres modules when what you
>     > really need is apparently more recent database.
>     >
>     > Debian SA package suggests installing libgeo-ip-perl which further
>     > recommends geoip-database.
>     >
>     > buster contains version 20181108-1, while buster-backports contains
>     > version
>     > 20190724-1~bpo10+1
>     > Your problem could apparently be solves installing backported
>     > geoip-database
>     > version.
> 
>     I tried this already (described in e-Mail at 4:53 pm), but the ip
>     address 45.141.151.5 wasn't in the backport geoip-database.
> 
>     >> Maybe I have tomatoes on my eyes. I can't find the right debian
>     >> package with the DB_File-Module. Do you or someone else know which
>     >> package does contain the module? I don't use the cpan shell for
>     >> installing modules.
>     >
>     > it's very good that you don't use these. They can make mess on debian
>     > system. Onlly install debian packages unless you really need and can
>     > take
>     > care of manually installed packages.
> 
>     Yes, as you can see I got a warnung and I installed the
>     liblocale-codes-perl package.
> 
>     # ./pgeoiplookup.pl <http://pgeoiplookup.pl> -f /opt/ipcc/ipcc.db 45.141.151.5
>     Locale::Country will be removed from the Perl core distribution in the
>     next major release. Please install the separate liblocale-codes-perl
>     package. It is being used at ./pgeoiplookup.pl <http://pgeoiplookup.pl>, line
35.
>     Locale::Codes will be removed from the Perl core distribution in the
>     next major release. Please install the separate liblocale-codes-perl
>     package. It is being used at /usr/share/perl/5.28/Locale/Country.pm,
>     line 22.
>     GeoIP version 1566699945: TR, Turkey
> 
> 
> This has worked for me on Debian derivatives (Ubuntu...) to install GeoIP2 with the much
faster XS implementation:
> 
> cpan App::cpanminus &&\
> add-apt-repository -y ppa:maxmind/ppa &&\
> apt install libmaxminddb0 libmaxminddb-dev mmdb-bin &&\
> cpanm Math::Int128 &&\
> cpanm Net::Works::Network &&\
> cpanm MaxMind::DB::Reader::XS &&\
> cpanm GeoIP2::Database::Reader
> 
Updated geo databases are DB_File and GeoIP2 (fast does not support ipv6 and geoip is outdated).
For DB_File you can/should update whenever you want but you do not have city info, for GeoIP2
you have more info but you
should wait Maxmind to update the database.

 Giovanni

Mime
View raw message