ZCS Administrator's Guide, Open Source Edition 4.5 Rev 2 11/07
Table of Contents Previous Next Index


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 "Anti-Spam Training Filters” .
You can use this command to manually send one account’s mail through the spam filter. You will need to know the account password.
Syntax
zmtrainsa <server> <user> <pass> spam|ham <folder>
Description
zmtrainsa fetches the mail from <user> with password <pass> from <server> and trains the filter as either spam or ham. The folder is optional. If a folder is not defined, the contents of the Inbox is fetched.

Appendix A   Command-Line Utilities : zmtrainsa

ZCS Administrator's Guide, Open Source Edition 4.5 Rev 2 11/07
Copyright © 2007 Zimbra Inc.