Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-19-2010, 10:57 AM
Intermediate Member
 
Posts: 21
Default IMAP IDLE notifies on SPAM messages

Hi. I have an issue with a 6.0.5 install and IMAP IDLE.

I'm using a mobile phone that implements "push e-mail" using IMAP IDLE, and whenever I get a SPAM message - even though it files directly into the SPAM folder - I get a notification in the phone that I got a new e-mail.

So what happens is that my phone beeps, says "you got 2 email", I click on "view" to see the list of messages in the Inbox and there are no new e-mail there because Zimbra files the emails automatically to the SPAM folder. Additionally, the count of "unread emails" in the mail application is incremented whenever a new e-mail notification is received so it might say that I have 40 unread e-mails and when I open the list I only see 2 unread e-mails.

Also interesting is that e-mails that are filed to other folders using user defined filters do not cause IMAP IDLE notifications.

Any body else seen this problem?
Reply With Quote
  #2 (permalink)  
Old 02-22-2010, 01:47 PM
Special Member
 
Posts: 170
Default

Same problem here. I believe it may be an IMAP server setting. I have what I think is the setting changes required for a Courier IMAP server --

set IMAP_CHECK_ALL_FOLDERS=1 and IMAP_ENHANCEDIDLE=1

However, I don't know what Zimbra uses for an IMAP server. Also, I'm not sure whether this would solve the spam notifications.
Reply With Quote
  #3 (permalink)  
Old 02-23-2010, 04:50 AM
Outstanding Member
 
Posts: 708
Default

What device(s) are you using?

I've never seen this, though we might only have iPhone clients using IMAP, the rest ActiveSync.

I have lots of desktop IMAP clients, mostly MacOS Mail and Thunderbird. Never seen this problem there either.
Reply With Quote
  #4 (permalink)  
Old 02-23-2010, 06:54 AM
Intermediate Member
 
Posts: 21
Default

I don't think desktop clients use IMAP idle - for all of them you simply configure the polling time.

I'm using Sony Ericsson P1i. Does the iPhone use IMAP IDLE or some other method to do "push e-mail"? I know ActiveSync is specifically not IMAP IDLE - its HTTP polling.
Reply With Quote
  #5 (permalink)  
Old 02-24-2010, 05:43 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Quote:
Originally Posted by Oded Arbel View Post
I don't think desktop clients use IMAP idle - for all of them you simply configure the polling time.
They certainly do, Thunderbird & Zimbra Desktop for starters - for the rest see this page: IMAP IDLE - Wikipedia, the free encyclopedia
__________________
Regards


Bill
Reply With Quote
  #6 (permalink)  
Old 02-24-2010, 01:54 PM
Special Member
 
Posts: 170
Default

Yep, in my case, actually Thunderbird is the one I'm having this problem with.

It won't notify for new messages in all folders, only on the Inbox (I have all my message rules server side), and it "dings" for new messages when there aren't any (I think it may be emails getting put in the spam folder).

Are there any changes I can make for Zimbra to notify on IMAP IDLE for new messages in all folders (except Junk)?
Reply With Quote
  #7 (permalink)  
Old 02-25-2010, 12:44 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Quote:
Originally Posted by bjquinn View Post
Yep, in my case, actually Thunderbird is the one I'm having this problem with.

It won't notify for new messages in all folders, only on the Inbox (I have all my message rules server side), and it "dings" for new messages when there aren't any (I think it may be emails getting put in the spam folder).

Are there any changes I can make for Zimbra to notify on IMAP IDLE for new messages in all folders (except Junk)?
IMAP IDLE is a feature that ensures new mail is seen in the client the moment it's received at the server, it is not a 'new mail notification' feature. AFAIK, the notification is only for new mail in the Inbox so if you want that feature for other folders I'd suggest you head over to bugzilla to see if there's any relevant RFE and if not file one.

BTW, I assume that by notification you're talking about something other than the folder that mail arrives in is more than just highlighted in bold?
__________________
Regards


Bill
Reply With Quote
  #8 (permalink)  
Old 02-25-2010, 08:23 AM
Special Member
 
Posts: 170
Default

Well, when Thunderbird downloads an email, it typically plays a sound, pops up a message preview window by the system tray, and turns the folder blue. This works for any folder, as long as Thunderbird knows there's a message to download.

I've seen mention of ways to "push" email for all folders for Courier IMAP, etc. What software does Zimbra use for IMAP?
Reply With Quote
  #9 (permalink)  
Old 02-25-2010, 08:47 AM
Outstanding Member
 
Posts: 708
Default

Zimbra wrote their own IMAP server.

I think you're all misunderstanding what IDLE is. Here's how to use it manually. Things you type are in boldface. You can replace the first command with telnet mail.example.com 143 if your server doesn't require SSL.

Code:
openssl s_client -quiet -connect mail.example.com:993
* OK mail.example.com Zimbra IMAP4rev1 service ready
1 login Username@example.com Password
1 OK [CAPABILITY IMAP4rev1 ACL BINARY CATENATE CHILDREN CONDSTORE ENABLE ESEARCH ESORT I18NLEVEL=1 ID IDLE LIST-EXTENDED LITERAL+ LOGIN-REFERRALS MULTIAPPEND NAMESPACE QRESYNC QUOTA RIGHTS=ektx SASL-IR SEARCHRES SORT THREAD=ORDEREDSUBJECT UIDPLUS UNSELECT WITHIN X-DRAFT-I00-LIST-STATUS] LOGIN completed
2 select inbox
* 4658 EXISTS
* 0 RECENT
* OK [UNSEEN 1999] mailbox contains unseen messages
2 OK [READ-WRITE] SELECT completed
3 idle
+ idling
And then the connection sits there. If the client wants to execute another command, or to ensure that the connection stays alive (30 minutes is a typical period), then it sends DONE. If the server wishes to notify the client of a new message, it sends the updated message count without waiting for the next DONE/IDLE refresh cycle.

Code:
* 4659 EXISTS
* 1 RECENT
If the client wishes to act on this information, it sends a DONE and fetches the new message(s).

When I speak IMAP to my 6.0.4 server, I see correct behavior. The untagged mesages are sent only for messages in the currently selected inbox folder.

Those of you seeing this problem with 6.0.5, please try this.

If your IMAP client, for whatever reason, had Junk selected before going IDLE, then Zimbra should and will notify it of new Junk messages. I recall that some IMAP clients keep multiple connections open to multiple folders in order to improve responsiveness. You should see evidence of this in mailbox.log.
Reply With Quote
  #10 (permalink)  
Old 02-25-2010, 10:17 AM
Special Member
 
Posts: 170
Default

In other words, Zimbra's IMAP server only works on a folder-by-folder basis, so you'd have to have a separate connection open (one for each folder, potentially hundreds of them) in order for the server to notify the client of a new message in more than just one folder?

Courier-IMAP has IMAP_CHECK_ALL_FOLDERS and IMAP_ENHANCEDIDLE options so that the server will notify the client of new messages in ANY folder, not just the one selected. Is this feature not available in Zimbra?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.