CLI zmtrainsa: Difference between revisions
(Adding Article Infobox) |
No edit summary |
||
Line 1: | Line 1: | ||
{{Article Infobox|{{admin}}|{{ZCS | {{Article Infobox|{{admin}}|{{ZCS 7.0}}|{{ZCS 6.0}}|{{ZCS 5.0}}}}For the most recent information on this CLI, including syntax and description, see [http://www.zimbra.com/docs/ne/latest/administration_guide/A_app-command-line.20.1.html ZCS Administrator's Guide Network Edition > Appendix A Command-Line Utilities]. | ||
=ZCS 6.0.x= | =ZCS 6.0.x= | ||
Line 43: | Line 43: | ||
[[Category:Anti-spam]] | [[Category:Anti-spam]] | ||
[[Category:Command Line Interface]] | [[Category:Command Line Interface]] | ||
[[Category:ZCS 7.0]] | |||
[[Category:ZCS 6.0]] | [[Category:ZCS 6.0]] | ||
[[Category:ZCS 5.0]] | [[Category:ZCS 5.0]] | ||
Revision as of 16:46, 17 May 2011
Article Information |
---|
This article applies to the following ZCS versions. |
For the most recent information on this CLI, including syntax and description, see ZCS Administrator's Guide Network Edition > Appendix A Command-Line Utilities.
ZCS 6.0.x
- Bug 31510 - New installs of ZCS will limit spam/ham cleanup to the first MTA installed. zmlocalconfig -e zmtrainsa cleanup_host=TRUE can be set to allow additional hosts to run zmtrainsa --cleanup. At least one host should have this set to true.
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.
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]
ZCS 5.0
ZCS 5.0.2
- zmtrainsa has no server argument in 5.0.2.
ZCS 4.5
ZCS 4.5.6
- As of 4.5.6 the user's password is no longer needed:
su zimbra /opt/zimbra/bin/zmtrainsa user@domain.com spam|ham folderName
(I do not remember if 4.5.5 actually got the no password required RFE before it was verified in 4.5.6 but it was relatively easy because zmspamextract (which used by zmtrainsa) already supported extracting messages from users' folders with admin auth credentials.)
Prior to ZCS 4.5.4
Prior to 4.5.4: zmtrainsa <server> <user> <pass> <spam|ham>
Related Articles
- Anti-Spam Training Filters Anti-Spam Training Filters
- Postfix_Policyd
- IP_Address_whitelisting
- Improving Anti-spam system
- IMAP and Outlook Spam training