ZCS Administrator Guide 8.0
ZCS Administrator Guide 8.0
Open Source Edition


Appendix A Command-Line Utilities > zmtrainsa

zmtrainsa
This command is used to train the anti-spam filter. This command is run automatically every night to train the SpamAssasin filter from messages users mark as “junk” “not junk” from their mailbox. See SpamAssassin’s sa-update tool is included with SpamAssassin. This tool updates SpamAssassin rules from the SA organization. The tool is installed into /opt/zimbra/zimbramon/bin..
The zmtrainsa command can be run manually to forward any folder from any mailbox to the spam training mailboxes. If you do not enter a folder name when you manually run zmtrainsa for an account, for spam, the default folder is Junk. For ham, the default folder is Inbox.
Syntax
zmtrainsa <user> spam|ham [folder]
Copyright © 2012 VMware Inc.