• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Courier-imap timeout trouble

nvoth

New Pleskian
Hello,

We are seeing lots and lots of connections from blackberry.com coming in to IMAP and IMAPS on our servers. They seem to be persistent. In fact, I've see 30-40 connections on IMAP from blackberry that never seem to drop. I've even done a tcpdump on several of the connections and there's no data being passed. It seems that blackberry just connects and then never, (or rarely), drops.

Does anyone know how to change the default idle timeout in courier-imap so that the connections won't just sit there? I've looked through the configs and the docs and can't find any reference to it.

Thanks,

-Nick Voth
 
Disabling IDLE in courier-imap.

I had a similar problem with Apple Mail which has a configurable setting to use the IMAP IDLE functionality to stay logged in, periodically checking email. As the server in question was primarily used by Mac users, this caused imapd to run out of daemons and stop responding. One solution is, of course, to raise MAXDAEMONS in /etc/courier-imap/imapd, but you will eventually begin to tax your server's resources unduly.

The better solution is to disable IDLE entirely in /etc/courier-imap/imapd.

Change:

IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE"

To:

IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA"

... and restart courier-imap. This should prevent those pesky Blackberry (or Apple Mail) connections from persisting ad infinitum.

Hope it works for you!

Franklin
 
That worked like a champ. Thanks very much! So far I don't see any down side and we've had no customer complaints.

-Nick Voth
 
Back
Top