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

How can I test that the Anti-spam and Anti-virus is working?

How to test SpamAssassin Note: Greylisting must be disabled for the recipient domain before...

How can I configure postfix so that Warden monitors all outgoing email?

By default Warden will only log outgoing email for ports 587 (Submission), 465 (SMTPS outgoing),...

Why are my outgoing statistics different than what show up in the spam log?

By default Warden will not log outgoing mail to local mailboxes as they are already logged during...

How can I correct umlaut and accents not being shown correctly in the spam log?

If foreign characters like umlaut and accents are not being displayed correctly in your spam...