Attempting to answer all your questions related to zimbra Zimbra doesn't do any training until it is kicked off by cron for the zimbra user... Training a message as spam from the MUA interface sends the email to a special spam account... Training messages as not spam goes to a special ham account. You can pull those emails or use your admin interface to see what the users have trained before actual training occurs as a consequence. Look at your zimbra crontab entry to see when zmtrainsa runs which pulls the emails and trains them. With everything in zimbra, make sure you are the zimbra user before running any SA commands. If you want to train vast amounts of email as spam or ham, you can use the zmtrainsa and point it to a directory of messages. zmtrainsa is just a wrapper to get your zimbra spamassassin environment correct so that would show you sa-learn and the correct options (ie. paths), etc. Given this is really zimbra specific, probably better to ask this on the Zimbra administrator forums if you have specific questions so the rest of the community can learn.
Note: it doesn't require anything special to run spamassassin in debug mode to test rules... just make sure you do it as the zimbra user so your environment is established. HTH, Jim ----- On May 27, 2019, at 5:13 AM, hg user <mercurialu...@gmail.com> wrote: > Ok, sorry for my bad answers... > I test spamassassin results using a command line: > spamassassin -t /path/file > sometimes I add -D to look at the debug logs. > spamassassin is actually used via amavis, in a zimbra setup. > To teach sa-learn and to test the results via command line I use zimbra user. > On Mon, May 27, 2019 at 1:18 PM Matus UHLAR - fantomas < [ > mailto:uh...@fantomas.sk | uh...@fantomas.sk ] > wrote: >> On 27.05.19 12:51, hg user wrote: >> >the Linux user is the same. >> the same as what? >> >Bayes db is on Linux. >> seems I wasn't clear at my question: >> How do you use spamassassin? milter, amavis, procmail filter, postfix >> filter ... ? >> -- >> Matus UHLAR - fantomas, [ mailto:uh...@fantomas.sk | uh...@fantomas.sk ] ; [ >> http://www.fantomas.sk/ | http://www.fantomas.sk/ ] >> Warning: I wish NOT to receive e-mail advertising to this address. >> Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. >> Eagles may soar, but weasels don't get sucked into jet engines.