• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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