Dovecot ignoring maximum number of IMAP connections

dovecotimap

I have a single mailbox mail server running Dovecot/Postfix and I have two IMAP clients, Thunderbird on the PC and K9 on Android. I keep on receiving this error in my logs even after I change the 'mail_max_userip_connections' variable to 50.

puppet dovecot: imap-login: Maximum number of connections from user+IP exceeded (mail_max_userip_connections=10): user=<admin@domain.net>, method=PLAIN, rip=62.242.90.2, lip=198.29.31.229, TLS

Why does it say that it is set to 10 in the log? Is that hardcoded?

grep -r "mail_max_userip_connections" /etc/dovecot
/etc/dovecot/conf.d/20-managesieve.conf:  #mail_max_userip_connections = 10
/etc/dovecot/conf.d/20-pop3.conf:  #mail_max_userip_connections = 3
/etc/dovecot/conf.d/20-imap.conf:  mail_max_userip_connections = 50

I've restarted dovecot after making the changes but this error is still logged and I can't access the mailbox. Can anyone help me understand why I can't seem to raise the maximum limit?

Best Answer

I recently had occasion to change this value, but I changed it in the main config file; in my /etc/dovecot/dovecot.conf it now says:

protocol imap {
  mail_max_userip_connections = 50
}

And it's been honoured; this is using dovecot 2.0.9 on a Centos 6.2 system. I don't know that that's an answer to your question, but I thought it might be useful for you to know that someone else had got it working, and how.