Results 1 to 7 of 7

Thread: [SOLVED] Can I manually update SpamAssassin rules!

  1. #1
    mambara is offline New Member
    Join Date
    Apr 2009
    Posts
    4
    Rep Power
    6

    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

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

    Default

    Welcome to the forums

    Yes that is no problem at all ... just ensure the file permissions and ownership are correct.

  3. #3
    mambara is offline New Member
    Join Date
    Apr 2009
    Posts
    4
    Rep Power
    6

    Smile

    Thanks!

    Could you please provide me some links to manually download the updates for SpamAssassin.

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

    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

  5. #5
    tinwistle is offline Starter Member
    Join Date
    Oct 2009
    Posts
    1
    Rep Power
    5

    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

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

    Default

    The new cf's point with includes to the sub-directories.

  7. #7
    su_A_ve is offline Advanced Member
    Join Date
    Dec 2006
    Posts
    181
    Rep Power
    8

    Default

    Quote Originally Posted by tinwistle View Post
    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
    Going thru this right now - I believe that it actually merges the two and/or uses the newest ones. However, if a rule was removed, it will use the original one.

    For example, the 2YK(1-9) rule was updated and now it doesn't trigger, but the DNS_FROM_OPENWHOIS rule (which was removed by the sa-update) still triggers as it exists on the older file.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Spamassassin: How to test homemade rules?
    By Tenshi in forum Administrators
    Replies: 11
    Last Post: 06-29-2010, 12:37 PM
  2. Replies: 18
    Last Post: 08-15-2009, 05:23 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. Update Received Date in Folder-Listing
    By Oswald-Kolle in forum Installation
    Replies: 25
    Last Post: 08-21-2007, 04:21 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
  •