How can I fix the error: warn: Use of uninitialized value $type in numeric eq (==) at /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm ?

When you run an anti-spam-check (rules) you see these errors:

May 15 13:59:32.279 [20306] warn: Use of uninitialized value $type in numeric eq (==) at /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 695.
May 15 13:59:32.279 [20306] warn: Use of uninitialized value $type in numeric eq (==) at /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 698.
May 15 13:59:32.279 [20306] warn: Use of uninitialized value $type in concatenation (.) or string at /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 702.
May 15 13:59:32.279 [20306] warn: config: unknown conf type ! at /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 702.

This is due to a bug in your operating systems Razor2 packages that can easily be fixed:

https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7018

There is a typo in /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Plugin/Razor2.pm (Centos - RHEL) or /usr/share/perl5/Mail/SpamAssassin/Plugin/Razor2.pm (Debian - Ubuntu) line 118:

type => $Mail::SpamAssassin::Conf::CONF_TYPE_DURATIION,

Should be:

type => $Mail::SpamAssassin::Conf::CONF_TYPE_DURATION,



  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Why isn't autolearning working for me (autolearn=no) ?

Lots of people seem to be confused by the "autolearn=no" statement in the default X-Spam-Status...

How can I fix the error: spamass-milter[27944]: Could not extract score from <> ?

When you look at your email log you see: spamass-milter[27944]: Could not extract score from...

How can I enable .rar support for ClamAV?

RHEL / CentosUnfortunately the EPEL package maintainers will not compile .rar support for ClamAV...

How can I fix the error WARNING: Ignoring deprecated option AllowSupplementaryGroups after upgrading to ClamAV 1.00?

The AllowSupplementaryGroups option was deprecated in ClamAV 1.00. If this option is present in...