Page 1 of 1

Dovecot mail_max_userip_connections default

Posted: 15 Jul 2011, 07:54
by Cheeseboy
Hi all,

I've been getting a lot of these in my syslog lately:

Code: Select all

Jul 14 20:41:05 b3 dovecot: imap-login: Maximum number of connections from user+IP exceeded (mail_max_userip_connections): user=<niklas>, method=PLAIN, rip=192.168.10.60, lip=xx.xx.xx.xx, TLS
Looking in /etc/dovecot, I see that dovecot.conf is linked to /etc/bubba/dovecot.conf, which doesn't have the mail_max_userip_connections setting.

Do you know what the default is? In the comments of /etc/dovecot/dovecot.conf.bubba-distrib, it is set to 10. If the default is 10, I cannot see why I would get this message with only one PC and one phone accessing it at the same time...

Cheers,

Cheeseboy

Re: Dovecot mail_max_userip_connections default

Posted: 16 Jul 2011, 03:47
by Ubi
1) is 192.168.10.60 the phone or the desktop?
2) did you run iptraf to see what was happening?
3) no matter what the current setting; does changing mail_max_userip_connections to 12 make it go away?

My lame guess here would be that you have a IMAP mail client that closes the connection repeatedly but does not tell the server, which sees the new connections arrive while the other ones are still active.

Re: Dovecot mail_max_userip_connections default

Posted: 16 Jul 2011, 04:55
by Cheeseboy
1) is 192.168.10.60 the phone or the desktop?
2) did you run iptraf to see what was happening?
3) no matter what the current setting; does changing mail_max_userip_connections to 12 make it go away?

My lame guess here would be that you have a IMAP mail client that closes the connection repeatedly but does not tell the server, which sees the new connections arrive while the other ones are still active.
Hi Ubi,

1) 192.168.10.60 is the desktop.
2) No I have done no network analysis yet.
3) I haven't tried to change the setting yet, I wanted to know what the default value was before I did so...

I suspect the same thing, and I think the Android app "K-9 Mail" is to blame rather than Evolution. But this is not a new configuration, and it is a new problem. So what introduced it?

Cheers,

CheeseBoy

Re: Dovecot mail_max_userip_connections default

Posted: 16 Jul 2011, 07:37
by Ubi
could be anything from a dodgy cable to a driver issue to a software problem really.

Re: Dovecot mail_max_userip_connections default

Posted: 16 Jul 2011, 07:39
by Cheeseboy
Well, yes, I realize that.
The purpose of the post was this:
"Does anyone know what the default value is?"

Re: Dovecot mail_max_userip_connections default

Posted: 16 Jul 2011, 13:56
by Ubi
in new versions it's 10, in old versions it's 3. The .dist value should give you the default.

Re: Dovecot mail_max_userip_connections default

Posted: 16 Jul 2011, 14:41
by Cheeseboy
Thanks for your reply, Ubi.

I've added the following to /etc/bubba/dovecot.conf:

Code: Select all

protocol imap {
   mail_max_userip_connections = 15
}
I'll leave it for a few days and see what happens.

Cheers,

Nik