"Jeremy" == Jeremy Schaeffer <kb9mfd@phonesplus.biz> 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 <kb9mfd@phonesplus.biz>
On 6/9/2022 10:59, Richard wrote:
Date: Thursday, June 09, 2022 10:46:25 -0500 From: Jeremy Schaeffer <kb9mfd@phonesplus.biz>
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.