Re: [Dovecot] mail_max_userip_connections=10

2011-12-12 Thread Eran Guy
Timo Sirainen tss at iki.fi writes:

 
 On 19.9.2011, at 11.27, Tom Clark wrote:
 
  Is there anyway of whitelisting an IP so that it can ignore
  mail_max_userip_connections=10?
 
 With v2.0 in theory:
 
 remote 1.2.3.4 {
   mail_max_userip_connections = 0
 }
 
 I don't know if it actually works.

Not sure I follow- in which conf file would it be appropriate to place this? Is
it possible to maintain separate values for the same config directive?

(I'm having a similar problem with iOS devices connecting to our server- they
seem to open multiple connections, easily going over 10 if they have many
subscribed directories).


Thanks,
-E-






Re: [Dovecot] mail_max_userip_connections=10

2011-09-22 Thread Timo Sirainen
On 19.9.2011, at 11.27, Tom Clark wrote:

 Is there anyway of whitelisting an IP so that it can ignore
 mail_max_userip_connections=10?

With v2.0 in theory:

remote 1.2.3.4 {
  mail_max_userip_connections = 0
}

I don't know if it actually works.

 What should we set mail_max_userip_connections too realistically? 10 seems a
 bit low?

It's 10 because I thought it would be enough :)



Re: [Dovecot] mail_max_userip_connections=10

2011-09-22 Thread Tom Clark
Thanks Timo. I've been doing some investigation. Apart from K9 being
fundamentally broken 10 is fine!

I'll try the remote fix.

-Original Message-
From: Timo Sirainen [mailto:t...@iki.fi] 
Sent: 22 September 2011 2:49 PM
To: Tom Clark
Cc: dovecot@dovecot.org
Subject: Re: [Dovecot] mail_max_userip_connections=10

On 19.9.2011, at 11.27, Tom Clark wrote:

 Is there anyway of whitelisting an IP so that it can ignore 
 mail_max_userip_connections=10?

With v2.0 in theory:

remote 1.2.3.4 {
  mail_max_userip_connections = 0
}

I don't know if it actually works.

 What should we set mail_max_userip_connections too realistically? 10 
 seems a bit low?

It's 10 because I thought it would be enough :)




Re: [Dovecot] mail_max_userip_connections=10

2011-09-20 Thread Tom Clark
If it is the same problem with K9 (although Timo doesn't think it is) we
fixed it on the K9 machine by turning off PUSH mail folders.

Tom

-Original Message-
From: dovecot-boun...@dovecot.org [mailto:dovecot-boun...@dovecot.org] On
Behalf Of Timo Sirainen
Sent: 19 September 2011 7:12 PM
To: Asai
Cc: Dovecot Mailing List
Subject: Re: [Dovecot] mail_max_userip_connections=10

On 19.9.2011, at 20.43, Asai wrote:

 If you figure it out, please post the solution, because we're running into
a similar issue right now with K9 mail where it's causing us to get this
error:imap-login: Disconnected: Connection queue full

That's a different problem. You need to increase number of login processes /
connections. http://wiki2.dovecot.org/LoginProcess




Re: [Dovecot] mail_max_userip_connections=10

2011-09-20 Thread Stan Hoeppner

On 9/19/2011 7:36 AM, Tom Clark wrote:

Hi Paul,

It's coming from the same IP address through his ADSL. Hence he gets the
problem with max_userip_connections.

I think I tracked down the problem. He's been using K9 mail which seems to
have a problem where it doesn't release a connection and has 1 connection
per subscribed folder


The reasoning behind the multiple socket communication design in the 
IMAP protocol is flawed, thus we end up with problems like yours, and 
others.  It may have looked good on the white board but it doesn't seem 
to add benefit in production--only add problems.  At least from an SA's 
perspective.  Just about every other modern internet protocol gets by 
with a single socket, and many of those applications are more complex 
than IMAP.


Multiple virtual channels are a good idea at the data link layer of WAN 
communications links, and work well there.  They're a lousy idea at the 
application layer, however, as the IMAP protocol clearly demonstrates. 
Everything IMAP does over multiple sockets could have been accomplished 
over a single socket, with no noticeable decrease in performance, but 
with fewer SA headaches and fewer server resources consumed.


I eagerly await a successor to the current version of IMAP, which will 
hopefully do away with this problematic, unnecessary, multiple socket 
nonsense.  It may be a long wait, unfortunately...


--
Stan


Re: [Dovecot] mail_max_userip_connections=10

2011-09-20 Thread Asai
Thanks for the insight, Tom.  Yeah, it was a different problem, and we 
solved it.



On 9/20/2011 1:15 AM, Tom Clark wrote:

If it is the same problem with K9 (although Timo doesn't think it is) we
fixed it on the K9 machine by turning off PUSH mail folders.

Tom

-Original Message-
From: dovecot-boun...@dovecot.org [mailto:dovecot-boun...@dovecot.org] On
Behalf Of Timo Sirainen
Sent: 19 September 2011 7:12 PM
To: Asai
Cc: Dovecot Mailing List
Subject: Re: [Dovecot] mail_max_userip_connections=10

On 19.9.2011, at 20.43, Asai wrote:


If you figure it out, please post the solution, because we're running into

a similar issue right now with K9 mail where it's causing us to get this
error:imap-login: Disconnected: Connection queue full

That's a different problem. You need to increase number of login processes /
connections. http://wiki2.dovecot.org/LoginProcess




Re: [Dovecot] mail_max_userip_connections=10

2011-09-19 Thread Paul Griffith
On 09/19/11 04:27, Tom Clark wrote:
 Hi,
 
 
 
 A couple of questions rather than a problem for once!
 
 
 
 We've got our Dovecot server running smoothly now apart from our MD. He's
 having problems with mail_max_userip_connections. He has 3
 (Phone/Laptop/Tablet) items that all connect to the server at about the same
 time. Which means he's frequently running over the max_userip_connections.
 
 
 
 My questions are:
 
 
 
 Is there anyway of whitelisting an IP so that it can ignore
 mail_max_userip_connections=10?
 
 
 
 What should we set mail_max_userip_connections too realistically? 10 seems a
 bit low?
 

Hi Tom,

   The setting mail_max_userip_connections is per IP.

from 20-imap.conf (version 2.0.13, the version we are running)

# Maximum number of IMAP connections allowed for a user from each IP address.
# NOTE: The username is compared case-sensitively.
#mail_max_userip_connections = 10

I am going to assume he has a different IP for each device, in this case that 
would allow up to 30 connections.

You need to  post your 'doveconf -n' output!

Cheers,
Paul


Re: [Dovecot] mail_max_userip_connections=10

2011-09-19 Thread Tom Clark
Hi Paul,

It's coming from the same IP address through his ADSL. Hence he gets the
problem with max_userip_connections.

I think I tracked down the problem. He's been using K9 mail which seems to
have a problem where it doesn't release a connection and has 1 connection
per subscribed folder

Ta,

Tom

-Original Message-
From: Paul Griffith [mailto:pa...@cse.yorku.ca] 
Sent: 19 September 2011 1:30 PM
To: Tom Clark
Cc: dovecot@dovecot.org
Subject: Re: [Dovecot] mail_max_userip_connections=10

On 09/19/11 04:27, Tom Clark wrote:
 Hi,
 
 
 
 A couple of questions rather than a problem for once!
 
 
 
 We've got our Dovecot server running smoothly now apart from our MD. 
 He's having problems with mail_max_userip_connections. He has 3
 (Phone/Laptop/Tablet) items that all connect to the server at about 
 the same time. Which means he's frequently running over the
max_userip_connections.
 
 
 
 My questions are:
 
 
 
 Is there anyway of whitelisting an IP so that it can ignore 
 mail_max_userip_connections=10?
 
 
 
 What should we set mail_max_userip_connections too realistically? 10 
 seems a bit low?
 

Hi Tom,

   The setting mail_max_userip_connections is per IP.

from 20-imap.conf (version 2.0.13, the version we are running)

# Maximum number of IMAP connections allowed for a user from each IP
address.
# NOTE: The username is compared case-sensitively.
#mail_max_userip_connections = 10

I am going to assume he has a different IP for each device, in this case
that would allow up to 30 connections.

You need to  post your 'doveconf -n' output!

Cheers,
Paul



Re: [Dovecot] mail_max_userip_connections=10

2011-09-19 Thread Asai

On 9/19/2011 5:36 AM, Tom Clark wrote:

Hi Paul,

It's coming from the same IP address through his ADSL. Hence he gets the
problem with max_userip_connections.

I think I tracked down the problem. He's been using K9 mail which seems to
have a problem where it doesn't release a connection and has 1 connection
per subscribed folder

Ta,

Tom


If you figure it out, please post the solution, because we're running 
into a similar issue right now with K9 mail where it's causing us to get 
this error:imap-login: Disconnected: Connection queue full


Re: [Dovecot] mail_max_userip_connections=10

2011-09-19 Thread Timo Sirainen
On 19.9.2011, at 20.43, Asai wrote:

 If you figure it out, please post the solution, because we're running into a 
 similar issue right now with K9 mail where it's causing us to get this 
 error:imap-login: Disconnected: Connection queue full

That's a different problem. You need to increase number of login processes / 
connections. http://wiki2.dovecot.org/LoginProcess