Courier-IMAP – imapd: Maximum connection limit reached for

Error: Courier-IMAP – imapd: Maximum connection limit reached for

You cannot connect to Courier-IMAP and see the following errors in your mail log: eval(ez_write_tag([[728,90],’howtoforge_com-box-3′,’ezslot_10′,106,’0′,’0′]));

 Aug 08 11:25:45 server1 imapd: Maximum connection limit reached for ::ffff:1.2.3.4

 eval(ez_write_tag([[728,90],’howtoforge_com-medrectangle-3′,’ezslot_11′,121,’0′,’0′]));

Solution

Open your Courier-IMAP configuration file; on Debian it’s /etc/courier/imapd:

vi /etc/courier/imapd

Adjust the MAXDAEMONS and MAXPERIP settings (you might have to play around with these values)…

[...]
##NAME: MAXDAEMONS:0
#
#  Maximum number of IMAP servers started
#

MAXDAEMONS=40

##NAME: MAXPERIP:0
#
#  Maximum number of connections to accept from the same IP address

MAXPERIP=20
[...]

… and restart Courier-IMAP – on Debian this can be done with:

/etc/init.d/courier-imap restart 
About the Author

Leave a Reply