Hi, was there a recent change in RelayCountry.pm? This is from the
current svn 3.4.2 snapshot:

Jun 20 12:47:41 bwimail01 amavis[25294]: (25294-14) _WARN: plugin:
eval failed: Can't call method "country_code_by_addr_v6" on an
undefined value at
/usr/share/perl5/vendor_perl/Mail/SpamAssassin/Plugin/RelayCountry.pm
line 166.

   161    foreach my $relay (@{$msg->{metadata}->{relays_untrusted}}) {
   162      my $ip = $relay->{ip};
   163      # Private IPs will always be returned as '**'
   164      if ( $conf_country_db_type eq "GeoIP" ) {
   165            if ( $ip !~ /^$IPV4_ADDRESS$/o ) {
   166              $geo = $dbv6->country_code_by_addr_v6($ip) || "XX";
   167            } else {
   168              $geo = $db->country_code_by_addr($ip) || "XX";
   169            }
   170      } elsif ( $conf_country_db_type eq "Fast" ) {
   171          $geo = $db->inet_atocc($ip) || "XX";
   172      }
   173      $cc = $ip =~ /^$IP_PRIVATE$/o ? '**' : $geo;
   174      $countries .= $cc." ";
   175    }

Reply via email to