• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Spamassassin Traning not working anymore

D

Dj_Cure

Guest
Hi all,
After i upgrade Plesk from 7.5 to 8.0.0 then 8.0.1, spamassassin breaks.
I try everything, including reinstall, and it is impossible to add training.
Everytime i click on the training icon, Plesk pretends there is no messages in the mailbox. And of course there are emails on the mail box.

This is driving me crazy.... Does anyone had the same issue and manage to fix it?

Thank you
 
If you check your logs you will most likely find that it says something about the auto-whitelist file. If so, just delete the auto-whitelist and it will auto-magically be recreated and it will work.

If this isn't what was broke, I would suggest posting some logs, so we can see the error messages.
 
Thank you for your reply, LadyHawk.


Well, i manage to do some improvements.

I have commented the line 962 in /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/Bayes.pm
because it was throwing an error "bayes: Undefined subroutine &Mail::SpamAssassin::Bayes::sha1_hex"

Since then, when I click training, i can see the list of email. They have all a green check in front of them.

When i try to select some emails and then click "it's spam", plesk redirect me to a another page, showing no emails list and "Messages learned: 0 as spam, 0 as non-spam, 0 total."
However, once i refresh the page, it shows the emails list again and the correct number of learner Messages.

How can i do to get those blue wheels back, and once i train SA, it redirects me directly to right page?
 
That error is telling you that you are missing a perl module. You need to install the perl module to make SA work properly.
 
i have installed all the missing perl modules,
and now when i do a spamassassin -D --lint there are no errors showing up.

Even with all the modules, when i uncomment the line 962 from the file /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/Bayes.pm,
there is no more emails list under "training" :(

that line looks like

unshift(@msgid, sha1_hex($date."\000".$rcvd."\000".$body).'@sa_generated');

it's really strange, everything was fine with the older version....
 
Just to doublecheck, try removing the rpm and reinstalling it. Ive got 3.1.4 in my atomic-testing channel as well, if for some reason you zapped one of the dependencies, its a new enough design that it will require updates (also provided) that will hopefully resolve it.
 
I just figured out from where the problem came from.

It was the package perl-Digest-SHA1 who wasn't up to date.
Base package of plesk provides perl-Digest-SHA1. version 2.01. I upgrade it to 2.10 (perl-Digest-SHA1)

And everything is fine now.

To resume, if someone 1 day have the same problem:

1- run the command spamassassin -D --lint
2- check if you have all the required perl modules
3- if not, install them how to use yum
4- check your mail logs (tail -f /usr/local/psa/var/log/maillog) to see if spamd it's throwing any error.


Thanks to LadyHawk and atomicturtle for helping me with this issue
 
LadyHawk above you say "If you check your logs you will most likely find that it says something about the auto-whitelist file."

Which log file are you referring to? I can't see anything in the maillog or in the /usr/local/psa/admin/logs/httpsd_access_log
log

Everytime i click on the training icon in plesk it eventualy come sup with the list of message but when you then click on some training functions it comes back with no messages in the mailbox.
 
Back
Top