1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Spamassassin not catching anything - Bayes DB not working?

Discussion in 'Plesk 11.x for Linux' started by codecraft, Sep 29, 2012.

  1. codecraft

    codecraft New Pleskian

    10
     
    Joined:
    Jul 26, 2012
    Messages:
    3
    Likes Received:
    0
    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.....
     
  2. isp4p

    isp4p Basic Pleskian

    23
    23%
    Joined:
    Jan 9, 2009
    Messages:
    25
    Likes Received:
    0
    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
     
  3. DaveW4

    DaveW4 New Pleskian

    13
    35%
    Joined:
    Mar 25, 2012
    Messages:
    17
    Likes Received:
    0
    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: May 5, 2013
Loading...