Problems with RelayCountry

Peter H. Lemieux mailscanner at replies.cyways.com
Wed Feb 9 15:53:43 UTC 2022


I installed version 5.4.3 the other day, and now I persistently get this 
error:

Use of uninitialized value in subroutine entry at 
/usr/local/share/perl5/Mail/SpamAssassin/Plugin/RelayCountry.pm line 219.
plugin: eval failed: Can't use string ("") as a subroutine ref while 
"strict refs" in use at 
/usr/local/share/perl5/Mail/SpamAssassin/Plugin/RelayCountry.pm line 219.
Use of uninitialized value $countries in split at 
/usr/local/share/perl5/Mail/SpamAssassin/Plugin/RelayCountry.pm line 274.

I think it is having trouble finding the IP->Country database.  I've 
tried various things suggested online to no avail.

I changed RelayCountry.pm add Fast to the country_db_type line even 
though it is said to be the default.  Didn't help.

The required files cc.gif and ip.gif are in 
/usr/share/perl5/vendor_perl/IP/Country/Fast.  Adding that directory to 
country_db_path in RelayCountry does not help.

I'd like to be able to disable calls to RelayCountry for the time being 
while I get this problem worked out.  I just don't know what changes I 
need to make to MailScanner.cf to disable it.  I can't tell for sure, 
but I suspect this error causes SpamAssassin to fall over and 
MailScanner then doesn't scan for spam.

Any suggestions either for disabling calls to RelayCountry or for fixing 
the problem identified in the error?

Peter







More information about the MailScanner mailing list