https://bugs.contribs.org/show_bug.cgi?id=10691
--- Comment #2 from Jean-Philippe Pialasse <[email protected]> ---
ok so trying:
# $self->load_geoip1() and return 1;
$self->load_geoip2() and return 1;
@400000005c303f36116d28a4 8411 check_badcountries: could not load GeoIP2
@400000005c303f391aaea294 8411 (connect) earlytalker: pass, not spontaneous
@400000005c303f391aaeaa64 8411 (connect) relay: skip, no match
@400000005c303f3920a7a074 8411 (connect) dnsbl: pass
$self->load_geoip2() and return 1;
$self->load_geoip1() and return 1;
@400000005c303f97033075ac 8675 check_badcountries: could not load GeoIP2
@400000005c303f9a11a0d71c 8675 (connect) earlytalker: pass, not spontaneous
@400000005c303f9a11a17f14 8675 (connect) relay: skip, no match
@400000005c303f9a11af6994 8675 FATAL PLUGIN ERROR [check_badcountries]: Can't
locate object method "name_by_addr" via package "Geo::IP" at
/usr/share/qpsmtpd/plugins/check_badcountries line 481.
@400000005c303f9a186dc6cc 8675 (connect) dnsbl: pass
so here a fix :
return if ! $self->{GeoIPASNum};
-
+ return if ! $self->{GeoIPASNum}->can('name_by_addr');
my $asn = $self->{GeoIPASNum}->name_by_addr($ip) or return;
@400000005c3042100e3ecffc 10093 check_badcountries: could not load GeoIP2
@400000005c3042131797f484 10093 (connect) earlytalker: pass, not spontaneous
@400000005c3042131797fc54 10093 (connect) relay: skip, no match
@400000005c3042131798003c 10093 (connect) check_badcountries: FR
as a resumé we can use the new plugin both with v1 and v2, all we need is to
make 2 modifications.
maybe 3 if we refer to https://bugs.contribs.org/show_bug.cgi?id=10679 in
order to keep same loglevel to get all informations we want.
I would say that of the two steps to verify one is ok (just need to patch),
the plugin works for both versions. It will only generate a log to says that
geoip2 is not available.
need to wait repo to update and test the update process
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/