Unable to connect to your IMAP server. You may have exceeded the maximum number of connections to this server.
Categories
(MailNews Core :: Networking: IMAP, defect)
Tracking
(thunderbird_esr115 affected, thunderbird122 wontfix)
People
(Reporter: jimpeterson212, Assigned: gds)
References
Details
Attachments
(1 file, 1 obsolete file)
Comment 1•15 years ago
|
||
Reporter | ||
Comment 2•15 years ago
|
||
Reporter | ||
Comment 3•15 years ago
|
||
Comment 4•15 years ago
|
||
Reporter | ||
Comment 5•15 years ago
|
||
Comment 6•15 years ago
|
||
Reporter | ||
Comment 7•15 years ago
|
||
Reporter | ||
Comment 8•15 years ago
|
||
Comment 9•15 years ago
|
||
Reporter | ||
Comment 10•15 years ago
|
||
Comment 11•15 years ago
|
||
Reporter | ||
Comment 12•15 years ago
|
||
Comment 13•15 years ago
|
||
Comment 14•15 years ago
|
||
Comment 15•15 years ago
|
||
Comment 16•15 years ago
|
||
Comment 17•15 years ago
|
||
Comment 18•15 years ago
|
||
Comment 19•15 years ago
|
||
Updated•14 years ago
|
Updated•12 years ago
|
Updated•11 years ago
|
Comment 20•11 years ago
|
||
Comment 21•10 years ago
|
||
Comment 22•9 years ago
|
||
Comment 23•9 years ago
|
||
Comment 24•9 years ago
|
||
Comment 25•9 years ago
|
||
Comment 26•9 years ago
|
||
Comment 27•9 years ago
|
||
Comment 28•9 years ago
|
||
Comment 29•9 years ago
|
||
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Comment 32•9 years ago
|
||
Comment 33•9 years ago
|
||
Comment 34•9 years ago
|
||
Comment 35•9 years ago
|
||
Comment 36•9 years ago
|
||
Comment 37•8 years ago
|
||
Comment 38•8 years ago
|
||
Comment 39•8 years ago
|
||
Comment 40•7 years ago
|
||
Comment 41•7 years ago
|
||
Comment 42•6 years ago
|
||
This comment is inconclusive. Perhaps it will help someone figure out what the trouble is.
For years Thunderbird (Win 7 Pro 64 bit) has been frequently hanging when I click on a new message line, when normally it displays the message within a second or two. I thought the problem was due to high latency between Thunderbird .au) and the server (.de). When I made the new server (again Courier IMAP) very close (100km) this greatly reduced the time it takes to display messages when the system is working, but had no impact on problem of interminably "Downloading message". This is TB 60.6.1 (32 Bit), with Courier IMAPD 4.17.2+0.76.3-5+deb9u1 installed with apt-get.
Account Settings > Server Settings > Connection security = None; Authentication method = Password, transmitted insecurely.
Account Settings > Server Settings > Server Settings > Advanced > Show only subscribed folders is Off.
I tried a somewhat older (2.49.1 2017-10-16) SeaMonkey and the outcome was much the same. This and related faults with error text quoted below [1] are clearly extremely flaky, hard to reproduce consistently and so very difficult or impossible to resolve through changing settings. Even a large reduction in the incidence of the problems, such as 50%, is difficult or impossible to measure.
MailBird and Sylpheed exhibited no such problems.
I found the Comment 15 description of TCP error states persisting for minutes on the server to be a reasonable explanation for some of the behavioural flakiness.
I found Hans-Georg Michna's Comment 39 to be particularly helpful, since it indicates that Thunderbird is opening far more IMAP sessions than the number in Tools > Account Settings (particular account > Server Settings> Server Settings > Advanced > Maximum number of server connections tocache.
There is surely room for improvement in how this setting is named (bug 315713). It would make no obvious sense to me for TB to open more sessions than were cached. So while I have no cl ear idea of what caching would mean in an IMAP session, my best guess was that the setting actually provided some upper limit for the number of IMAP sessions TB would open with any given server, at least for a given account.
I am using the latest Courier IMAPD, via a Debian package, on a small (1 vCPU, 1GB RAM) Azure VM. htop indicates that it is never working hard due to IMAP processes, including with the settings mentioned below.
My only change to /etc/courier/imapd was to change ADDRESS from 0 to 0.0.0.0. I read somewhere that this forces it to work only on IPv4, which is what I want - and I needed to do this to get it to work at all for me.
There are multiple machines here with TB, all going out via the same public IP address. Each TB instance has multiple accounts, three of which are on the same server. One account has 100+ folders.
Inspired by I changed the server settings (/etc/courier/imapd):
MAXDAEMONS=100 (was 40)
MAXPERIP=100 (was 20)
This did not fix the problem.
I changed "Account Settings > Server Settings > Server Settings > Advanced > Maximum number of server connections to cache (hereafter MaxCache) from 5 (default) to 1 (frequently recommended in discussions of this problem), but this was not decisive in preventing the hanging problem. TB did hang while trying to get a message and in this state I tried to save a draft, which failed after some time. Changing MaxCache to 3 enabled the draft to be saved, and I think TB was still hanging on that message.
I changed to STARTTLS Normal password and the problem still occurred: After 5 or 10 minutes inactivity, click on a message in a large (29k) mailing list folder and the message window remains blank, or on the previously displayed message, for tens of seconds at least. Yet click on an adjacent message and that immediately displays. Click back to the first message and it immediately displays too.
I changed to SSL/TLS Normal password and disabled Trend Micro's Device > Security settings > Internet and email control > Network > Activate the firewall booster. (The two items in "Spam and emailed files" were disabled.) I also cleared the files and directories from Thunderbird's profile directory ImapMail directory.
No trouble yet.
Of potential interest is https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=364450 from 2006 "courier-imap-ssl: TLS/SSL session caching conflicts with widespread MUAs", which refers to bug 333661. However, perhaps this session caching bug was fixed in 2007-08: https://fossies.org/linux/courier/libs/imap/ChangeLog
I got Thunderbird to write an IMAP log: https://wiki.mozilla.org/MailNews:Logging#Windows .
I used the program quite a bit, with no trouble.
I opened a big mailing list folder, left the program untouched for about seveal minutes, and clicked at random on a message. Sure enough: "Downloading message" for more than a minute. I copied the 108MB log file at this point and took another copy a few minutes later, during which I clicked on the next message, to have that hang as well, then the next, which loaded quickly. Then I was able to load the first two quickly as well.
I know nothing about IMAP or these log files, but it seems strange to me that TB apparently fired off 3074 commands, one for each message in the folder, in 73 milliseconds. Each one is represented by a pair of lines such as:
2019-04-07 11:27:48.639000 UTC - [5680:Unnamed thread 1CBC26D0]: D/IMAP ReadNextLine [stream=0AEF4920 nb=39 needmore=0]
2019-04-07 11:27:48.639000 UTC - [5680:Unnamed thread 1CBC26D0]: I/IMAP 24C24800:ns1.firstpr.com.au:S-INBOX.Lists.LeCroy:CreateNewLineFromSocket: * 3074 FETCH (UID 4915 FLAGS (\Seen))
My connection to the Net is NBN FTTC running at 31MBps upstream. It could handle 2.2k bits in this time, so these 3074 commands or whatever to the IMAP server could not have been sent in this timeframe.
I eyeballed the prior log lines, from before the time when I noticed any trouble, and there were several such instances of thousands of such requests in tens of milliseconds, evidently all resulting from me opening a large mailing list folder. So perhaps this is nothing unusual.
This log file is too big to post here and contains list message text which should not be public. I can make a compressed
version of it available to anyone who needs it.
Assignee | ||
Comment 43•6 years ago
|
||
Robin, Not sure that I understand all of your comment but it sounds sort of like this: Bug 1428097. The reporter of that bug also had a large mailing list folder that took a long time to access. There's a lot of discussion there but it resulted a a patch to allow use of the CONDSTORE capability that is normally disabled. It can be enabled using the Config Editor: set mail.server.default.use_condstore to true.
However, this CONDSTORE fix is not yet in the release and is only in the beta release so you will need to use the latest tb beta for the fix to have an effect.
Without CONDSTORE, tb has to fetch the "flags" for every message in a folder to know the status of of each message that may have been changed by another client. That's what the many line you see in the log saying CreateNewLineFromSocket: * 3074 FETCH (UID 4915 FLAGS (\Seen))
mean.
Also, are you seeing an error about too many connection to the server which is the subject of this bug? If not, we should probably fork your comment into a new tb bug report.
Assignee | ||
Comment 44•6 years ago
|
||
I should also ask if the "slow" folders are configured to have local offline storage (default) or possibly are you only storing the headers locally? If you have disabled local storage, each message access will fetch (download) the message from the server when it is first accessed instead of just getting it from a local file.
Comment 45•6 years ago
|
||
Gene, thanks for your responses. I spent several hours on this to no great effect and can't devote more time to it at present.
Tools > Account Settings (particular account) > Syncronization & Storage > Keep messages in all folders for this account on this computer is not enabled.
My understanding of bug 1428097 is that this is enabled, and the OP's problem is that he can't read any messages, which are presumably locally stored, while TB is synchronizing to a large folder. His folders are bigger than mine and my problem is that I can click on the line for message A, and have TB hang indefinitely, whereupon I can click the line for message B one below, or anywhere else in the folder, (usually, since the bug might appear for B too) have B display fine in a fraction of a second. Then, I can click the line for A and (usually) have it display the message instantly as well.
I just opened a mailing list folder with 5k messages and TB took a minute or so "Downloading message header nnnn ...", which is fine. It displays a line for each message it has the headers for, and while it is downloading more headers, I can click one of these lines and (usually) see the message within a fraction of a second. The problem is that sometimes, that message display operation hangs apparently indefinitely - at least an hour in one instance, without any error message.
I think what I am describing may not belong with this bug. My earlier mention of an error message, which I intended to quote, was for the message mentioned in the intial report of this bug. I was seeing this with an earlier version of SeaMonkey but I haven't seen it in my recent Thunderbird 60.6.1 tests.
Should I continue to try to characterise this problem with 60.6.1 or should I try installing a nightly, or some other version?
Comment 46•6 years ago
|
||
In my case K9-Mail from Android was causing too many connections, so that Seamonkey was affected.
So it is not necesarly Thunderbird to blame, but if you cannot ask your mail provider you could check with TCPview on windows to figure out how many connections TB established.
Comment 47•6 years ago
|
||
I still have problems with Thunderbird hanging interminably when I try to open a message A from a large mailbox, especially if this is the first action with the program for 5 or more minutes, with the folder headers already read. (As noted above, I am not storing messages locally in TB.) I can click an adjacent message B and it usually appears instantly. Then I click A, which has been stalled for minutes, and A usually appears instantly. However, the error message quoted at the start of this bug does not appear, so what I am observing may belong with some other, bug or a new one.
The fact that TB doesn't work properly for me when other email clients did does not necessarily mean that there is something wrong with TB or its configuration, since the other clients I tested were not opening as many accounts with the server as my 4 account TB client, and they may not open as many IMAP sessions per account.
At least some of my difficulties were probably caused by two pairs of courierlogger and couriertcpd running on the server, an earlier set with earlier (default imapd config file "-maxprocs=40 -maxperip=20") settings. The pair I did not notice until now had earlier PIDs and were probably started a day or two before I wrote my messages above. I guess they were operating while the more recent pair were not, so my attempts at changing settings were not affecting the behaviour of the entire server.
I had been getting multiple errors, associated with the timeout problems mentioned above, in /var/log/mail-err for imapd (no security and STARTTLS) and for imapd-ssl (later when I tried SSL/TLS with some success): "Maximum connection limit reached for (... TB's public IP address)". I rebooted the server, closed the 3 instances of TB here (two with 1 account on the server and one with 4), deleted their IMAP cache files/directories and restarted them all with STARTTLS, since I couldn't get them to work with SSL/TLS. (These TB instances all appear to the server via NAT on the one public IP address.)
The server's /etc/courier/imapd still has my MAXDAEMONS=100 (default was 40) and MAXPERIP=100 (20). Using htop and filtering with "courier" I can see the command lines for courierlogger and couriertcpd both have "-maxprocs=100 -maxperip=100".
Now there are no "Maximum connection limit reached" errors in mail.err, though there are occasional "/etc/courier/shared/index: Permission denied." errors relating to some obscure permissions problem in the server. AFAIK these only occur at TB startup and are not related to the continuing problems with interminable delays loading messages.
With "netstat netstat -n | grep :143" I see there are 23 to 25 IMAP sessions in progress with the public IP address of these TB instances, thought in htop I only see 14 or so "/usr/bin/imapd Maildir" processes.
Before I rebooted the server, I was getting the first mentioned error messages with SSL, when netstat was showing 19 or 20 993 processes. So I guess my earlier problems were caused by hitting the limit of 20, which was the default setting and with which the first pair of courierlogger and couriertcpd were running.
I was hoping to report no problems, but the delays are quite common, especially if I haven't clicked on a message in the folder for 10 minutes or so. I am not sure if the size of the folder matters.
I again deleted the IMAP caches of the 4 account TB instance and restarted it. Using netstat on the server I could see more IMAP sessions appearing according to how many TB windows I opened, each looking at a different folder in any of the accounts. I got up to 31 sessions with 5 TB windows. I opened up a total of 16 windows for different folders and viewed a message in most of them. Still there were 30 or 31 sessions. (The 1 vCPU 1GB VM didn't seem overly burdened by these, even when loading all the headers, since CPU usage was generally less than 30% and ~40% of RAM was green, with no swap activity.)
All these TB account settings now have the default 5 for number of server connections to cache. I cleared the cache dirs/files and started TB again. The problem still occurs. The workaround is to click another message and then click the first one again, so it an inconvenience - not a major problem.
With 4 windows, one for each account, Tcpview reports 6 TCP port 143 connections to the server - the same as with one window.
There is a less frequently discussed option "-maxperc" for number of connections per Class C (256 IPv4 addresses) in couriertcpd: https://www.courier-mta.org/couriertcpd.html . There is no matching MAXPERC setting in the original imapd or imapd-ssl files and I don't know what its default value is, or whether it overrides the -maxperip value. I mention this in case it helps someone else solve similar problems. In 2005 https://courier-users.narkive.com/HPhYgF8b/what-is-max-value-of-maxperc-and-maxperip Sam Varshavchik (Courier author) warns about setting MAXPERIP, MAXPERC and the absolute limit of MAXDAEMONS too high, due to the possibility of DOS attacks.
Should I try a nightly or some other version?
Assignee | ||
Comment 48•6 years ago
|
||
Robin, Thanks for the information. However, I really don't know much about Courier setup or configuration so probably can't help with that.
You do mention a few times that you "cleared tb's cache files". Which files exactly did you clear or delete? Maybe you are referring to the files under your profile in ImapMail called <mailboxname>.msf? Also, in "Advanced" settings there is a button to click that will clear your memory cache for recently accessed emails that don't have offline storage (which you say you don't).
Maybe an IMAP:5 log file would help. However, maybe a better way would be for you to provide me with a temporary test account on your courier server with a mailbox that contains problem messages and I might try to duplicate what you see from here. Would this be possible?
I currently can access a Courier imap server test account but I've not noticed any problems like you describe. But that account is rarely used and only has a few random test messages in it. I have no idea how it is configured. I think it is somewhere in Europe.
Assignee | ||
Comment 49•6 years ago
|
||
Should I try a nightly or some other version?
I don't think that would help since no recent changes address your problem specifically (or tangentially). My guess is that tb needs to make a connection but all have been used at the imap server for the NAT address since you have several hosts running tb. If you ensure only one host is running when you do your test is there a problem?
You may have already considered this and it doesn't seem to explain why when you click to another message and then go back to the original problems message that it comes right in.
Assignee | ||
Comment 50•6 years ago
|
||
Robin, There is one change that should be in daily build that there is a remote possibility that it might fix your problem:
Bug 1535969
This adds a tcp keepalive feature to the imap connections. If the connection to a mailbox is dropped for some reason and tb doesn't know about it, tb may wait up to 100s before it re-connects to the mailbox. So, without this fix, you may see the "spinner" for 100s after accessing a folder before tb makes the connection. With the tcp keepalive, this 100s delay may be eliminated and the connection occurs quicker after being lost when the folder is accessed. So if you could try this it might help. It's only in daily AFAIK.
Comment 51•6 years ago
|
||
My best guess is that my problems result from an interaction between TB without the new keepalives and something in the Azure firewall. I am abandoning the Azure VM in favour of a Digital Ocean one.
Can anyone tell me precisely what the setting "Maximum number of server connections to cache" does? The number cached might be less than the number opened to any one IMAP server. Does this limit apply per IMAP server or per account within TB? I have multiple accounts all on the one IMAP server. Does it really set a limit to the number of connections? If not, what does?
More tiresome details follow: I spent several hours with two Windows 32 bit Thunderbird daily/nightly installers, of 11th and 12th April: https://archive.mozilla.org/pub/thunderbird/nightly/latest-comm-central/ thunderbird-68.0a1.en-US.win32.installer.exe Both were difficult to use due to many tick boxes not visibly changing state until the dialogue was reloaded or at least until after a long delay, and due to the program freezing before I could do any useful tests.
WiFi and cabled Ethernet produce the same observations and I changed to a second VDSL router made by a completely different company. I think that tunneling the Windows PC's Internet access to a VPN provider also resulted in the same misbehaviour.
The best way to reproduce the behaviour seems to be to open multiple windows, each for a different folder, and leave TB untouched for 5 or more minutes. Then click on an email line. The misbehaviour is: at the bottom (status bar) a message appears for ~~22 seconds: "Loading message". Then there may be some other text there for a moment, followed by an interminable period of "[email address]: Downloading message". Then, clicking on another message usually works and clicking on the first one then usually works, in both cases with a fraction of a second delay if the message is short.
I was able to run a Linux daily: thunderbird-68.0a1.en-US.linux-x86_64.tar.bz2 68.0a1 (2019-04-12) (64-bit) on a local machine, presumably with the Bug 1535969 keepalive patch, also behind the VDSL router's NAT. With all the same settings, I observed no misbehaviour with the Azure IMAP server.
On my Windows machine I ran a VirtualBox VM which has a complete Linux system with a ca. 2013 4.15-1.6 Courier IMAP server with the default settings (MAXDAEMONS=40, MAXPERIP=20), and a bunch of archival mailing list folders. I fired up 6 TB windows each looking into a different folder. There was no misbehaviour at all, while the same instance of TB was frequently stalling on many attempts to read or save messages on the Azure server.
Gene had no trouble using a test account I made on the Azure server, but I am not sure what version of TB he was using on his Chromebook, or how patient he was trying to elicit the misbehaviour.
I made a Digital Ocean VM (1 vCPU, 1GB RAM) in Singapore and installed Postfix, Courier IMAPD and the requisite gamin library. I configured Courier IMAPD identically to how the Azure server is set up. Despite a lot of effort, I have not observed any misbehaviour with my original 60.6.1 Windows TB.
I wish I could find a Windows daily which worked long enough to test. That might be able to establish whether the recent Bug 1535969 keepalive patch makes a difference. I think it is a very good idea.
My best guess is that without the keepalive, TB is disrupted by some aspect of Azure's firewall. This is controlled by a bunch of settings in the Web console. It is not something runs in the VM itself. I only chose the Azure VM because it was physically close. Normally I avoid MS things as much as possible possible due to a long history of fancy features which are not robust. If the Azure firewall is not playing nice with Thunderbird, then this would be consistent with the Azure representative, who wrote to me offering to help with my new account, responding in totally generic terms to my nice reply about why I chose their server. Scrutinising her signature later I found the word "Automated" in front of "Solution Assistant". She was a bot - and not a very good one.
Assignee | ||
Comment 52•6 years ago
|
||
(In reply to Robin Whittle from comment #51)
My best guess is that my problems result from an interaction between TB without the new keepalives and something in the Azure firewall. I am abandoning the Azure VM in favour of a Digital Ocean one.
Has this change taken effect on the test account you provided me? When I click on a message in the one subscribed mailing list folder "Analogue Heaven", nothing comes in and all I see in the status is "gene@mx1.firstpr.com.au: Checking mail server capabilites". Moving to another message and then back doesn't help. I can still see the messages in Inbox.
Can anyone tell me precisely what the setting "Maximum number of server connections to cache" does? The number cached might be less than the number opened to any one IMAP server. Does this limit apply per IMAP server or per account within TB? I have multiple accounts all on the one IMAP server. Does it really set a limit to the number of connections? If not, what does?
It is the maximum number of connections per account with default of 5. If you only click on Inbox after starting tb you will typically only have 1 imap connection to Inbox. If you click on other folders, you will get a new connection until you have clicked on up to 4 more so you have 5 connection with 1 always selected on Inbox and the other 4 being on the most recent 4 folders. This is supposed to allow immediate notification of new mail in the selected (connected) folders when the imap IDLE feature is available on the server and you have immediate notification enabled in tb server setup page.
If new mail is only delivered to Inbox then 2 connection is probably OK. With just one connection, Inbox gets un-selected when you go to another folder so you won't be immediately notified of new main in Inbox until you click on it again. (You will still be notified when the "check for new mail" time arrives.) With 2 connection, Inbox is always selected even when you click another folder so you will be immediately notified of new mail in Inbox.
More tiresome details follow: I spent several hours with two Windows 32 bit Thunderbird daily/nightly installers, of 11th and 12th April: https://archive.mozilla.org/pub/thunderbird/nightly/latest-comm-central/ thunderbird-68.0a1.en-US.win32.installer.exe Both were difficult to use due to many tick boxes not visibly changing state until the dialogue was reloaded or at least until after a long delay, and due to the program freezing before I could do any useful tests.
That's probably due to mozilla framework integration that Jorg is always trying to keep working.
WiFi and cabled Ethernet produce the same observations and I changed to a second VDSL router made by a completely different company. I think that tunneling the Windows PC's Internet access to a VPN provider also resulted in the same misbehaviour.
The best way to reproduce the behaviour seems to be to open multiple windows, each for a different folder, and leave TB untouched for 5 or more minutes. Then click on an email line. The misbehaviour is: at the bottom (status bar) a message appears for ~~22 seconds: "Loading message". Then there may be some other text there for a moment, followed by an interminable period of "[email address]: Downloading message". Then, clicking on another message usually works and clicking on the first one then usually works, in both cases with a fraction of a second delay if the message is short.
The other day, my connection to your test account worked fine. Now not so good. See above.
If the problem is a dropped connection that tb was not informed of, when you click on the message and you don't see a response, just wait about 100s (1m 40s) and tb should then timeout and re-establish the connection and the message should come in. If the message never comes in even after >100s, then probably not something the keepalive will help (but I could be wrong, maybe it would).
I was able to run a Linux daily: thunderbird-68.0a1.en-US.linux-x86_64.tar.bz2 68.0a1 (2019-04-12) (64-bit) on a local machine, presumably with the Bug 1535969 keepalive patch, also behind the VDSL router's NAT. With all the same settings, I observed no misbehaviour with the Azure IMAP server.
On my Windows machine I ran a VirtualBox VM which has a complete Linux system with a ca. 2013 4.15-1.6 Courier IMAP server with the default settings (MAXDAEMONS=40, MAXPERIP=20), and a bunch of archival mailing list folders. I fired up 6 TB windows each looking into a different folder. There was no misbehaviour at all, while the same instance of TB was frequently stalling on many attempts to read or save messages on the Azure server.
Gene had no trouble using a test account I made on the Azure server, but I am not sure what version of TB he was using on his Chromebook, or how patient he was trying to elicit the misbehaviour.
Sorry, forgot to mention that I am running tb 60.4 on the chromebook (chroot jail with the chrome-os linux kernel -- crouton kubuntu). I did quite a bit of testing but didn't do the multiple tb windows you mention. I haven't tried your account on a "real" computer. So not testing with the new keepalives. I've got 5 tb windows now, but unfortunately, something is wrong when I access your account.
I made a Digital Ocean VM (1 vCPU, 1GB RAM) in Singapore and installed Postfix, Courier IMAPD and the requisite gamin library. I configured Courier IMAPD identically to how the Azure server is set up. Despite a lot of effort, I have not observed any misbehaviour with my original 60.6.1 Windows TB.
I wish I could find a Windows daily which worked long enough to test. That might be able to establish whether the recent Bug 1535969 keepalive patch makes a difference. I think it is a very good idea.
My best guess is that without the keepalive, TB is disrupted by some aspect of Azure's firewall. This is controlled by a bunch of settings in the Web console. It is not something runs in the VM itself. I only chose the Azure VM because it was physically close. Normally I avoid MS things as much as possible possible due to a long history of fancy features which are not robust. If the Azure firewall is not playing nice with Thunderbird, then this would be consistent with the Azure representative, who wrote to me offering to help with my new account, responding in totally generic terms to my nice reply about why I chose their server. Scrutinising her signature later I found the word "Automated" in front of "Solution Assistant". She was a bot - and not a very good one.
I'm not a bot, I don't think.
Comment 53•6 years ago
|
||
(In reply to Gene's comment #52.)
Several hours before you wrote this comment I turned off the Azure server and changed the DNS so that the FQDN mx1 points to new mailserver I made with a Vultr VM in Sydney. This is closer to me than Digital Ocean's closest data centre. So your attempt to log in would have gone to the Vultr server which has no "gene" account.
I have turned the Azure server on again and you can access it by the IP address I sent you in a private email. I made a test account on the Vultr server with identical mailboxes to the "gene" Azure account. I have sent you the name of the new test account.
These servers are set up almost identically, but I have not yet got STARTTLS or SSL/TLS working on the Vultr VM, whereas STARTTLS worked on the Azure VM. I am not running a firewall on these VMs themselves, though I plan to run one on the Vultr server.
Thanks for the explanation of the setting. I think it should be renamed: "Maximum number of IMAP connections per account." Whether they are cached or not is a separate matter not affected by the value of this setting. Is there a bug concerning the wording of this setting?
My main Windows machine and one other is running TB 60.6.1 and the third is running 67.0b1 (beta) all 32 bit. I think they all behave the same way regarding the Azure IMAP server, but I did notice unresponsive tick boxes in 67.0b1. I am about to replace the beta one with a 60.6.1 version for another reason.
As far as I know, all my observations to date are consistent with my particular Azure server upsetting Windows 60.6.1 and 67.0b1, but not a recent Linux 64 bit daily. I have spent days on this problem and I need to get back to paying work, so I have no interest in developing a more refined or robust explanation.
All my observations are consistent with the hypothesis that you are the polar opposite of a bot. The two test accounts may enable you, with sufficient effort, to develop a better explanation for the trouble I experienced. This may be a way of testing the effectiveness of the keepalive patch.
Thanks very much for your help!
Comment 54•6 years ago
|
||
For a week I have been using TB 60.6.1 with my new mailserver on a Vultr VM and everything is working fine. Thanks for Thunderbird and Firefox!
Comment 55•4 years ago
|
||
I have used Thunderbird for years under Ubuntu Studio without encountering this problem, even though I have numerous other devices which check mail on my various IMAP accounts. The problem has appeared for a few weeks now, in Thunderbird 68.10.0 (64 bit). Even if the error is, in fact, due to server limits, the error message is less than useful: I have several IMAP accounts configured in Thunderbird, and the error message gives no indication of which server was involved. Even if it did, the message appears only briefly and is half transparent, making it difficult to capture any information it might provide. As others have indicated, the error message appears when I start Thunderbird and does not appear to limit my use of any of the IMAP accounts I have configured within Thunderbird. As a workaround I have disabled the automatic checks for new messages on startup and every 10 minutes for each of the IMAP servers I have configured, as that was easier than trying to change the number of connections Thunderbird uses for each account.
Assignee | ||
Comment 56•4 years ago
•
|
||
rsbrux, Been a few years since I heard any complaints about this. How many accounts do you have in tb? Do any accounts receive email into other than INBOX? If not, there should only be one connection per account at tb startup until you maybe start clicking on other folders. Also, junk processing or other filtering may cause additional connections to occur.
The error "possibly too many connections" is just a fall-back error and occurs when tb can't make a connection to the server. I guess it really should at least say which server can't connect.
Note: with check new mail at startup and check every X mins disabled, you have to manually click on each account's INBOX to receive new mail. There won't be any connections to the server until you do. I guess you know this.
P/S: You can click "Get all messages" to force a check on all accounts. I forgot about this.
Comment 57•4 years ago
|
||
I had forgotten about this until I started getting messages yesterday from this thread. In the case of my report five years ago, the problem was ultimately tracked down to an expired SSL certificate that prevented secure IMAP connections on port 993. The immediate workaround was to switch to unencrypted port 143.
The "real" bug is really the wrong error message being shown as the problem was not an exceeded number of connections.
Comment 58•4 years ago
|
||
@gene, I have 7 accounts in Thunderbird. None receive messages into folders other than Inbox, but all have additional folders, and one has quite a lot of them. Most of the accounts were caching 5 connections. I tried turning off all automatic mail fetching and reducing all accounts to 1 cached connection for a while and didn't get any more such messages. However, the failure messages have been episodic. I have now turned back on "Check for messages on startup" and "Check for new messages every 10 minutes" and have upped the number of cached connections to 3 per account. So far I haven't seen any more connection failure notices. I will report back here if I do.
Comment 59•4 years ago
|
||
I used to have this issue too on my notebook, and I figured out the problem was in fact caused by my phone's e-mail program. I configured my phone to check for a number of folders which ate a large number of connections to the IMAP server. Also, my wife was checking e-mails at the same server, both from her notebook and phone. From the perspective of the server, we were all the same ip address (home wifi) so I suspect that made things worse.
I reduced the number of folders my phone was checking and my notebook's Thunderbird stopped complaining about maximum number of connections.
Assignee | ||
Comment 60•4 years ago
•
|
||
In comment 56 I wrote:
The error "possibly too many connections" is just a fall-back error and occurs when tb can't make a connection to the server. I guess it really should at least say which server can't connect.
If you add a %S
to the error string you get a server hostname string in the alert. This also updates the error string so that "connection exceeded" is just a possibility and not necessary the main cause. Also, mentioned that other devices/apps can cause this error to occur. (The error string is getting kind of long so not sure if it's OK.)
From comment 57:
The "real" bug is really the wrong error message being shown as the problem was not an exceeded number of connections.
When connection quota at the server is exceeded this is typically not reported by the server and just a failure to connect occurs. Tb has no knowledge of how many connection the server allows. So I tweaked the message some to indicate that connection count exceeded is only a possibility and not necessarily the cause of the problem.
Comment 61•4 years ago
|
||
Assignee | ||
Comment 62•4 years ago
|
||
When I would forget to put a suffix number incremented on a modified string name I was always reprimanded by Magnus or Jorg so I think it it SOP to do that.
I still think the string is now way too long so before submitting an official patch for review I'll try to come up with a shorter one. Any suggestions for improvement would be appreciated.
Updated•2 years ago
|
Comment 63•2 years ago
|
||
One problem here, which I do not think that the voluminous thread above points out, is that the error message does not tell the user which IMAP account is at issue.
I submit that this IMAP problem (i.e. the problem that causes the error message) is one that the forthcoming Thunderbird rewrite should treat.
Comment 64•2 years ago
|
||
(In reply to JN from comment #63)
One problem here, which I do not think that the voluminous thread above points out, is that the error message does not tell the user which IMAP account is at issue.
The draft patch is in that direction.
I submit that this IMAP problem (i.e. the problem that causes the error message) is one that the forthcoming Thunderbird rewrite should treat.
115 is not a totall rewrite. It is focused mainly on UI - what you see in the panes, not the backend like imap.
Assignee | ||
Comment 65•2 years ago
|
||
I looked at this again and see that "too many connections" to the server can trigger just about any network related error. And for at least one server (dovecot) having too many connections doesn't trigger a network error at all but, instead, dovecot only reports an error after TB sends authentication info and the server reports a login failure. This is because dovecot allows the over limit connection to still occur and sends the standard "greeting" but only fails when TB sends something to the server (the authentication info) and the server responds with "NO [UNAVAILABLE]". Tb then shuts down the connection and asks the user, needlessly, for a password.
I can't really add imap specific info to the password prompt since it's used by other non-imap protocols too. So I'll just go ahead and update the network error prompt similar to how I described in the patch at comment 60, mainly just to add the server name to the string and to indicate that "too many connections" is just a possibility and maybe not the main cause of the error.
So the notification will now say:
Unable to connect to IMAP server <server name> most likely due to a temporary network error.
Another possibility is the number of connections allowed by the server has been exceeded by your devices.
Use the Advanced IMAP Server Settings to reduce the number of connections used by Thunderbird.
Assignee | ||
Comment 66•2 years ago
•
|
||
Doesn't depend on any other change.
Assignee | ||
Updated•2 years ago
|
Comment 67•1 years ago
|
||
(In reply to gene smith from comment #65)
So the notification will now say:
Unable to connect to IMAP server <server name> most likely due to a temporary network error. Another possibility is the number of connections allowed by the server has been exceeded by your devices. Use the Advanced IMAP Server Settings to reduce the number of connections used by Thunderbird.
I've got a user in Support Forum asking about this because they have 10 accounts and would really like to know which one this message relates to.
Can you tell me what release version will show the name of server?
Updated•1 years ago
|
Assignee | ||
Comment 68•1 years ago
|
||
I submitted the patch about 6 months ago and never followed up on the requested changes. Just now updated the patch with the requested changes. So sorry for the big delay, I had completely forgot about this so thanks for the NI.
Can you tell me what release version will show the name of server?
Since this involves a string that has to be translated I think it can't be released until the next ESR after the current ESR 115. So it might be while.
Assignee | ||
Comment 69•1 year ago
|
||
Magnus,
In another bug (bug 1868275 comment 4) someone mentioned the string that is the subject of this bug and I though we had changed it. But I see here my last update is still waiting for your review.
The very small patch still applies OK to c-c head (no bit rot).
Comment 70•1 year ago
|
||
Sorry for the delay.
Assignee | ||
Updated•1 year ago
|
Comment 71•1 year ago
|
||
Pushed by alessandro@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/0609ace424dc
Improved and add imap server name to 'too many connections' notification. r=mkmelin
Updated•1 year ago
|
Updated•1 year ago
|
Comment 74•10 months ago
|
||
Gene, I'd like to take this to 115 for it's debugging value to users for accurately identifying the source of the problem
Description
•