Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-26-2009, 06:24 AM
Moderator
 
Posts: 7,928
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
__________________
Reply With Quote
  #2 (permalink)  
Old 06-26-2009, 11:07 AM
Trained Alumni
 
Posts: 46
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).
Reply With Quote
  #3 (permalink)  
Old 06-26-2009, 11:02 PM
Moderator
 
Posts: 7,928
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.
__________________
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.