Re: Slow IMAP SORT

2022-08-16 Thread Aleksander Machniak
On 15.08.2022 11:43, Ewald Dieterich wrote: The following IMAP SORT with 2 sort criteria is very slow on an mdbox mailbox with lots of mails (more than 10,000) and an empty cache: . SORT (ARRIVAL DATE) UTF-8 ALL Each mail is opened when the SORT is executed, which is slow, given the number

Re: Slow IMAP SORT

2022-08-16 Thread Aki Tuomi
There is a old bug that we are aware. Maybe we look at it again. Aki > On 16/08/2022 16:21 EEST Aleksander Machniak wrote: > > > On 15.08.2022 11:43, Ewald Dieterich wrote: > > The following IMAP SORT with 2 sort criteria is very slow on an mdbox > > mailbox with lots of mails (more than

Re: Get a list of currently active IMAP connections?

2022-08-16 Thread Jaroslaw Rafa
Dnia 16.08.2022 o godz. 23:37:05 Aki Tuomi pisze: > > doveadm_password = secret > > service doveadm { > inet_listener http { > port = 8080 > } > } > > should allow you to use `who` command over HTTP API. It's an interesting option, but after looking into "doveadm" source code I was

Re: dovecot/config processes open, and consuming all memory

2022-08-16 Thread Aki Tuomi
> On 17/08/2022 00:57 EEST Joseph Tam wrote: > > > From: Aki Tuomi > > > The *default* configuration for service config is usually just fine. > > > Is there some reason you decided to modify it in first place? > > > Are you asking me, or the OP? > > > I guess the blunt answer is

Re: dovecot/config processes open, and consuming all memory

2022-08-16 Thread Joseph Tam
From: Aki Tuomi > The *default* configuration for service config is usually just fine. > Is there some reason you decided to modify it in first place? Are you asking me, or the OP? I guess the blunt answer is ignorance on my part. However, I pointed out that the docs about this setting is

Re: Get a list of currently active IMAP connections?

2022-08-16 Thread Antonio Leding
At the risk of being pedestrian, I just use something like `sudo netstat -an | grep ‘:[ IMAP_PORT ]’` I’m pretty sure you thought of this but still, thought I would toss it out… Cheers - - - On 16 Aug 2022, at 13:15, Jaroslaw Rafa wrote: Hello Dovecot community, I have a question: is it

Re: dovecot/config processes open, and consuming all memory

2022-08-16 Thread fil...@digirati.com.br
currently the client_limt is at zero, and I believe this is unlimited service config {   chroot =   client_limit = 0   drop_priv_before_exec = no   executable = config   extra_groups =   group =   idle_kill = 1 mins   privileged_group =   process_limit = 0   process_min_avail = 16   protocol =  

Re: dovecot/config processes open, and consuming all memory

2022-08-16 Thread Aki Tuomi
Can you try increasing client_limit for service config, to maybe, say, 1000? There should be no reason to have lots of multiple config processes, so it sounds more like the client limit is being reached. Aki > On 16/08/2022 19:03 EEST fil...@digirati.com.br > wrote: > > > The only thing I

Re: Get a list of currently active IMAP connections?

2022-08-16 Thread Jaroslaw Rafa
Dnia 16.08.2022 o godz. 23:19:14 Aki Tuomi pisze: > Have you tried `doveadm who`? Why haven't I found it in the documentation? I was really searching... :) Thank you! But this still requires launching an external executable for each connection request. Optimal solution would be to get it via

Get a list of currently active IMAP connections?

2022-08-16 Thread Jaroslaw Rafa
Hello Dovecot community, I have a question: is it possible to programmatically get from Dovecot a list of currently active IMAP sessions (with IP addresses)? Via a plugin or something? Or just check if there is an IMAP session currently open from a particular IP address, with true/false type

Re: dovecot/config processes open, and consuming all memory

2022-08-16 Thread fil...@digirati.com.br
The only thing I had initially configured was vsz_limit, but as the number of clients grew, the number of dovecot/config processes grew, and with that I added idle_kill and service_count to try to minimize the use of ram memory In dovecot 2.2.33.2 , another server, has the same amount of

Re: Get a list of currently active IMAP connections?

2022-08-16 Thread Aki Tuomi
Have you tried `doveadm who`? Aki > On 16/08/2022 23:15 EEST Jaroslaw Rafa wrote: > > > Hello Dovecot community, > > I have a question: is it possible to programmatically get from Dovecot a > list of currently active IMAP sessions (with IP addresses)? Via a plugin or > something? > > Or

Re: Get a list of currently active IMAP connections?

2022-08-16 Thread Aki Tuomi
> On 16/08/2022 23:34 EEST Jaroslaw Rafa wrote: > > > Dnia 16.08.2022 o godz. 23:19:14 Aki Tuomi pisze: > > Have you tried `doveadm who`? > > Why haven't I found it in the documentation? I was really searching... :) > Thank you! > > But this still requires launching an external executable

Re: dovecot/config processes open, and consuming all memory

2022-08-16 Thread Aki Tuomi
As https://doc.dovecot.org/configuration_manual/service_configuration/#client-limit says, 0 means to apply default_client_limit, which defaults to 100. Aki > On 16/08/2022 20:11 EEST fil...@digirati.com.br > wrote: > > > currently the client_limt is at zero, and I believe this is