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

Mail does not work: milter-reject: END-OF-MESSAGE from localhost.localdomain[::1]: 4.7.1 Service unavailable - try again later

Symptoms Impossible to send or receive the email on the server. Local delivery does not work....

How can I fix the error: The licensing server was invalid or could not be reached ?

Many times this error can be fixed by restarting the Plesk panel: /etc/init.d/psa restart Make...

I get the a 502 gateway error when clicking on the application. How can I fix this?

This can usually be fixed by just restarting the Plesk interface:/etc/init.d/psa restart

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: 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...