Results 1 to 8 of 8

Thread: Updating Spamassassin In ZCS 7.1.2

Threaded View

  1. #1
    Join Date
    Sep 2006
    Location
    477 Congress Street | Portland, ME 04101
    Posts
    1,374
    Rep Power
    11

    Default Updating Spamassassin In ZCS 7.1.2

    We decided to test upgrading Spamassassin using the sa-update script which Zimbra now includes in /opt/zimbra/zimbramon/bin.

    In the event the test was successful; here's what we did:

    First, we opened the sa-update script in an editor and found Zimbra had made a number of edits. We wanted to avoid editing the script itself, in effect gambling that Zimbra would not change default paths with subsequent releases.

    We saw that the LOCAL_STATE_DIRECTORY mentioned in the script did not exist, so we created it manually as follows:

    Code:
    zimbra@viognier:~> cd data
    zimbra@viognier:~/data> ls -al
    total 44
    drwxr-xr-x 11 zimbra  zimbra 4096 Aug 13 00:06 .
    drwxr-xr-x 69 root    root   4096 Aug 13 00:18 ..
    drwxr-xr-x  2 zimbra  zimbra 4096 Dec 29  2009 altermime
    drwxr-xr-x  9 zimbra  zimbra 4096 Aug 25 22:53 amavisd
    drwxr-xr-x  3 zimbra  zimbra 4096 Aug 13 00:06 cbpolicyd
    drwxr-xr-x  3 zimbra  zimbra 4096 Apr  6  2008 clamav
    drwxr-xr-x  3 zimbra  zimbra 4096 Aug 30 04:08 dspam
    drwxr-xr-x  6 zimbra  zimbra 4096 Aug 13 00:03 ldap
    drwxr-xr-x  3 zimbra  zimbra 4096 Aug 13 00:05 mailboxd
    drwxr-xr-x  4 postfix zimbra 4096 Aug 13 00:06 postfix
    drwxrwxrwt 13 zimbra  zimbra 4096 Aug 30 21:46 tmp
    zimbra@viognier:~/data> mkdir spamassassin
    zimbra@viognier:~/data> chmod 755 spamassassin/
    zimbra@viognier:~/data> ls -al
    total 48
    drwxr-xr-x 12 zimbra  zimbra 4096 Aug 30 21:46 .
    drwxr-xr-x 69 root    root   4096 Aug 13 00:18 ..
    drwxr-xr-x  2 zimbra  zimbra 4096 Dec 29  2009 altermime
    drwxr-xr-x  9 zimbra  zimbra 4096 Aug 25 22:53 amavisd
    drwxr-xr-x  3 zimbra  zimbra 4096 Aug 13 00:06 cbpolicyd
    drwxr-xr-x  3 zimbra  zimbra 4096 Apr  6  2008 clamav
    drwxr-xr-x  3 zimbra  zimbra 4096 Aug 30 04:08 dspam
    drwxr-xr-x  6 zimbra  zimbra 4096 Aug 13 00:03 ldap
    drwxr-xr-x  3 zimbra  zimbra 4096 Aug 13 00:05 mailboxd
    drwxr-xr-x  4 postfix zimbra 4096 Aug 13 00:06 postfix
    drwxr-xr-x  2 zimbra  zimbra 4096 Aug 30 21:46 spamassassin
    drwxrwxrwt 13 zimbra  zimbra 4096 Aug 30 21:46 tmp

    Next, by scrolling through the script you come to a list of the options. We elected to run the update thus:

    Code:
    zimbra@viognier:~/data> cd ../zimbramon/bin/
    zimbra@viognier:~/zimbramon/bin> ./sa-update -v --updatedir /opt/zimbra/conf/spamassassin --allowplugins --refreshmirrors
    Update available for channel updates.spamassassin.org
    Update was available, and was downloaded and installed successfully

    There are a number of other channels available, but we wanted to keep Spamassassin fairly vanilla for now, just updated.


    So, next we checked that things looked OK:

    Code:
    zimbra@viognier:~/conf/spamassassin> ls -al | grep updates_spamassassin_org
    drwxr-x--- 2 zimbra zimbra   4096 Aug 30 21:47 updates_spamassassin_org
    -rw-r----- 1 zimbra zimbra   2599 Aug 30 21:47 updates_spamassassin_org.cf
    zimbra@viognier:~/conf/spamassassin> cat updates_spamassassin_org.cf 
    # UPDATE version 1162027
    include updates_spamassassin_org/10_default_prefs.cf
    include updates_spamassassin_org/20_advance_fee.cf
    include updates_spamassassin_org/20_aux_tlds.cf
    include updates_spamassassin_org/20_body_tests.cf
    include updates_spamassassin_org/20_compensate.cf
    include updates_spamassassin_org/20_dnsbl_tests.cf
    include updates_spamassassin_org/20_drugs.cf
    include updates_spamassassin_org/20_dynrdns.cf
    include updates_spamassassin_org/20_fake_helo_tests.cf
    include updates_spamassassin_org/20_freemail.cf
    include updates_spamassassin_org/20_freemail_domains.cf
    include updates_spamassassin_org/20_head_tests.cf
    include updates_spamassassin_org/20_html_tests.cf
    include updates_spamassassin_org/20_imageinfo.cf
    include updates_spamassassin_org/20_meta_tests.cf
    include updates_spamassassin_org/20_net_tests.cf
    include updates_spamassassin_org/20_phrases.cf
    include updates_spamassassin_org/20_****.cf
    include updates_spamassassin_org/20_ratware.cf
    include updates_spamassassin_org/20_uri_tests.cf
    include updates_spamassassin_org/20_vbounce.cf
    include updates_spamassassin_org/23_bayes.cf
    include updates_spamassassin_org/25_accessdb.cf
    include updates_spamassassin_org/25_antivirus.cf
    include updates_spamassassin_org/25_asn.cf
    include updates_spamassassin_org/25_dcc.cf
    include updates_spamassassin_org/25_dkim.cf
    include updates_spamassassin_org/25_hashcash.cf
    include updates_spamassassin_org/25_pyzor.cf
    include updates_spamassassin_org/25_razor2.cf
    include updates_spamassassin_org/25_replace.cf
    include updates_spamassassin_org/25_spf.cf
    include updates_spamassassin_org/25_textcat.cf
    include updates_spamassassin_org/25_uribl.cf
    include updates_spamassassin_org/30_text_de.cf
    include updates_spamassassin_org/30_text_fr.cf
    include updates_spamassassin_org/30_text_it.cf
    include updates_spamassassin_org/30_text_nl.cf
    include updates_spamassassin_org/30_text_pl.cf
    include updates_spamassassin_org/30_text_pt_br.cf
    include updates_spamassassin_org/50_scores.cf
    include updates_spamassassin_org/60_adsp_override_dkim.cf
    include updates_spamassassin_org/60_awl.cf
    include updates_spamassassin_org/60_shortcircuit.cf
    include updates_spamassassin_org/60_whitelist.cf
    include updates_spamassassin_org/60_whitelist_dkim.cf
    include updates_spamassassin_org/60_whitelist_spf.cf
    include updates_spamassassin_org/60_whitelist_subject.cf
    include updates_spamassassin_org/72_active.cf
    include updates_spamassassin_org/72_scores.cf
    include updates_spamassassin_org/73_sandbox_manual_scores.cf
    include updates_spamassassin_org/local.cf
    include updates_spamassassin_org/regression_tests.cf
    zimbra@viognier:~/conf/spamassassin>

    Lastly, while tailing /var/log/zimbra.log in one window, we restarted amavis in another and noted that all the Spamassassin bits were loading correctly.

    Code:
    zimbra@viognier:~/conf/spamassassin> zmamavisdctl restart
    Stopping amavisd... done.
    Starting amavisd...done.
    zimbra@viognier:~/conf/spamassassin>

    In the coming weeks we'll create a script we can add to crontab so that this can be automated, but in the interim we thought it would be helpful to post our initial findings here.

    Hope that helps, and all suggestions for improving this process are encouraged!
    Last edited by LMStone; 09-01-2011 at 06:59 AM. Reason: Add --updatedir variable to sa-update command line.

Similar Threads

  1. Replies: 9
    Last Post: 12-07-2011, 06:16 PM
  2. Scaling ZCS regionally - performance solutions
    By j2b in forum Administrators
    Replies: 5
    Last Post: 05-27-2011, 09:22 AM
  3. Trouble Sending mail - All Messages deferred!
    By SiteDiscovery in forum Administrators
    Replies: 7
    Last Post: 09-03-2009, 05:52 AM
  4. postfix build error while building Zimbra source
    By anuradha_mihsra in forum Developers
    Replies: 6
    Last Post: 07-19-2007, 11:22 AM
  5. ZCS 3.2 Beta Available
    By KevinH in forum Announcements
    Replies: 31
    Last Post: 07-07-2006, 04:46 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
  •