Disabling IDLE in courier-imap
Wed, 02/06/2013 - 09:26 — sandipApple and BlackBerry email clients has a configurable setting to use the IMAP IDLE functionality to stay logged in, periodically checking email. This causes imapd to run out of daemons and stop responding. One solution is to raise MAXDAEMONS in /etc/courier-imap/imapd, but will eventually cause high loads on the server.
The better solution is to disable IDLE entirely in /etc/courier-imap/imapd by removing "IDLE" option from "IMAP_CAPABILITY".
Change:
IMAP_CAPABILITY="IMAP4rev 1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE"
To:
IMAP_CAPABILITY="IMAP4rev 1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA"
Upon courier-imap restart, this should prevent connections from persisting.
Telnet to imap port 143 to verify that the IDLE option is not present anymore in CAPABILITY response from the server.
- sandip's blog
- Login or register to post comments
- Read more