Training spam from command line Your command should be something kile this (zmtrainsa inspired):
From your spam folder, create a spam index file:
ls > spam.index
And then, as zimbra user::
sa-learn -p /opt/zimbra/conf/salocal.cf --dbpath ${zimbra_home}/amavisd/.spamassassin/ -L --no-sync --spam -f spam.index --shotdots |