• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Spamassassin not catching anything - Bayes DB not working?

codecraft

New Pleskian
Hi

I have a problem that started sometime in Plesk 10 and an upgrade to 11 has not resolved it. I'm being innundated by spam, because Spamassassin is checking it, but passing it as being OK when it so clearly is not.

If I look at headers for some of the spam messages, I can see a check has happened, but they have scores of 0.0

If I do:

sa-learn --dump all

I get:

ERROR: Bayes dump return an error, please re-run with -D for more information

If I do that, I get a lot of stuff, the impoirtant thing I think is:

bayes: no dbs present, cannot tie DB R/O: /root/.spamassassin/bayes_toks

How can I fix this? I think the bayes check is probably pretty important to have, and without it - I'm not going to be able to teach spamassassin using mail from the mailbox.... Although I doubt that it's even trying to do that anyway.

Why do I seem to spend my life googling how to fix plesk, which is supposed to be there to make things simpler.....
 
hi chief,

as root, plesk usually dont create a bayes file.

If you look in /var/qmail/mailnames/ you will find the directories for your mailboxes. There you will find in .spamassassin also the bayes.

So its normal that you get as root this error message :)

Greetings
Oliver
 
Similar situation- Bayes not working
Plesk Linux: 1.0.9 Update #48

# sa-learn --dump magic
ERROR: Bayes dump returned an error, please re-run with -D for more information


# spamd -D
-- Copied the bayes lines here:
[8482] dbg: bayes: no dbs present, cannot tie DB R/O: /tmp/spamd-8482-init/.spamassassin/bayes_toks
[8482] dbg: config: score set 1 chosen.
[8482] dbg: message: main message type: text/plain
[8482] dbg: message: ---- MIME PARSER START ----
[8482] dbg: message: parsing normal part
[8482] dbg: message: ---- MIME PARSER END ----
[8482] dbg: plugin: Mail::SpamAssassin::plugin::DNSEval=HASH(0xaf6cf84) implements 'check_start', priority 0
[8482] dbg: bayes: no dbs present, cannot tie DB R/O: /tmp/spamd-8482-init/.spamassassin/bayes_toks



I've looked in the /var/qmail/mailnames/ - No .spamassassin or anything to do with bayes.

Suggestions for configuring Bayes and working with Spamassassin?
Thanks in advance.
-Dave


----------Another Item-----------
I've navigated to the user, Maildir directory in /var/qmail/mailnames/
Navigated into "new" directory
Ran the command:
# sa-learn --no-sync --ham
Received the output of:
interrupted at /usr/bin/sa-learn line 461.


# sa-learn --dump magic
ERROR: Bayes dump returned an error, please re-run with -D for more information
[root@server1 first.last]#


Not sure about what this means?
 
Last edited:
Back
Top