Symptoms
-
Spamassassin rules update causes missing modules error in
/var/log/maillog
:spamd[92075]: Can't locate Mail/SpamAssassin/CompiledRegexps/body_neg2000.pm in @INC (you may need to install the Mail::SpamAssassin::CompiledRegexps::body_neg2000 module) (@INC contains: /var/lib/spamassassin/compiled/5.030/3.004004 /var/lib/spamassassin/compiled/5.030/3.004004/auto /usr/share/perl5 /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at (eval 2046) line 1.
spamd[92075]: zoom: able to use 341/372 'body_0' compiled rules (91.666%)
Cause
This has been reported as bug ID PPPM-14367.
Component installation on Debian-based systems installs sa-compile
package as a Recommends dependency of SpamAssassin.
It brings in /etc/spamassassin/sa-compile.pre
configuration with loadplugin Mail::SpamAssassin::Plugin::Rule2XSBody
which actually causes these diagnostic messages.
Resolution
-
Connect to the server via SSH
-
Remove
sa-compile
# apt-get purge sa-compile
-
Connect to the server via SSH
-
Use vi or any text editor to comment out the line
loadplugin Mail::SpamAssassin::Plugin::Rule2XSBody
in/etc/mail/spamassassin/
for RedHat-based systems or under/etc/spamassassin
for Debian-based systems. Add#
at the beginning of the line as below:# loadplugin Mail::SpamAssassin::Plugin::Rule2XSBody
Comments
0 comments
Please sign in to leave a comment.