Re: Connection statistics per user and IP

2019-07-11 Thread Joseph Tam via dovecot

On Thu, 11 Jul 2019, Lefteris Tsintjelis wrote:

Is it possible to enable statistics and keep track of the maximum number of 
connections per user and also per IP?


If you can't get what you want from the stats module, you can always
post process the logs.  Filter on user/IP, then keep a rolling session
counter that increments on logins, decrements on logouts.

You can then observe how certain MacOSX client operations would ramp to
maximum allowable connections, then exit all connections before iterating
on the next bunch of mailboxes, or other clients keep a steady count of
sessions going.

Joseph Tam 


Re: Connection statistics per user and IP

2019-07-11 Thread andre via dovecot


I hope I am not of topic, but you can have a look on my implementation, using 
post login script feature of Dovecot.
 I am using an SQlite database to send a monthly report:

https://homebox.readthedocs.io/en/latest/email-access-monitoring/

An exemple is at the end of the page.

Feel free to copy the code.

André.

PS: I am in holiday with limited access to my emails, but I saw I could hello 
here.


Homebox: https://github.com/progmaticltd/homebox

Thu Jul 11 10:11:34 GMT+02:00 2019 Lefteris Tsintjelis via dovecot 
:

> Is it possible to enable statistics and keep track of the maximum number
> of connections per user and also per IP?
>
> Lefteris
>


Connection statistics per user and IP

2019-07-11 Thread Lefteris Tsintjelis via dovecot
Is it possible to enable statistics and keep track of the maximum number 
of connections per user and also per IP?


Lefteris