Re: Issue with one user only, exceeding connections

2022-06-09 Thread Paul Kudla (SCOM.CA Internet Services Inc.)



ok the idle connection per folder is a factor

however in thunderbird i believe it defaults to 2 simultanious connections

mine is set to 5

in thunderbird see

The solution is to reduce the maximum number of connections in 
Thunderbird. This can be done from Edit > Account Settings > Server 
Settings (under the mail account for which the setting should be 
modified) > Advanced > Maximum Number of server connections to cache.


I dont know of anything that would get it to 500?

as for outlook idle was not / is not supported past 2010 (if even that) 
you need to go into


file --> options --> advanced --> send/receive

all you can change in there is the timing which defaults to 30 minutes, 
i recommend 3 or 5


I am unaware of how outlook handles physical connections (maybe 
registery?) and google revieled nothing, outlook since 2010 just does 
not support imap, microsofts way of forcing everyone onto exchange / 
outlook 365


377,000 hits last time i googled imap issues in outlook.

Best suggestion is to run

# ps -axww | grep imap
25500  -  S  0:00.57 imap: [p...@hiscomputer.ca 172.97.150.95 
IDLE] (imap)
25530  -  S  0:00.36 imap: [p...@hiscomputer.ca 172.97.150.95 
IDLE] (imap)
26014  -  I  0:00.39 imap: [rco...@tnky.ca 172.97.128.227 IDLE] 
(imap)
26018  -  I  0:00.38 imap: [rco...@tnky.ca 172.97.128.227 IDLE] 
(imap)
26210  -  I  0:00.07 imap: [spa...@scom.ca 99.238.154.160 IDLE] 
(imap)
38911  -  S  0:00.17 imap: [marilynla...@scom.ca 142.188.149.199 
IDLE] (imap)
38912  -  S  0:00.13 imap: [marilynla...@scom.ca 142.188.149.199 
IDLE] (imap)
41306  -  S  0:00.73 imap: [ed.ha...@dssmgmt.com 204.237.48.37 
IDLE] (imap)
41312  -  S  0:00.63 imap: [ed.ha...@ekst.ca 204.237.48.37 IDLE] 
(imap)
45232  -  I  0:00.23 imap: [rco...@tnky.ca 172.97.128.227 IDLE] 
(imap)
55504  -  I  0:00.16 imap: [rco...@tnky.ca 172.97.128.227 IDLE] 
(imap)


which shows all imap connections and from where

if you are overflowing 500+ connections then it has to show up here.


Happy Thursday !!!
Thanks - paul

Paul Kudla


Scom.ca Internet Services 
004-1009 Byron Street South
Whitby, Ontario - Canada
L1N 4S3

Toronto 416.642.7266
Main 1.866.411.7266
Fax 1.888.892.7266
Email p...@scom.ca

On 6/8/2022 6:41 PM, Jeremy Schaeffer wrote:
Ahhh, Ok, I did not know that and now that makes sense. I did not 
realize it held a open connection for each folder. I increased that and 
I will see what happens. I wonder if that will also effect the outlook 
issues. Thanks! - Jeremy


On 6/8/2022 14:28, Frank-Ulrich Sommer wrote:
I think if IMAP IDLE is used you need one connection per folder. If I 
remember correctly at least either Thunderbird or K9 Mail (I'm using 
both too) use one connection per selected directory. Simply increasing 
the number of connections was the easiest solution as I only have very 
few users too.


Regards
Frank

Am 8. Juni 2022 21:14:23 MESZ schrieb Jeremy Schaeffer 
:


I keep having this issue with one user, and I have to restart dovecot
several times a day to clear it. What I have is a postfix / dovecot mail
server (Centos 7) and about a dozen users. All mailboxes are imap ssl. I
monitor about 4 mailboxes on my computer and tablet. I use Thunderbird
on the computer (cache connections at 2) and K9 on the tablet, but one
user of the four I keep getting "Maximum number of connections from
user+IP exceeded" and I have the maximum at 50
"(mail_max_userip_connections=50)" so its hard for me to believe I am
actually exceeding it unless dovecot/client is not dropping connections
and keeps starting new ones until it reaches the maximum, but again,
only for one user, even though I am monitoring 4 on the same devices.
Any idea how to troubleshoot this? I don't know if I should be looking
at dovecot or the clients, or what I need to look for. It's been going
on since I put this server in use over a year ago. I also have issues
with Outlook clients disconnecting, just outlook, is there any
recommended settings to make Outlook work smoother?

Thanks! - Jeremy

Config -

# 2.2.36 (1f10bfa63): /etc/dovecot/dovecot.conf
# OS: Linux 3.10.0-1160.11.1.el7.x86_64 x86_64 CentOS Linux release
7.9.2009 (Core)
# Hostname: ***
auth_mechanisms = plain login
debug_log_path = /var/log/dovecot_debug.log
first_valid_gid = 500
last_valid_gid = 600
last_valid_uid = 600
listen = *
mail_location = maildir:~/Maildir
mbox_write_locks = fcntl
namespace inbox {
    inbox = yes
    location =
    mailbox Drafts {
      special_use = \Drafts
    }
    mailbox Junk {
      special_use = \Junk
    }
    mailbox Sent {
      special_use = \Sent
    }
    mailbox "Sent Messages" {
      special_use = \Sent
    }
    mailbox Trash {
      special_use = \Trash
  

Re: Replicator: Panic: data stack: Out of memory

2022-06-09 Thread Ivan Jurišić
Now is all ok, I put same configuration of Dovecot on primary and 
secondary server.


Dana 06.06.2022 14:14, Paul Kudla (SCOM.CA Internet Services Inc.) je 
napisao(la):



did you get this figured out / working

getting posts out of order - just wanted to make sure your ok?


Re: Issue with one user only, exceeding connections

2022-06-09 Thread Jeremy Schaeffer
That was the first thing I tried, I lowered the cache connections in 
Thunderbird. Actually the max connections was 50, not 500, but I could 
see why as I do have a lot of folders, but what is odd is I have other 
mailboxes that have even more folders, but it's only one mailbox that is 
trowing the error.


"# ps -axww | grep imap" does not give me the same results -

.

19897 ?    S  0:00 dovecot/imap
19900 ?    S  0:02 dovecot/imap
19901 ?    S  0:00 dovecot/imap
19902 ?    S  0:00 dovecot/imap
.

I wish it did give me the mailbox, is there a option to get it to give 
me that information?


Thanks! - Jeremy

On 6/9/2022 6:37, Paul Kudla (SCOM.CA Internet Services Inc.) wrote:


ok the idle connection per folder is a factor

however in thunderbird i believe it defaults to 2 simultanious 
connections


mine is set to 5

in thunderbird see

The solution is to reduce the maximum number of connections in 
Thunderbird. This can be done from Edit > Account Settings > Server 
Settings (under the mail account for which the setting should be 
modified) > Advanced > Maximum Number of server connections to cache.


I dont know of anything that would get it to 500?

as for outlook idle was not / is not supported past 2010 (if even 
that) you need to go into


file --> options --> advanced --> send/receive

all you can change in there is the timing which defaults to 30 
minutes, i recommend 3 or 5


I am unaware of how outlook handles physical connections (maybe 
registery?) and google revieled nothing, outlook since 2010 just does 
not support imap, microsofts way of forcing everyone onto exchange / 
outlook 365


377,000 hits last time i googled imap issues in outlook.

Best suggestion is to run

# ps -axww | grep imap
25500  -  S  0:00.57 imap: [p...@hiscomputer.ca 172.97.150.95 
IDLE] (imap)
25530  -  S  0:00.36 imap: [p...@hiscomputer.ca 172.97.150.95 
IDLE] (imap)
26014  -  I  0:00.39 imap: [rco...@tnky.ca 172.97.128.227 
IDLE] (imap)
26018  -  I  0:00.38 imap: [rco...@tnky.ca 172.97.128.227 
IDLE] (imap)
26210  -  I  0:00.07 imap: [spa...@scom.ca 99.238.154.160 
IDLE] (imap)
38911  -  S  0:00.17 imap: [marilynla...@scom.ca 
142.188.149.199 IDLE] (imap)
38912  -  S  0:00.13 imap: [marilynla...@scom.ca 
142.188.149.199 IDLE] (imap)
41306  -  S  0:00.73 imap: [ed.ha...@dssmgmt.com 204.237.48.37 
IDLE] (imap)
41312  -  S  0:00.63 imap: [ed.ha...@ekst.ca 204.237.48.37 
IDLE] (imap)
45232  -  I  0:00.23 imap: [rco...@tnky.ca 172.97.128.227 
IDLE] (imap)
55504  -  I  0:00.16 imap: [rco...@tnky.ca 172.97.128.227 
IDLE] (imap)


which shows all imap connections and from where

if you are overflowing 500+ connections then it has to show up here.


Happy Thursday !!!
Thanks - paul

Paul Kudla


Scom.ca Internet Services 
004-1009 Byron Street South
Whitby, Ontario - Canada
L1N 4S3

Toronto 416.642.7266
Main 1.866.411.7266
Fax 1.888.892.7266
Email p...@scom.ca

On 6/8/2022 6:41 PM, Jeremy Schaeffer wrote:
Ahhh, Ok, I did not know that and now that makes sense. I did not 
realize it held a open connection for each folder. I increased that 
and I will see what happens. I wonder if that will also effect the 
outlook issues. Thanks! - Jeremy


On 6/8/2022 14:28, Frank-Ulrich Sommer wrote:
I think if IMAP IDLE is used you need one connection per folder. If 
I remember correctly at least either Thunderbird or K9 Mail (I'm 
using both too) use one connection per selected directory. Simply 
increasing the number of connections was the easiest solution as I 
only have very few users too.


Regards
Frank

Am 8. Juni 2022 21:14:23 MESZ schrieb Jeremy Schaeffer 
:


    I keep having this issue with one user, and I have to restart 
dovecot
    several times a day to clear it. What I have is a postfix / 
dovecot mail
    server (Centos 7) and about a dozen users. All mailboxes are 
imap ssl. I
    monitor about 4 mailboxes on my computer and tablet. I use 
Thunderbird
    on the computer (cache connections at 2) and K9 on the tablet, 
but one

    user of the four I keep getting "Maximum number of connections from
    user+IP exceeded" and I have the maximum at 50
    "(mail_max_userip_connections=50)" so its hard for me to believe 
I am
    actually exceeding it unless dovecot/client is not dropping 
connections
    and keeps starting new ones until it reaches the maximum, but 
again,
    only for one user, even though I am monitoring 4 on the same 
devices.
    Any idea how to troubleshoot this? I don't know if I should be 
looking
    at dovecot or the clients, or what I need to look for. It's been 
going
    on since I put this server in use over a year ago. I also have 
issues

    with Outlook clients disconnecting, just outlook, is there any
    recommended settings to make Outlook work smoother?

    Thanks! - Jeremy

    Config -

    # 2.2.36 (1f10bfa63): /etc/dovecot/dovecot.conf

Re: Issue with one user only, exceeding connections

2022-06-09 Thread Richard



> Date: Thursday, June 09, 2022 10:46:25 -0500
> From: Jeremy Schaeffer 
>
> That was the first thing I tried, I lowered the cache connections
> in Thunderbird. Actually the max connections was 50, not 500, but I
> could see why as I do have a lot of folders, but what is odd is I
> have other mailboxes that have even more folders, but it's only one
> mailbox that is trowing the error.
> 
> "# ps -axww | grep imap" does not give me the same results -
> 
> .
> 
> 19897 ?    S  0:00 dovecot/imap
> 19900 ?    S  0:02 dovecot/imap
> 19901 ?    S  0:00 dovecot/imap
> 19902 ?    S  0:00 dovecot/imap
> .
> 
> I wish it did give me the mailbox, is there a option to get it to
> give me that information?

Try "auxw" on your "ps". I.e., add in the "u" which will get you the
user detail in the first column, otherwise you just get the process
id.






Re: Issue with one user only, exceeding connections

2022-06-09 Thread Jeremy Schaeffer
Thank you! That worked, I piped the output to a file, grep the username 
and sure enough there are 60 lines. So I guess going over 50 was a 
possibility.


Learn something new every day. I set the maximum to 100 so I should not 
have any errors on that anymore.


Thanks! - Jeremy

On 6/9/2022 10:59, Richard wrote:



Date: Thursday, June 09, 2022 10:46:25 -0500
From: Jeremy Schaeffer 

That was the first thing I tried, I lowered the cache connections
in Thunderbird. Actually the max connections was 50, not 500, but I
could see why as I do have a lot of folders, but what is odd is I
have other mailboxes that have even more folders, but it's only one
mailbox that is trowing the error.

"# ps -axww | grep imap" does not give me the same results -

.

19897 ?    S  0:00 dovecot/imap
19900 ?    S  0:02 dovecot/imap
19901 ?    S  0:00 dovecot/imap
19902 ?    S  0:00 dovecot/imap
.

I wish it did give me the mailbox, is there a option to get it to
give me that information?

Try "auxw" on your "ps". I.e., add in the "u" which will get you the
user detail in the first column, otherwise you just get the process
id.






Re: Issue with one user only, exceeding connections

2022-06-09 Thread Richard



> Date: Thursday, June 09, 2022 11:07:38 -0500
> From: Jeremy Schaeffer 
>
> On 6/9/2022 10:59, Richard wrote:
>> 
>>> Date: Thursday, June 09, 2022 10:46:25 -0500
>>> From: Jeremy Schaeffer 
>>> 
>>> That was the first thing I tried, I lowered the cache connections
>>> in Thunderbird. Actually the max connections was 50, not 500, but
>>> I could see why as I do have a lot of folders, but what is odd is
>>> I have other mailboxes that have even more folders, but it's only
>>> one mailbox that is trowing the error.
>>> 
>>> "# ps -axww | grep imap" does not give me the same results -
>>> 
>>> .
>>> 
>>> 19897 ?    S  0:00 dovecot/imap
>>> 19900 ?    S  0:02 dovecot/imap
>>> 19901 ?    S  0:00 dovecot/imap
>>> 19902 ?    S  0:00 dovecot/imap
>>> .
>>> 
>>> I wish it did give me the mailbox, is there a option to get it to
>>> give me that information?
>>
>> Try "auxw" on your "ps". I.e., add in the "u" which will get you
>> the user detail in the first column, otherwise you just get the
>> process id.
>> 
>> 
> Thank you! That worked, I piped the output to a file, grep the
> username and sure enough there are 60 lines. So I guess going over
> 50 was a possibility.
> 
> Learn something new every day. I set the maximum to 100 so I should
> not have any errors on that anymore.
> 
 
Rather than simply upping the limit I think a reasonable question to
ask is why/how they are managing to do that. That's a lot of open
folders.
 
By the way, the single command:
 
 ps auxw | grep imap | cut -d" " -f1 | sort | uniq -c
 
will get you a nice list with the users and their connection counts.
 
 



Re: Issue with one user only, exceeding connections

2022-06-09 Thread Larry Rosenman
doveadm who
and
doveadm kick
are useful too :)

On Thu, Jun 9, 2022 at 11:29 AM Richard <
inbound-dove...@listmail.innovate.net> wrote:

>
>
> > Date: Thursday, June 09, 2022 11:07:38 -0500
> > From: Jeremy Schaeffer 
> >
> > On 6/9/2022 10:59, Richard wrote:
> >>
> >>> Date: Thursday, June 09, 2022 10:46:25 -0500
> >>> From: Jeremy Schaeffer 
> >>>
> >>> That was the first thing I tried, I lowered the cache connections
> >>> in Thunderbird. Actually the max connections was 50, not 500, but
> >>> I could see why as I do have a lot of folders, but what is odd is
> >>> I have other mailboxes that have even more folders, but it's only
> >>> one mailbox that is trowing the error.
> >>>
> >>> "# ps -axww | grep imap" does not give me the same results -
> >>>
> >>> .
> >>>
> >>> 19897 ?S  0:00 dovecot/imap
> >>> 19900 ?S  0:02 dovecot/imap
> >>> 19901 ?S  0:00 dovecot/imap
> >>> 19902 ?S  0:00 dovecot/imap
> >>> .
> >>>
> >>> I wish it did give me the mailbox, is there a option to get it to
> >>> give me that information?
> >>
> >> Try "auxw" on your "ps". I.e., add in the "u" which will get you
> >> the user detail in the first column, otherwise you just get the
> >> process id.
> >>
> >>
> > Thank you! That worked, I piped the output to a file, grep the
> > username and sure enough there are 60 lines. So I guess going over
> > 50 was a possibility.
> >
> > Learn something new every day. I set the maximum to 100 so I should
> > not have any errors on that anymore.
> >
>
> Rather than simply upping the limit I think a reasonable question to
> ask is why/how they are managing to do that. That's a lot of open
> folders.
>
> By the way, the single command:
>
>  ps auxw | grep imap | cut -d" " -f1 | sort | uniq -c
>
> will get you a nice list with the users and their connection counts.
>
>
>
>

-- 
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 214-642-9640 (c) E-Mail: larry...@gmail.com
US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106


Re: Issue with one user only, exceeding connections

2022-06-09 Thread Jeremy Schaeffer

Thanks for the command, that is very useful.

That user is actually me, I know why where are so many open. I have my 
computer, and two tablets, and since I am using server side filtering 
(procmail) I have to set watch on all the folders that are filtered to 
or I miss a email. But I am doing the same for about 4 other users 
accounts I also monitor, so I am not sure why it's just my username that 
is doing that. I am going to shut down all the clients one at a time and 
see what client is opening all those connections.


Once I close the client, I assume the connection should also close and 
the count go down, correct?


I turned off both tablets and the connection count for my username still 
is at 60, since I am writing this email with my computer client I will 
send it and close my client and see what happens. Thanks! - Jeremy


On 6/9/2022 11:29, Richard wrote:



Date: Thursday, June 09, 2022 11:07:38 -0500
From: Jeremy Schaeffer 

On 6/9/2022 10:59, Richard wrote:

Date: Thursday, June 09, 2022 10:46:25 -0500
From: Jeremy Schaeffer 

That was the first thing I tried, I lowered the cache connections
in Thunderbird. Actually the max connections was 50, not 500, but
I could see why as I do have a lot of folders, but what is odd is
I have other mailboxes that have even more folders, but it's only
one mailbox that is trowing the error.

"# ps -axww | grep imap" does not give me the same results -

.

19897 ?    S  0:00 dovecot/imap
19900 ?    S  0:02 dovecot/imap
19901 ?    S  0:00 dovecot/imap
19902 ?    S  0:00 dovecot/imap
.

I wish it did give me the mailbox, is there a option to get it to
give me that information?

Try "auxw" on your "ps". I.e., add in the "u" which will get you
the user detail in the first column, otherwise you just get the
process id.



Thank you! That worked, I piped the output to a file, grep the
username and sure enough there are 60 lines. So I guess going over
50 was a possibility.

Learn something new every day. I set the maximum to 100 so I should
not have any errors on that anymore.

  
Rather than simply upping the limit I think a reasonable question to

ask is why/how they are managing to do that. That's a lot of open
folders.
  
By the way, the single command:
  
  ps auxw | grep imap | cut -d" " -f1 | sort | uniq -c
  
will get you a nice list with the users and their connection counts.
  
  
  



Re: Issue with one user only, exceeding connections

2022-06-09 Thread Jeremy Schaeffer
Ok, more information. I closed all my clients and checked the connection 
count. It was still at 57, so I cleared the user with "doveadm kick", 
count was then 0. I launched Thunderbird again and the count went to 16, 
then started my tablet and it when to 3.


I am thinking I still have a issue as why when I closed all the clients 
I still had 57 threads/connections open, and after Thunderbird settled 
down it dropped its connections to 3, but over time that connection 
count rises.


In the 5 min while writing this the connections jumped to 30.

I turned off Wifi on my tablet so the client would use a different IP, 
the connection list went to 41


Now it went back to 59 open connections. I turned my tablet back off, 
its staying at 59. I kicked the user again. I am going to keep my tablet 
off, maybe it's the one causing this.


Is there a way to find more information about what is going on in one of 
the pids? It would seem like one of the clients is opening up a 
connection and for some reason its not dropping and it keeps just 
opening up new ones, but there are no errors in the log files. Once I 
turn off the client the connections are not clearing.


 - Jeremy

On 6/9/2022 11:44, Jeremy Schaeffer wrote:

Thanks for the command, that is very useful.

That user is actually me, I know why where are so many open. I have my 
computer, and two tablets, and since I am using server side filtering 
(procmail) I have to set watch on all the folders that are filtered to 
or I miss a email. But I am doing the same for about 4 other users 
accounts I also monitor, so I am not sure why it's just my username 
that is doing that. I am going to shut down all the clients one at a 
time and see what client is opening all those connections.


Once I close the client, I assume the connection should also close and 
the count go down, correct?


I turned off both tablets and the connection count for my username 
still is at 60, since I am writing this email with my computer client 
I will send it and close my client and see what happens. Thanks! - Jeremy


On 6/9/2022 11:29, Richard wrote:



Date: Thursday, June 09, 2022 11:07:38 -0500
From: Jeremy Schaeffer 

On 6/9/2022 10:59, Richard wrote:

Date: Thursday, June 09, 2022 10:46:25 -0500
From: Jeremy Schaeffer 

That was the first thing I tried, I lowered the cache connections
in Thunderbird. Actually the max connections was 50, not 500, but
I could see why as I do have a lot of folders, but what is odd is
I have other mailboxes that have even more folders, but it's only
one mailbox that is trowing the error.

"# ps -axww | grep imap" does not give me the same results -

.

19897 ?    S  0:00 dovecot/imap
19900 ?    S  0:02 dovecot/imap
19901 ?    S  0:00 dovecot/imap
19902 ?    S  0:00 dovecot/imap
.

I wish it did give me the mailbox, is there a option to get it to
give me that information?

Try "auxw" on your "ps". I.e., add in the "u" which will get you
the user detail in the first column, otherwise you just get the
process id.



Thank you! That worked, I piped the output to a file, grep the
username and sure enough there are 60 lines. So I guess going over
50 was a possibility.

Learn something new every day. I set the maximum to 100 so I should
not have any errors on that anymore.


  Rather than simply upping the limit I think a reasonable question to
ask is why/how they are managing to do that. That's a lot of open
folders.
  By the way, the single command:
    ps auxw | grep imap | cut -d" " -f1 | sort | uniq -c
  will get you a nice list with the users and their connection counts.





Re: Issue with one user only, exceeding connections

2022-06-09 Thread John Stoffel
> "Jeremy" == Jeremy Schaeffer  writes:

Jeremy> Thanks for the command, that is very useful.  That user is
Jeremy> actually me, I know why where are so many open. I have my
Jeremy> computer, and two tablets, and since I am using server side
Jeremy> filtering (procmail) I have to set watch on all the folders
Jeremy> that are filtered to or I miss a email. But I am doing the
Jeremy> same for about 4 other users accounts I also monitor, so I am
Jeremy> not sure why it's just my username that is doing that. I am
Jeremy> going to shut down all the clients one at a time and see what
Jeremy> client is opening all those connections.

I too used to use procmail, but it's old and un-maintained and it's
not a great solution any more.  Instead just setup Sieve and you can
manage it remotely.  I personally do it from a makefile which does all
the steps needed, and I just edit the file in emacs as needed.

I can give you a copy of my makefile if that will help.


Jeremy> Once I close the client, I assume the connection should also close and 
Jeremy> the count go down, correct?

Jeremy> I turned off both tablets and the connection count for my username 
still 
Jeremy> is at 60, since I am writing this email with my computer client I will 
Jeremy> send it and close my client and see what happens. Thanks! - Jeremy

Jeremy> On 6/9/2022 11:29, Richard wrote:
>> 
>>> Date: Thursday, June 09, 2022 11:07:38 -0500
>>> From: Jeremy Schaeffer 
>>> 
>>> On 6/9/2022 10:59, Richard wrote:
> Date: Thursday, June 09, 2022 10:46:25 -0500
> From: Jeremy Schaeffer 
> 
> That was the first thing I tried, I lowered the cache connections
> in Thunderbird. Actually the max connections was 50, not 500, but
> I could see why as I do have a lot of folders, but what is odd is
> I have other mailboxes that have even more folders, but it's only
> one mailbox that is trowing the error.
> 
> "# ps -axww | grep imap" does not give me the same results -
> 
> .
> 
> 19897 ?    S  0:00 dovecot/imap
> 19900 ?    S  0:02 dovecot/imap
> 19901 ?    S  0:00 dovecot/imap
> 19902 ?    S  0:00 dovecot/imap
> .
> 
> I wish it did give me the mailbox, is there a option to get it to
> give me that information?
 Try "auxw" on your "ps". I.e., add in the "u" which will get you
 the user detail in the first column, otherwise you just get the
 process id.
 
 
>>> Thank you! That worked, I piped the output to a file, grep the
>>> username and sure enough there are 60 lines. So I guess going over
>>> 50 was a possibility.
>>> 
>>> Learn something new every day. I set the maximum to 100 so I should
>>> not have any errors on that anymore.
>>> 
>> 
>> Rather than simply upping the limit I think a reasonable question to
>> ask is why/how they are managing to do that. That's a lot of open
>> folders.
>> 
>> By the way, the single command:
>> 
>> ps auxw | grep imap | cut -d" " -f1 | sort | uniq -c
>> 
>> will get you a nice list with the users and their connection counts.
>> 
>> 
>> 
>> 


Re: dovecot Digest, Vol 230, Issue 21

2022-06-09 Thread Joseph Tam
On Thu, 9 Jun 2022, Richard wrote:


> Rather than simply upping the limit I think a reasonable question to

> ask is why/how they are managing to do that. That's a lot of open

> folders.


If this mail client behaves anything like Apple mail clients, these

connection storms can come about when doing global searches.  The mail

clients will march through each mailbox (opening a connection for each

mailbox) looking for a pattern.


If you can narrow this scenario for one specific user (e.g. $user), you

can deep dive what's going on by enabling IMAP session logs for this user


protocol imap {

...

rawlog_dir = /log/dir/%u

}


then


(Make sure this user has write permissions into this directory)

mkdir /log/dir/$user


After you're done, you can disable logging,


rm -rf /log/dir/$user


Joseph Tam