Results 1 to 3 of 3

Thread: Zimbra7 Bayes Anti Spam

  1. #1
    MobiusNZ is offline Special Member
    Join Date
    Sep 2007
    Location
    Aoteroa
    Posts
    128
    Rep Power
    7

    Default Zimbra7 Bayes Anti Spam

    Hi All,

    I'm trying to get bayes going on spamassassin, based off instructions here:

    http://www.zimbra.com/docs/ne/latest...rotection.html

    So I did

    Code:
    zmlocalconfig -e antispam_mysql_enabled=true
    zmmtactl restart && zmamavisdctl restart
    I did a test run of zmtrainsa on my mailbox but it gave an error
    ERROR: the Bayes learn function returned an error, please re-run with -D for more information at /opt/zimbra/libexec/sa-learn line 493.
    So I found where the learn function was being called and added the -D, and I see the following errors:

    Jul 13 14:55:41.622 [2960] info: config: SpamAssassin failed to parse line, no value provided for "bayes_sql_password", skipping: bayes_sql_password

    //---SNIP

    Jul 13 14:55:42.067 [2960] dbg: message: ---- MIME PARSER START ----
    Jul 13 14:55:42.067 [2960] dbg: message: parsing normal part
    Jul 13 14:55:42.067 [2960] dbg: message: ---- MIME PARSER END ----
    Jul 13 14:55:42.067 [2960] dbg: message: decoding other encoding type (8bit), ignoring
    Jul 13 14:55:42.069 [2960] dbg: bayes: unable to connect to database: Can't connect to MySQL server on '127.0.0.1' (111)
    Jul 13 14:55:42.069 [2960] dbg: bayes: unable to connect to database: Can't connect to MySQL server on '127.0.0.1' (111)
    How should I specify the bayes password?

    And shouldn't this be mentioned in the docs I linked to above?

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,582
    Rep Power
    57

    Default

    Quote Originally Posted by MobiusNZ View Post
    How should I specify the bayes password?
    These are the steps to follow: Scalable Anti-Spam Using Spamassassin and MySQL - Zimbra :: Wiki & Bug 53261 – documentation for setting up MySQL database for spamassassin

    Quote Originally Posted by MobiusNZ View Post
    And shouldn't this be mentioned in the docs I linked to above?
    Probably.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    MobiusNZ is offline Special Member
    Join Date
    Sep 2007
    Location
    Aoteroa
    Posts
    128
    Rep Power
    7

    Default

    I'm confused. We only have one server, so surely what I've done should be enough?

    Also this is what I get when running the following commands:

    Code:
    zimbra@zimbra-1:~$ zmlocalconfig -s antispam_mysql_password
    antispam_mysql_password = 
    zimbra@zimbra-1:~$ zmlocalconfig -s antispam_mysql_user
    antispam_mysql_user = zimbra

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Getting too spam emails after upgrade to zimbra7
    By rambeats in forum Administrators
    Replies: 0
    Last Post: 02-18-2011, 08:27 AM
  2. Help mail server broadcast spam
    By sh1n_b3 in forum Administrators
    Replies: 0
    Last Post: 01-19-2011, 07:44 PM
  3. Replies: 3
    Last Post: 04-15-2008, 06:38 AM
  4. Anti Spam and 4.5.10 Upgrade question
    By dlochart in forum Administrators
    Replies: 1
    Last Post: 12-17-2007, 03:14 PM
  5. Anti Spam features
    By nxnw in forum Administrators
    Replies: 1
    Last Post: 08-08-2006, 03:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •