The following might help, looks like dspam_corpus was replaced with dspam_train. We haven't really looked at dspam except updating it since it was disabled so apologies.
replace
Code:
for f in ${spamdir}/*; do
test -f ${f} && ${zimbra_home}/dspam/bin/dspam_corpus --addspam zimbra ${f}
done
for f in ${hamdir}/*; do
test -f ${f} && ${zimbra_home}/dspam/bin/dspam_corpus zimbra ${f}
done with the following
Code:
${zimbra_home}/dspam/bin/dspam_train zimbra ${spamdir} ${hamdir}