Results 1 to 3 of 3

Thread: [SOLVED] Are you aware you can compile your SA rules ?

  1. #1
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default [SOLVED] Are you aware you can compile your SA rules ?

    Mail::SpamAssassin::Plugin::Rule2XSBody - speed up SpamAssassin by compiling regexps

    The following is specific to RedHat/CentOS
    Code:
    1) Ensure you have installed SpamAssassin from a repo as you will need the additional binaries
    2) Install re2c as root :- yum install re2c
    2) Update /opt/zimbra/conf/spamassassin/v320.pre and uncomment the following loadplugin line :-
    # Rule2XSBody - speedup by compilation of ruleset to native code
    #
    loadplugin Mail::SpamAssassin::Plugin::Rule2XSBody
    3) Compile the rules :- /usr/bin/sa-compile --siteconfigpath=/opt/zimbra/conf/spamassassin --updatedir=/opt/zimbra/conf/spamassassin
    This should speed checking up for you a bit

  2. #2
    UMDjwain is offline Trained Alumni
    Join Date
    Nov 2008
    Location
    Ann Arbor, MI
    Posts
    46
    Rep Power
    6

    Default

    This was an idea I've toyed with in the past, but I never could find an answer to how often you have to do this (assuming you download updates 4x/day).

  3. #3
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    You would need to perform the sa-compile after each sa-update if you wanted the optimised rules. Alternatively, SA does know when a newer .cf is in place compared to the compiled ruleset so the newer one will take precedence. With that in mind you could compile your rules once per day when server load is less busy. HTH.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Zimbra NE Pro server rules not working on Outlook
    By magolon in forum Zimbra Connector for Outlook
    Replies: 15
    Last Post: 11-10-2009, 09:00 AM
  2. Mail loop - always_bcc option and filter rules
    By Mickael in forum Administrators
    Replies: 2
    Last Post: 04-08-2009, 10:55 AM
  3. speed up the net
    By mcesari in forum Administrators
    Replies: 10
    Last Post: 04-25-2008, 11:24 AM
  4. Rules du Jour - spamassassin
    By sturgis in forum Administrators
    Replies: 10
    Last Post: 11-27-2007, 10:12 AM
  5. zmtrainsa - can't find site rules
    By reza225 in forum Administrators
    Replies: 9
    Last Post: 07-09-2007, 12:19 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
  •