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 Display Modes
  #1 (permalink)  
Old 04-16-2009, 02:16 AM
New Member
 
Posts: 4
Smile [SOLVED] Can I manually update SpamAssassin rules!

Hi

I am managing a Zimbra 4.5 FOSS edition.

I have to update SpamAssassin. but sa-update is giving some errors.

So is it ok to update manually by downloading all *.cf files from a channel and copy it to /opt/zimbra/conf/spamassassin ?

Please help

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 04-16-2009, 04:54 AM
Moderator
 
Posts: 5,806
Default

Welcome to the forums

Yes that is no problem at all ... just ensure the file permissions and ownership are correct.
__________________
SplatNIX IT Services :: Innovation through Collaboration™


http://www.messagefortress.com
Reply With Quote
  #3 (permalink)  
Old 04-16-2009, 11:37 AM
New Member
 
Posts: 4
Smile

Thanks!

Could you please provide me some links to manually download the updates for SpamAssassin.
Reply With Quote
  #4 (permalink)  
Old 04-17-2009, 12:09 AM
Moderator
 
Posts: 5,806
Default

I just have a simple script which I run from cron.

/usr/local/bin/sarulesupdate.sh
Code:
#/usr/bin/bash

/usr/bin/sa-update --gpgkey 6C6191E3 --channel sought.rules.yerp.org --updatedir /opt/zimbra/conf/spamassassin --gpghomedir /opt/zimbra/conf/spamassassin
/usr/bin/sa-update --channelfile /usr/local/etc/sare-sa-update-channels.txt --gpgkey 856AA88A --updatedir /opt/zimbra/conf/spamassassin --gpghomedir /opt/zimbra/conf/spamassassin
cd /opt/zimbra/conf/spamassassin
exit 0
/usr/local/etc/sare-sa-update-channels.txt
Code:
updates.spamassassin.org
72_sare_redirect_post3.0.0.cf.sare.sa-update.dostech.net
70_sare_evilnum0.cf.sare.sa-update.dostech.net
70_sare_bayes_poison_nxm.cf.sare.sa-update.dostech.net
70_sare_html0.cf.sare.sa-update.dostech.net
70_sare_html_eng.cf.sare.sa-update.dostech.net
70_sare_header0.cf.sare.sa-update.dostech.net
70_sare_header_eng.cf.sare.sa-update.dostech.net
70_sare_specific.cf.sare.sa-update.dostech.net
70_sare_adult.cf.sare.sa-update.dostech.net
72_sare_bml_post25x.cf.sare.sa-update.dostech.net
99_sare_fraud_post25x.cf.sare.sa-update.dostech.net
70_sare_spoof.cf.sare.sa-update.dostech.net
70_sare_random.cf.sare.sa-update.dostech.net
70_sare_oem.cf.sare.sa-update.dostech.net
70_sare_genlsubj0.cf.sare.sa-update.dostech.net
70_sare_genlsubj_eng.cf.sare.sa-update.dostech.net
70_sare_unsub.cf.sare.sa-update.dostech.net
70_sare_uri0.cf.sare.sa-update.dostech.net
70_sare_obfu0.cf.sare.sa-update.dostech.net
70_sare_stocks.cf.sare.sa-update.dostech.net
and the root crontab entry
Code:
0	0-23/6  	*       *       *       su - zimbra -c /usr/local/bin/sarulesupdate.sh
__________________
SplatNIX IT Services :: Innovation through Collaboration™


http://www.messagefortress.com
Reply With Quote
  #5 (permalink)  
Old 10-10-2009, 08:29 AM
Starter Member
 
Posts: 1
Default When using your script

Hi I realize I am a little off topic here but I found this thread looking for something related and have re-used your idea to create a scheduled task in windows to update my SpamAssassin cf files.

I don't have a Zimbra server so mine is a little different but the question is really just a general one.

When I used your channells text file I was able to update my SpamAssassin files however it puts the updated files in to sub folders under the root folder I chose (rules).

My question is does SpamAssassin read subfolders on its own or do I manually have to move all of the cf files up one level? I did notice it created new cf files with the same names as the subfolders in the rules folder (the one I chose to update).

Thanks
Reply With Quote
  #6 (permalink)  
Old 10-10-2009, 08:30 AM
Moderator
 
Posts: 5,806
Default

The new cf's point with includes to the sub-directories.
__________________
SplatNIX IT Services :: Innovation through Collaboration™


http://www.messagefortress.com
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0