Results 1 to 7 of 7

Thread: [SOLVED] Spam learning: junk folder or junk button

  1. #1
    halfgaar's Avatar
    halfgaar is offline Active Member
    Join Date
    Dec 2009
    Location
    Netherlands
    Posts
    47
    Rep Power
    5

    Question [SOLVED] Spam learning: junk folder or junk button

    Hi,

    I have a simple question which I can't seem to find the answer to: If I press the junk button, a junk message is moved to the junk folder. It is also submitted for learning.

    But when I move the message to the junk folder manually, is it still submitted for learning?

    This is relevant when using my Zimbra account on my phone with IMAP; I don't have a junk button there.

  2. #2
    Klug's Avatar
    Klug is offline Moderator
    Join Date
    Mar 2006
    Location
    Beaucaire, France
    Posts
    2,313
    Rep Power
    13

    Default

    AFAIK, in 6.0.9, moving the message to "Junk" is enough (that was not the case in the old days).

  3. #3
    halfgaar's Avatar
    halfgaar is offline Active Member
    Join Date
    Dec 2009
    Location
    Netherlands
    Posts
    47
    Rep Power
    5

    Default

    I just updated my profile, I'm running version 6.0.10 (soon to upgrade to 7)

    I see that in /var/log/mail.log there are entries like:

    Code:
    postfix/smtp[24261]: B0BDF182036: to=<spam.xxxxx@halfgaar.net>
    So I guess I had to look there before asking. I will tail that log next time I move a spam message to junk.

  4. #4
    Krishopper is offline Dedicated Member
    Join Date
    Dec 2006
    Location
    Minneapolis MN
    Posts
    776
    Rep Power
    9

    Default

    You should also see a line with a little more detail in /opt/zimbra/log/mailbox.log when you move the message, also.
    01 Networks, LLC / Cybernetik.net
    Zimbra NE and OSS Cloud Hosting
    Shared Web Hosting
    Consulting Services

  5. #5
    ewilen's Avatar
    ewilen is offline Moderator
    Join Date
    Jun 2008
    Location
    Berkeley, CA
    Posts
    1,474
    Rep Power
    9

    Default

    Moving a message to junk manually in ZWC, or via an IMAP client, ActiveSync, ZCO--any of these--will send a copy of it to the spam account for training. Likewise, moving a moving a message out of junk will send it to the ham account. (I think the sole exception is if you move it from junk directly into Trash.)

    Bug 9532 &ndash; IMAP/Outlook move to junk doesn't train anti-spam
    Bug 34534 &ndash; Don't mark as ham when messages are moved from Junk -> Deleted Messages

  6. #6
    halfgaar's Avatar
    halfgaar is offline Active Member
    Join Date
    Dec 2009
    Location
    Netherlands
    Posts
    47
    Rep Power
    5

    Default

    I got a new spam message to test with. I moved it to junk through IMAP.

    It's trying, but no cigar:

    Code:
    2011-04-22 12:24:34,468 WARN  [Junk-NotJunk-Handler] [] misc - exception occurred sending spam report spamreport: acct=wiebe@halfgaar.net mbox=3 id=56997 report=spam origIp=null
    javax.mail.MessagingException: IOException while sending message;
      nested exception is:
    	java.io.IOException: /opt/zimbra/store/0/3/msg/13/56997-65254.msg does not exist.
    	at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:779)
    	at javax.mail.Transport.send0(Transport.java:191)
    	at javax.mail.Transport.send(Transport.java:120)
    	at com.zimbra.cs.service.util.SpamHandler.sendReport(SpamHandler.java:178)
    	at com.zimbra.cs.service.util.SpamHandler.reportLoop(SpamHandler.java:236)
    	at com.zimbra.cs.service.util.SpamHandler$1.run(SpamHandler.java:131)
    	at java.lang.Thread.run(Thread.java:662)
    Caused by: java.io.IOException: /opt/zimbra/store/0/3/msg/13/56997-65254.msg does not exist.
    	at com.zimbra.cs.store.BlobInputStream.<init>(BlobInputStream.java:144)
    	at com.zimbra.cs.store.BlobInputStream.<init>(BlobInputStream.java:96)
    	at com.zimbra.cs.store.file.FileBlobStore.getContent(FileBlobStore.java:330)
    	at com.zimbra.cs.store.file.FileBlobStore.getContent(FileBlobStore.java:324)
    	at com.zimbra.cs.mime.MailboxBlobDataSource.getInputStream(MailboxBlobDataSource.java:56)
    	at javax.activation.DataHandler.writeTo(DataHandler.java:290)
    	at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1381)
    	at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:852)
    	at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:452)
    	at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:98)
    	at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:869)
    	at javax.activation.DataHandler.writeTo(DataHandler.java:302)
    	at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1381)
    	at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1742)
    	at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:737)
    	... 6 more

  7. #7
    halfgaar's Avatar
    halfgaar is offline Active Member
    Join Date
    Dec 2009
    Location
    Netherlands
    Posts
    47
    Rep Power
    5

    Default

    But has been fixed in 7.1. I moved the message to Junk with IMAP:

    Code:
    2011-04-29 20:06:56,562 INFO  [Junk-NotJunk-Handler] [] misc - Sent SpamReport{account=wiebe@halfgaar.net, mbox=3, msgId=57397, isSpam=true, origIp=null, action=imap copy, srcFolder=/Inbox, destFolder=/Junk, destAccount=null, reportRecipient=spam.xxxxxx@halfgaar.net}
    2011-04-29 20:06:57,209 INFO  [LmtpServer-1] [ip=83.137.146.229;] lmtp - Delivering message: size=5238 bytes, nrcpts=1, sender=, msgid=<1108656128.367.1304100416267.JavaMail.root@meel>
    2011-04-29 20:06:57,216 INFO  [LmtpServer-1] [name=spam.xxxxxx@halfgaar.net;mid=4;ip=83.137.146.229;] mailop - Adding Message: id=502, Message-ID=<1108656128.367.1304100416267.JavaMail.root@meel>, parentId=-1, folderId=2, folderName=Inbox.
    2011-04-29 20:06:57,366 INFO  [LmtpServer-1] [] ProtocolHandler - Handler exiting normally

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help mail server broadcast spam
    By sh1n_b3 in forum Administrators
    Replies: 0
    Last Post: 01-19-2011, 07:44 PM
  2. Spam/Ham training under Outlook/Thunderbird/etc.
    By chuckm in forum Administrators
    Replies: 23
    Last Post: 03-18-2009, 11:01 AM
  3. .pst migration issues
    By jimklein in forum Migration
    Replies: 13
    Last Post: 02-16-2009, 01:55 AM
  4. Replies: 3
    Last Post: 08-11-2007, 12:40 PM
  5. Spam training and Junk folder behavior
    By flyerguybham in forum Administrators
    Replies: 9
    Last Post: 02-14-2007, 12:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •