With the default configuration amavis will use DSPAM to add a score of -1 for ham and positive 10 for spam. If you'd like to change that, here's how. Note that these changes may not persist across Zimbra upgrades, so be sure to back up any modifications you make.

References: [http://www.zimbra.com/forums/administrators/40242-solved-change-dspam-value.html Change DSPAM value] and [http://www.zimbra.com/forums/administrators/15908-enabling-dspam-8.html#post184408 Enabling DSPAM]. See also the section on score_factor in the [http://www.ijs.si/software/amavisd/release-notes.txt amavisd release notes].

+

+

==History==

+

===ZCS 6.0.x===

+

*ZCS 6.0.6 will be DPSAM 3.9.0 final [http://bugzilla.zimbra.com/show_bug.cgi?id=43978 Bug 43978]

- This article is a Community contribution and may include unsupported customizations.

- This article is a Work in Progress, and may be unfinished or missing sections.

Enabling

ZCS 5.0.11+

zmlocalconfig -e amavis_dspam_enabled=true

The zmmtaconfig will automatically reload amavis within 2 minutes or you can run "zmamavisdctl reload" to have it take effect immediately.

See also section "Anti-Virus and Anti-Spam Protection" in the Administrator's Guide.

ZCS 3.1+

/opt/zimbra/conf/amavisd.conf.in

uncomment

#$dspam = '/opt/zimbra/dspam/bin/dspam';

zmamavisdctl stop

zmamavisdctl start

Adjusting the scoring

With the default configuration amavis will use DSPAM to add a score of -1 for ham and positive 10 for spam. If you'd like to change that, here's how. Note that these changes may not persist across Zimbra upgrades, so be sure to back up any modifications you make.

Now we have to tell amavisd-new (which serves as a pipeline for various steps proccessing email before zimbra's java code sees emails) to enable dspam Search for the $path and $dspam variables and replace them.

To make things a bit tricky, dspam uses auto-generated files, so modify the file amavisd.conf.in rather then amavisd.conf.