SH.pm fails to load at line 34: Attempt to reload Digest/SHA.pm aborted
zhouzscander opened this issue · 5 comments
This is spamassasin 3.4.1 that is included in Kerio Connect mail server 9.2.11
Kerio have included SHA.pm in /opt/kerio/mailserver/plugins/spamserver/spamassassin/lib/x86_64-linux/Digest/SHA.pm and near as I can tell the version for that file is 5.88
Relevant lines from the debug log
[24/Jun/2020 18:37:19][20978] {spamassassin} Perl_stderr: [20977] dbg: config: read file /opt/kerio/mailserver/plugins/spamserver/spamassassin/rules/sh.cf
[24/Jun/2020 18:37:19][20978] {spamassassin} Perl_stderr: [20977] dbg: config: read file /opt/kerio/mailserver/plugins/spamserver/spamassassin/rules/sh_hbl.cf
[24/Jun/2020 18:37:19][20978] {spamassassin} Perl_stderr: [20977] dbg: config: read file /opt/kerio/mailserver/plugins/spamserver/spamassassin/rules/sh_hbl_scores.cf
[24/Jun/2020 18:37:19][20978] {spamassassin} Perl_stderr: [20977] dbg: config: read file /opt/kerio/mailserver/plugins/spamserver/spamassassin/rules/sh_scores.cf
[24/Jun/2020 18:37:19][20978] {spamassassin} Perl_stderr: [20977] dbg: config: using "/opt/kerio/mailserver/plugins/spamserver/spamassassin/site" for site rules dir
[24/Jun/2020 18:37:19][20978] {spamassassin} Perl_stderr: [20977] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @inc
[24/Jun/2020 18:37:19][20978] {spamassassin} Perl_stderr: [20977] dbg: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @inc
[24/Jun/2020 18:37:19][20978] {spamassassin} Perl_stderr: [20977] dbg: plugin: loading Mail::SpamAssassin::Plugin::SH from @inc
[24/Jun/2020 18:37:19][20978] {spamassassin} Perl_stderr: plugin: failed to parse plugin (from @inc): Attempt to reload Digest/SHA.pm aborted.
[24/Jun/2020 18:37:19][20978] {spamassassin} Perl_stderr: Compilation failed in require at /opt/kerio/mailserver/plugins/spamserver/spamassassin/site/lib/Mail/SpamAssassin/Plugin/SH.pm line 34.
[24/Jun/2020 18:37:19][20978] {spamassassin} Perl_stderr: BEGIN failed--compilation aborted at /opt/kerio/mailserver/plugins/spamserver/spamassassin/site/lib/Mail/SpamAssassin/Plugin/SH.pm line 34.
[24/Jun/2020 18:37:19][20978] {spamassassin} Perl_stderr: Compilation failed in require at (eval 18) line 1.
Hi,
I just installed Kerio Connect 9.2.11 on a clean VM and tried to reproduce the error, but with no success.
On my VM everything works as expected so I suppose your error depends on something on your machine, sorry.
It might be relevant to say that this was on an Ubuntu 14.04 LTS machine
I could only suggest you to upgrade, both the server and, if possible, SpamAssassin. Version 3.4.1 is supported but newer versions are definitely better.
Unfortunately, as stated, my local tests were working, so i'm going to close this issue as it is not directly tied to a bug in the plugin.
@ricalfieri
Installed Ubuntu 20.04 and Kerio 9.3.1 patch 1 on a brand new VM, pulled a fresh copy of the dqs plugin, still getting the same message:
https://gist.github.com/zhouzscander/6a6adadce49fa16536492d3bc0113bf2
You need to install Digest::SHA