Package: spamassassin
Version: 3.4.0-6
Please note, _I HAD COMMENTED_ such lines:
# loadplugin Mail::SpamAssassin::Plugin::Rule2XSBody
Despite that I was seeing reported message.
Running spamassassin I spotted following message (marked in red):
root@deb80:/# systemctl status spamassassin -l
● spamassassin.service - Perl-based spam filter using text analysis
Loaded: loaded (/lib/systemd/system/spamassassin.service; enabled)
Active: active (running) since Mon 2017-02-06 12:33:33 CET; 16s ago
Process: 5479 ExecStart=/usr/sbin/spamd -d
--pidfile=/var/run/spamassassin.pid $OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 5481 (/usr/sbin/spamd)
CGroup: /system.slice/spamassassin.service
├─5481 /usr/sbin/spamd -d
--pidfile=/var/run/spamassassin.pid --create-prefs --max-children 5
--nouser-config --helper-home-dir -u debian-spamd
--virtual-config-dir=/var/lib/spamassassin
├─5482 spamd chil
└─5483 spamd chil
Feb 06 12:33:32 deb80 spamd[5479]: logger: removing stderr method
Feb 06 12:33:32 deb80 spamd[5481]: Can't locate
Mail/SpamAssassin/CompiledRegexps/body_0.pm in @INC
(you may need to install the Mail::SpamAssassin::CompiledRegexps::body_0
module)
(@INC contains: /var/lib/spamassassin/compiled/5.020/3.004000
/var/lib/spamassassin/compiled/5.020/3.004000/auto *
lib*/usr/share/perl5 /etc/perl
/usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2
/usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/lib/x86_64-linux-gnu/perl/5.20
/usr/share/perl/5.20 /usr/local/lib/site_perl)at (eval 974) line 1.
Feb 06 12:33:33 deb80 spamd[5481]: spamd: server started on
IO::Socket::IP [127.0.0.1]:783, IO::Socket::IP [::1]:783
(running version 3.4.0)
Feb 06 12:33:33 deb80 spamd[5481]: spamd: server pid: 5481
Feb 06 12:33:33 deb80 spamd[5481]: spamd: server successfully spawned
child process, pid 5482
Feb 06 12:33:33 deb80 spamd[5481]: spamd: server successfully spawned
child process, pid 5483
Feb 06 12:33:33 deb80 spamd[5481]: prefork: child states: IS
Feb 06 12:33:33 deb80 spamd[5481]: prefork: child states: II
Feb 06 12:33:33 deb80 systemd[1]: Started Perl-based spam filter using
text analysis.
root@deb80:/#
root@deb80:/# which spamassassin
/usr/local/bin/spamassassin
root@deb80:/# type spamassassin
spamassassin is /usr/local/bin/spamassassin
root@deb80:/# dpkg --search /usr/local/bin/spamassassin
dpkg-query: no path found matching pattern /usr/local/bin/spamassassin
root@deb80:/#
Above is _NOT VERY ASTONISHING_ as dpkg _SEE_ 3.4.0-6 in other place!
root@deb80:/# dpkg --search /usr/bin/spamassassin
spamassassin: /usr/bin/spamassassin
root@deb80:/#
Sort of inconsistency in the system?
root@deb80:/# dpkg --list spamassassin
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===============-============-============-====================================
ii spamassassin 3.4.0-6 all Perl-based spam filter
using text an
root@deb80:/# spamassassin -V
SpamAssassin version 3.4.1
running on Perl version 5.20.2
root@deb80:/# dpkg --status spamassassin
Package: spamassassin
Status: install ok installed
Priority: optional
Section: mail
Installed-Size: 3590
Maintainer: Noah Meyerhans <no...@debian.org>
Architecture: all
Version: 3.4.0-6
Provides: libmail-spamassassin-perl
Depends: perl (>= 5.8.0), libhtml-parser-perl (>= 3.43),
libsocket6-perl, libsys-hostname-long-perl, libarchive-tar-perl,
libwww-perl, libnet-dns-perl (>= 0.34), libnetaddr-ip-perl, perl-modules
(>= 5.10) | libio-zlib-perl (>= 1.04), adduser, init-system-helpers (>=
1.18~)
Recommends: spamc (>= 2.30), sa-compile, libmail-spf-perl,
libsys-syslog-perl, gnupg, libio-socket-inet6-perl
Suggests: razor (>= 2.361-2), libio-socket-ssl-perl, libdbi-perl, pyzor,
libcompress-zlib-perl, libmail-dkim-perl
Conflicts: gotmail (<= 0.8.1-1), spamass-milter (<< 0.2.0-7)
Conffiles:
/etc/cron.daily/spamassassin 78aab07504073c56c6c974365b3b4a27
/etc/default/spamassassin c80ea6518beb6f2c4f20f42ab68e4a8c
/etc/init.d/spamassassin c6eb1867d029ed5d2a0b2bb1ca4aa658
/etc/spamassassin/65_debian.cf 2b1a4b50c7580f7e924cc7ce53dbb882
/etc/spamassassin/init.pre 4bec504033006c1dcd22678abe2c692c
/etc/spamassassin/local.cf fa4ab07033b1ca700f2ab949d0ce90d0
/etc/spamassassin/v310.pre aa1be57835e2f11c2bb6cc5f404c8565
/etc/spamassassin/v312.pre 6548a6c4c83f909a3cca3746a8601ad2
/etc/spamassassin/v320.pre 0ad5c795a4d0fa8dc5d788b654601ab6
/etc/spamassassin/v330.pre 40fb32218509c7f3d00e75033060d082
/etc/spamassassin/v340.pre 329b5856a4378bb9364add9cabd949de
Description: Perl-based spam filter using text analysis
SpamAssassin is a very powerful and fully configurable spam filter
with numerous features including automatic white-listing, RBL
testing, Bayesian analysis, header and body text analysis. It is
designed to be called from a user's .procmail or .forward file, but
can also be integrated into a Mail Transport Agent (MTA).
.
Included in this package is a daemonized form of spamassassin (spamd)
which communicates with its client (spamc) via TCP, to reduce the
overhead of loading perl with each message. To take advantage of
this, you must install the spamc package.
Homepage: http://www.spamassassin.org/
root@deb80:/# perl -v
This is perl 5, version 20, subversion 2 (v5.20.2) built for
x86_64-linux-gnu-thread-multi
(with 92 registered patches, see perl -V for more detail)
Copyright 1987-2015, Larry Wall
Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
root@deb80:/# perl -V
...
Built under linux
Compiled at Jul 22 2016 15:48:26
@INC:
/etc/perl
/usr/local/lib/x86_64-linux-gnu/perl/5.20.2
/usr/local/share/perl/5.20.2
/usr/lib/x86_64-linux-gnu/perl5/5.20
/usr/share/perl5
/usr/lib/x86_64-linux-gnu/perl/5.20
/usr/share/perl/5.20
/usr/local/lib/site_perl
root@deb80:/#
Searching for solution I ended up with sort of workaround.
As shown above, spamassassin is looking for body_0.pm module in various
places.
Two of them are:
/var/lib/spamassassin/compiled/5.020/3.004000
/var/lib/spamassassin/compiled/5.020/3.004000/auto
But in my system I have 3.004001 subfolders instead!!!
Therefore spamassassin simply _CANNOTLOCATE_ module in question!
I performed so many diverse steps but to no avail.
The last one I tried is described below.
1. Created additional subfolders named:
/var/lib/spamassassin/3.004000
/var/lib/spamassassin/compiled/5.020/3.004000
2. Copied relevant folders and files from 3.004.001 folders.
3. Inside folder /var/lib/spamassassin/3.004000/updates_spamassassin_org/
in most of the files changed line: require_version 3.004001
to read: require_version 3.004000
From that moment_I DO NOT SEE ANY MORE_ this nasty reddish message.
See below:
/root@deb80:/# systemctl status spamassassin -l/
/● spamassassin.service - Perl-based spam filter using text analysis/
/ Loaded: loaded (/lib/systemd/system/spamassassin.service; enabled)/
/ Active: *active (running)* since Mon 2017-02-06 15:11:05 CET; 4h
18min ago/
/ Main PID: 13226 (/usr/sbin/spamd)/
/ CGroup: /system.slice/spamassassin.service/
/ ├─13226 /usr/sbin/spamd -d
--pidfile=/var/run/spamassassin.pid --create-prefs --max-children 5
--nouser-config --helper-home-dir -u debian-spamd
--virtual-config-dir=/var/lib/spamassassi/
/ ├─13230 spamd chil/
/ └─13231 spamd chil/
/Feb 06 15:11:03 deb80 spamd[13224]: logger: removing stderr method/
/Feb 06 15:11:04 deb80 spamd[13226]: zoom: able to use 341/341 'body_0'
compiled rules (100%)/
/Feb 06 15:11:05 deb80 spamd[13226]: spamd: server started on
IO::Socket::IP [127.0.0.1]:783, IO::Socket::IP [::1]:783 (running
version 3.4.0)/
/Feb 06 15:11:05 deb80 spamd[13226]: spamd: server pid: 13226/
/Feb 06 15:11:05 deb80 spamd[13226]: spamd: server successfully spawned
child process, pid 13230/
/Feb 06 15:11:05 deb80 spamd[13226]: spamd: server successfully spawned
child process, pid 13231/
/Feb 06 15:11:05 deb80 spamd[13226]: prefork: child states: IS/
/Feb 06 15:11:05 deb80 spamd[13226]: prefork: child states: II/
/Feb 06 15:11:05 deb80 systemd[1]: Started Perl-based spam filter using
text analysis./
/root@deb80:/# /
But of course this is _ONLY_ temporary workaround
_NOT_ the proper working solution.
I am not familiar enough with so many things
that I am simply not able to recoverfrom this situation
other way than described above.
Now, I have_TWO_ versions of spamassassin installed in system.
First, spamassassin-3.4.0-6, installed from *.deb file
Second, spamassassin-3.4.1, installed manually by issuing:
root@deb80:/# cpan -i Mail::SpamAssassin
Reading '/root/.cpan/Metadata'
Database was generated on Sun, 05 Feb 2017 17:29:03 GMT
Mail::SpamAssassin is up to date (3.004001).
root@deb80:/#
Next...
Command: dpkg --list spamassassin
shows spamassassin3.4.0-6 version
Command: spamassassin -V
shows SpamAssassin3.4.1version
root@deb80:/# uname -a
Linux deb80 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1 (2016-12-30) x86_64
GNU/Linux
root@deb80:/#
OS - Debian-8.7 Jessie
libc6 version 2.19-18+deb8u7
Why I installed Mail::SpamAssassin from cpan?
Well, because with 3.4.0-6 _I HAD EXACTLY THE SAME_ message!!!
Obviously, 3.4.0-6 was missing CompiledRegexps part,
about what I was not aware and which I gotinstalled
by cpan -i _BUT IN NEW SUBFOLDER_: 3.004001
Moreover, 3.4.0-6 _NEITHER CREATED_ subfolders 3.004000
for which later spamassassin itself was looking for,
_NOR_ installed CompiledRegexps as well.
Weird, indeed...
Best regards- Tom