To: johndevine

Ask questions about your setup or get help installing ZCS server (ZD section below).
phoenix
Ambassador
Ambassador
Posts: 26329
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

To: johndevine

Postby phoenix » Thu Nov 24, 2005 9:45 am

You can train it for ham by using the same zmtrainsa and changing the option for 'spam' to 'ham' and obviously point the directory to the 'good' email. The command would be
zmtrainsa server user password ham cleanemailfolder


Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
avisser
Posts: 29
Joined: Fri Sep 12, 2014 9:57 pm

To: johndevine

Postby avisser » Mon Nov 28, 2005 1:51 pm

I'm using M2 and have modified the zmtrainsa script as instructed by the post (http://www.zimbra.com/forums/showpost.php?p=4049&postcount=3), I ran it with the following result:
[zimbra@mail ~]$ zmtrainsa server user password spam junk

Option --remote is not supported with POP3

fetchmail: Query status=5 (SYNTAX)

synced Bayes databases from journal in 0 seconds: 114 unique entries (114 total entries)

[zimbra@mail ~]$


The POP3 message has me curious if the training worked?

Does the zmtrainsa add to the existing training, or clear the old training?
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

To: johndevine

Postby marcmac » Mon Nov 28, 2005 1:53 pm

It doesn't look like it trained anything.
In general, training is additive - after you train on a message, it remembers teh hash of the message, and skips it if it sees it again.
So - after you train, you can purge your junk folder, to save time the next time you train.
avisser
Posts: 29
Joined: Fri Sep 12, 2014 9:57 pm

To: johndevine

Postby avisser » Wed Nov 30, 2005 8:05 am

marcmac, do you have any suggestions on how to fix the training script so it will work?
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

To: johndevine

Postby marcmac » Wed Nov 30, 2005 8:59 am

I'll take a look at it.
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

To: johndevine

Postby marcmac » Wed Nov 30, 2005 10:42 am

I'm not giving a protocol specifier in the fetchmail rc, so it tries IMAP, POP3 and POP2 (in that order) skipping those for which there's no support compiled in.
POP doesn't support the -r option (to specify a folder) which is generating the error.
I've fixed zmtrainsa thusly:
echo "server $SERVER protocol IMAP user $USER@$SERVER password $PASS keep" > ${zimbra_home}/conf/.fetchmailrc
which should force IMAP - but the problem remains, why didn't it use IMAP to start with?
Try fetchmail -V and see what it says. Mine says:

This is fetchmail release 6.2.5+IMAP-GSS+RPA+NTLM+SDPS+SSL+INET6+NLS

which seems to indicate IMAP support - does your version list IMAP?
avisser
Posts: 29
Joined: Fri Sep 12, 2014 9:57 pm

To: johndevine

Postby avisser » Wed Nov 30, 2005 11:17 am

I have the same version of fetchmail as you do.
I ran it and it looks like it worked
[zimbra@mail ~]$ zmtrainsa server user password spam junk

fetchmail: Query status=2 (SOCKET)

synced Bayes databases from journal in 3 seconds: 1076 unique entries (1437 total entries)

[zimbra@mail ~]$


thanks for all the hard work.

Return to “Installation and Upgrade”

Who is online

Users browsing this forum: No registered users and 3 guests