Re: limit max child per user or IP

2016-10-28 Thread Bron Gondwana via Info-cyrus
No idea with perdition either.

There is support directly in Cyrus though, at least new cyrus:

{ "maxlogins_per_host", 0, INT }
/* Maximum number of logged in sessions allowed per host,
   zero means no limit */

{ "maxlogins_per_user", 0, INT }
/* Maximum number of logged in sessions allowed per user,
   zero means no limit */

Bron.

On Fri, 28 Oct 2016, at 18:23, Marcus Schopen via Info-cyrus wrote:
> Hi,
> 
> I'm running cyrus behind a perdition proxy and from time to time one of
> my users is eating up "maxchild" which is set to 500 (it's just a small
> server for friends and family) and no further connections are accepted
> for other users. I checked /var/run/cyrus/proc and mostly "Archives"
> folders are opened. I talked to the user to check his client settings,
> but it's not clear why his client behaves like this.
>  Is there a way to limit max connections per user or IP? Perdition
> itself doesn't support this (only limit on the number of simultaneous
> connections).
> 
> Ciao
> Marcus
> 
> 
> 
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


-- 
  Bron Gondwana
  br...@fastmail.fm

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: limit max child per user or IP

2016-10-28 Thread Janne Peltonen via Info-cyrus
Hi!

On Fri, Oct 28, 2016 at 09:23:43AM +0200, Marcus Schopen via Info-cyrus wrote:
>  Is there a way to limit max connections per user or IP? Perdition
> itself doesn't support this (only limit on the number of simultaneous
> connections).

I know of no way to accomplish this using Cyrus, but you could always
use your iptables firewall. Here's an example from stackexchange:

http://unix.stackexchange.com/questions/139285/limit-max-connections-per-ip-address-and-new-connections-per-second-with-iptable


--Janne
-- 
Janne Peltonen  PGP Key ID: 0x9CFAC88B
Helsingin yliopisto / Tietotekniikkakeskus

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


limit max child per user or IP

2016-10-28 Thread Marcus Schopen via Info-cyrus
Hi,

I'm running cyrus behind a perdition proxy and from time to time one of
my users is eating up "maxchild" which is set to 500 (it's just a small
server for friends and family) and no further connections are accepted
for other users. I checked /var/run/cyrus/proc and mostly "Archives"
folders are opened. I talked to the user to check his client settings,
but it's not clear why his client behaves like this.
 Is there a way to limit max connections per user or IP? Perdition
itself doesn't support this (only limit on the number of simultaneous
connections).

Ciao
Marcus



Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus