Enabling DSpam in Zimbra 6 Open Source Edition

There have been some reported issues with DSpam and Zimbra, prior to 6.0.5, so after some playing a while ago i disabled it – which is the default anyway.  So i only recommend you enable this in version 6.0.5 and above, thats not to say the developers wont break it again at some point in the future!

 root@mambo:~# su - zimbra
 zimbra@mambo:~$ zmlocalconfig -e amavis_dspam_enabled=enable
 zimbra@mambo:~$ zmcontrol stop; zmcontrol start

In theory a full Zimbra restart isnt required, but it cant hurt – you could just do the following i believe:

 zimbra@mambo:~$ zmamavisdctl restart

After i enabled DSpam i was seeing the following in my mail headers and consequently all mail was being tagged as spam:

 X-DSPAM-Result: Spam
 X-DSPAM-Class: Spam
 X-DSPAM-Confidence: 0.99
 X-DSPAM-Probability: 1.0000
 X-DSPAM-Signature: N/A
 X-Virus-Scanned: amavisd-new at xxxxxxxxx
 X-Spam-Flag: YES
 X-Spam-Score: 7.658
 X-Spam-Level: *******
 X-Spam-Status: Yes, score=7.658 tagged_above=-10 required=3.4
 tests=[AWL=0.258, BAYES_00=-2.599, SPF_PASS=-0.001, DSPAM:Spam=10.000]
 autolearn=ham

Suspecting an issue with the DSpam DB, im not sure if this was left over from my previous playing or whether its like this out of the box, but clearing the DB solved the issue:

 root@mambo:~# rm -rf /opt/zimbra/data/dspam/data/z/i/zimbra/
 root@mambo:~# su - zimbra
 zimbra@mambo:~$ zmcontrol stop; zmcontrol start
    • Ian
    • March 24th, 2011 1:30pm

    Hi,

    This is wrong:

    zmlocalconfig -e amavis_dspam_enabled=enable

    it should be:

    zmlocalconfig -e amavis_dspam_enabled=TRUE

    Regards

    Ian

    • bofh
    • January 9th, 2012 8:51pm

    http://www.zimbra.com/forums/administrators/53977-dspam-zcs-7-x-howto.html

    you may want to post that one here – its mine and i give you permisison for this

    point is – dspam in zimbra is tool old and csscleaningtools are broken

    with proper cleaning and good config it works perfectly – but we dont wanna delete out database every 2 months

  1. No trackbacks yet.