• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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