Had an odd issue where several computers, all macs, where located behind a router with a common IP. One of the systems could connect to the imap server, but none of the others could. After checking all the settings, and finding they where the same we proceeded to test from outside their network. All attempts to telnet worked.
After a bit of research i found the following:
- Mac Mail is like thunderbird, 1 imap connection uses several connections per machine.
- By Default, on plesk courier-imap max connections per IP is set to 4
- Looks like 1 mac mail client uses 4 or more connections
So to resolve the issue the following had to be done:
Edit the /etc/courier-imap/imapd file and modify the following values
MAXPERIP to 50)
Next, to enable multiple systems and connections at the same time, and not just from a single IP i also increased (in the same file)
MAXDAEMONS to 300
This would enable up to 300 concurrent connections to imap, with up to 50 from a single IP source. (you can use any values you wish for both)
Once complete i then restarted imap
/etc/init.d/courier-imap stop /etc/init.d/courier-imap start