Problem to training spam

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
maschimidt
Advanced member
Advanced member
Posts: 65
Joined: Sat Sep 13, 2014 12:11 am

Problem to training spam

Postby maschimidt » Tue Jun 12, 2012 11:55 am

After a user complain that the box was full of spam, I found it strange because the training SpamAssassin to be every day at 23:00
Running the command manually cron user spam box is still full and some errors appear in the log ...

/Opt/zimbra/bin/zmtrainsa >> /opt/zimbra/log/spamtrain.log 2> & 1
================== ERROR LOG ================
tail -f /opt/zimbra/log/spamtrain.log

netset: cannot include 127.0.0.0/8 as it has already been included

Learned tokens from 14 message(s) (59 message(s) examined)

netset: cannot include 127.0.0.0/8 as it has already been included

Learned tokens from 0 message(s) (0 message(s) examined)

netset: cannot include 127.0.0.0/8 as it has already been included

20120612133732 Finished spamassassin training.

20120612133819 Starting spam/ham cleanup

[] INFO: Total messages processed: 30

[] INFO: Total messages processed: 0

20120612133824 Finished spam/ham cleanup

20120612133933 Starting spam/ham extraction from system accounts.

[] WARN: exception occurred fetching message

javax.mail.internet.ParseException: Expected ';', got "
at javax.mail.internet.ParameterList.(ParameterList.java:289)

at javax.mail.internet.ContentType.(ContentType.java:114)

at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1331)

at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2107)

at com.zimbra.common.zmime.ZMimeMessage.updateHeaders(ZMimeMessage.java:343)

at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2075)

at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1770)

at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1749)

at com.zimbra.cs.util.SpamExtract.writeAttachedMessages(SpamExtract.java:379)

at com.zimbra.cs.util.SpamExtract.extractMessage0(SpamExtract.java:349)

at com.zimbra.cs.util.SpamExtract.extractMessage(SpamExtract.java:296)

at com.zimbra.cs.util.SpamExtract.extract(SpamExtract.java:245)

at com.zimbra.cs.util.SpamExtract.main(SpamExtract.java:194)

[] WARN: exception occurred fetching message

javax.mail.internet.ParseException: Expected ';', got "
at javax.mail.internet.ParameterList.(ParameterList.java:289)

at javax.mail.internet.ContentType.(ContentType.java:114)

at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1331)

at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2107)

at com.zimbra.common.zmime.ZMimeMessage.updateHeaders(ZMimeMessage.java:343)

at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2075)

at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1770)

at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1749)

at com.zimbra.cs.util.SpamExtract.writeAttachedMessages(SpamExtract.java:379)

at com.zimbra.cs.util.SpamExtract.extractMessage0(SpamExtract.java:349)

at com.zimbra.cs.util.SpamExtract.extractMessage(SpamExtract.java:296)

at com.zimbra.cs.util.SpamExtract.extract(SpamExtract.java:245)

at com.zimbra.cs.util.SpamExtract.main(SpamExtract.java:194)

[] WARN: exception occurred fetching message

javax.mail.internet.ParseException: Expected ';', got "
at javax.mail.internet.ParameterList.(ParameterList.java:289)

at javax.mail.internet.ContentType.(ContentType.java:114)

at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1331)

at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2107)

at com.zimbra.common.zmime.ZMimeMessage.updateHeaders(ZMimeMessage.java:343)

at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2075)

at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1770)

at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1749)

at com.zimbra.cs.util.SpamExtract.writeAttachedMessages(SpamExtract.java:379)

at com.zimbra.cs.util.SpamExtract.extractMessage0(SpamExtract.java:349)

at com.zimbra.cs.util.SpamExtract.extractMessage(SpamExtract.java:296)

at com.zimbra.cs.util.SpamExtract.extract(SpamExtract.java:245)

at com.zimbra.cs.util.SpamExtract.main(SpamExtract.java:194)

[] WARN: exception occurred fetching message

javax.mail.internet.ParseException: Expected ';', got "
at javax.mail.internet.ParameterList.(ParameterList.java:289)

at javax.mail.internet.ContentType.(ContentType.java:114)

at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1331)

at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2107)

at com.zimbra.common.zmime.ZMimeMessage.updateHeaders(ZMimeMessage.java:343)

at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2075)

at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1770)

at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1749)

at com.zimbra.cs.util.SpamExtract.writeAttachedMessages(SpamExtract.java:379)

at com.zimbra.cs.util.SpamExtract.extractMessage0(SpamExtract.java:349)

at com.zimbra.cs.util.SpamExtract.extractMessage(SpamExtract.java:296)

at com.zimbra.cs.util.SpamExtract.extract(SpamExtract.java:245)

at com.zimbra.cs.util.SpamExtract.main(SpamExtract.java:194)

[] WARN: exception occurred fetching message

javax.mail.internet.ParseException: Expected ';', got "
at javax.mail.internet.ParameterList.(ParameterList.java:289)

at javax.mail.internet.ContentType.(ContentType.java:114)

at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1331)

at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2107)

at com.zimbra.common.zmime.ZMimeMessage.updateHeaders(ZMimeMessage.java:343)

at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2075)

at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1770)

at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1749)

at com.zimbra.cs.util.SpamExtract.writeAttachedMessages(SpamExtract.java:379)

at com.zimbra.cs.util.SpamExtract.extractMessage0(SpamExtract.java:349)

at com.zimbra.cs.util.SpamExtract.extractMessage(SpamExtract.java:296)

at com.zimbra.cs.util.SpamExtract.extract(SpamExtract.java:245)

at com.zimbra.cs.util.SpamExtract.main(SpamExtract.java:194)

[] WARN: exception occurred fetching message

javax.mail.internet.ParseException: Expected ';', got "
at javax.mail.internet.ParameterList.(ParameterList.java:289)

at javax.mail.internet.ContentType.(ContentType.java:114)

at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1331)

at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2107)

at com.zimbra.common.zmime.ZMimeMessage.updateHeaders(ZMimeMessage.java:343)

at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2075)

at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1770)

at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1749)

at com.zimbra.cs.util.SpamExtract.writeAttachedMessages(SpamExtract.java:379)

at com.zimbra.cs.util.SpamExtract.extractMessage0(SpamExtract.java:349)

at com.zimbra.cs.util.SpamExtract.extractMessage(SpamExtract.java:296)

at com.zimbra.cs.util.SpamExtract.extract(SpamExtract.java:245)

at com.zimbra.cs.util.SpamExtract.main(SpamExtract.java:194)

[] INFO: Total messages processed: 30

[] INFO: Total messages processed: 0

20120612133938 Finished extracting spam/ham from system accounts.

20120612133938 Starting spamassassin training.

netset: cannot include 127.0.0.0/8 as it has already been included

Learned tokens from 0 message(s) (29 message(s) examined)

netset: cannot include 127.0.0.0/8 as it has already been included

Learned tokens from 0 message(s) (0 message(s) examined)

netset: cannot include 127.0.0.0/8 as it has already been included

bayes: synced databases from journal in 0 seconds: 738 unique entries (813 total entries)

20120612133943 Finished spamassassin training.


reason2008
Posts: 23
Joined: Fri Sep 12, 2014 11:51 pm

Problem to training spam

Postby reason2008 » Tue Dec 18, 2012 4:15 pm

I was having this problem. I found that there was an old message in the spam training account that zmtrainsa was having problems with. I deleted the message from the training account and the error went away.
tux143
Posts: 8
Joined: Fri Nov 18, 2016 1:47 am

Re: Problem to training spam

Postby tux143 » Fri Nov 18, 2016 2:05 am

we have same issue
Last edited by tux143 on Fri Dec 02, 2016 2:53 am, edited 1 time in total.
tux143
Posts: 8
Joined: Fri Nov 18, 2016 1:47 am

Re: Problem to training spam

Postby tux143 » Fri Dec 02, 2016 2:24 am

How to clean spam/ham folder?
User avatar
jorgedlcruz
Zimbra Alumni
Zimbra Alumni
Posts: 2782
Joined: Thu May 22, 2014 4:47 pm

Re: Problem to training spam

Postby jorgedlcruz » Fri Dec 02, 2016 2:57 am

Try with the next

Code: Select all

zmprov mcf zimbraSpamIsSpamAccount spam@domain.com
zmprov mcf zimbraSpamIsNotSpamAccount ham@domain.com
zmcontrol restart


Best regards
Jorge de la Cruz https://jorgedelacruz.es
Systems Engineer at Veeam Software https://www.veeam.com/

Return to “Administrators”

Who is online

Users browsing this forum: Bing [Bot] and 9 guests