CLI zmtrainsa: Difference between revisions

mNo edit summary
No edit summary
Line 7: Line 7:
===<font size="3" color="#00007f" face="Arial"> ''' Syntax ''' </font>===
===<font size="3" color="#00007f" face="Arial"> ''' Syntax ''' </font>===


<font size="3" color="#000000" face="Arial">  <font size="3" color="#000000" face=""Times New Roman""> '''zmtrainsa <server> <user> <pass> <spam|ham> [folder''' </font> ]</font>
<font size="3" color="#000000" face="Arial">  <font size="3" color="#000000" face=""Times New Roman""> '''zmtrainsa <server> <user> <spam|ham> [folder''' </font> ]</font>


===<font size="3" color="#00007f" face="Arial"> ''' Description ''' </font>===
===<font size="3" color="#00007f" face="Arial"> ''' Description ''' </font>===
Line 16: Line 16:
in 4.5.6 the user's password is no longer needed:
in 4.5.6 the user's password is no longer needed:


Usage is : /opt/zimbra/bin/zmtrainsa <user> <spam|ham> [folder]
Usage is : /opt/zimbra/bin/zmtrainsa user@domain.com spam|ham folderName


No Password required. Server name required if in a multi-server install. For 'user' put email address.
No Password required. Server name required if in a multi-server install. For 'user' put email address.


That was http://bugzilla.zimbra.com/show_bug.cgi?id=14659
That was http://bugzilla.zimbra.com/show_bug.cgi?id=14659
older versions are: zmtrainsa <server> <user> <pass> <spam|ham>

Revision as of 15:13, 10 October 2007

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 Zimbra MTA, Anti-Spam Training Filters.

You need at least 200 spam & 200 not-spam to enable the bayes filter. You can use this command to manually send one account’s mail through the spam filter.

Syntax

zmtrainsa <server> <user> <spam|ham> [folder ]

Description

zmtrainsa fetches the mail from <user> with password <pass> from <server> and trains the filter as either spam or ham <spam|ham>. The folder is optional. If a folder is not defined, the contents of the Inbox is fetched.


in 4.5.6 the user's password is no longer needed:

Usage is : /opt/zimbra/bin/zmtrainsa user@domain.com spam|ham folderName

No Password required. Server name required if in a multi-server install. For 'user' put email address.

That was http://bugzilla.zimbra.com/show_bug.cgi?id=14659

older versions are: zmtrainsa <server> <user> <pass> <spam|ham>

Jump to: navigation, search