# Thunderbird connection error

**URL:** https://forum.yunohost.org/t/thunderbird-connection-error/31644
**Category:** Advanced use case
**Tags:** email, mail, thunderbird, dovecot, english
**Created:** [October 28, 2024, 11:18am UTC](https://forum.yunohost.org/t/thunderbird-connection-error/31644 "2024-10-28T11:18:14Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![quiwy](https://forum.yunohost.org/user_avatar/forum.yunohost.org/quiwy/32/11104_2.png) [@quiwy](https://forum.yunohost.org/u/quiwy)
#### Post date: [October 28, 2024, 11:18am UTC](https://forum.yunohost.org/t/thunderbird-connection-error/31644/1 "2024-10-28T11:18:14Z")

</div>

### What type of hardware are you using

Other ARM board

### What YunoHost version are you running

11.2.31

### How are you able to access your server

The webadmin  
SSH  
Direct access via physical keyboard/screen

### Are you in a special context or did you perform specific tweaking on your YunoHost instance ?

yes

### Describe your issue

Hi,

I’ve configured a catchall on my server to receive all emails sent to my domain in a single user’s inbox, and it’s working well. After three years of procrastination, I’ve finally set up a Sieve filter to create a folder for each “to” address.

```auto
/* Create folder for all other emails */

if address :localpart :matches ["to"] "*" {
    # Store the local part of the "To" address in a variable
    set :lower :upperfirst "localpart" "${1}";

    # Use the local part to create the folder name
    fileinto :create "INBOX.${localpart}";
    stop;
}

```

The filter works well, but in Thunderbird, I regularly see the following error:

```auto
Le serveur *** s'est déconnecté. Il s'est peut être arrêté, ou il y a un problème sur le réseau.

```

On the server side, I see these logs:

```auto
Oct 28 12:07:24 ***dovecot[2758744]: imap-login: Maximum number of connections from user+IP exceeded (mail_max_userip_connections=10): user=<***>, method=PLAIN, rip= ***6, lip=*** , TLS, session=<***>
Oct 28 12:07:25 ***dovecot[2758744]: imap-login: Maximum number of connections from user+IP exceeded (mail_max_userip_connections=10): user=<***>, method=PLAIN, rip= ***, lip=*** , TLS, session=<***>

```

I don’t experience this issue on K-9 Mail.

In Thunderbird, I tried adjusting the setting `Nombre maximum de connexion à garder en cache` to 1 (though I’m unsure of its effect).

Is there a way to increase `mail_max_userip_connections`? I’m not certain where to change this setting.  
Or is there anything else I can change to avoid thunderbird errors?

Thank you for your help! 😀

---

<div class="post-metadata">

### Author: ![quiwy](https://forum.yunohost.org/user_avatar/forum.yunohost.org/quiwy/32/11104_2.png) [@quiwy](https://forum.yunohost.org/u/quiwy)
#### Post date: [November 4, 2024, 10:16am UTC](https://forum.yunohost.org/t/thunderbird-connection-error/31644/2 "2024-11-04T10:16:33Z")

</div>

Updated my thunderbird to thunderbird daily and no problem anymore. So I guess it will be fixed in next stable thunderbird.

---

<div class="post-metadata">

### Author: ![quiwy](https://forum.yunohost.org/user_avatar/forum.yunohost.org/quiwy/32/11104_2.png) [@quiwy](https://forum.yunohost.org/u/quiwy)
#### Post date: [November 5, 2024, 10:04am UTC](https://forum.yunohost.org/t/thunderbird-connection-error/31644/3 "2024-11-05T10:04:22Z")

</div>

Hi,

I had some hope that my setup was finally working, but unfortunately, I’m still experiencing the same issue on a daily version.

If you have any idea feel free to point me in the right direction 😄

---

<div class="post-metadata">

### Author: ![quiwy](https://forum.yunohost.org/user_avatar/forum.yunohost.org/quiwy/32/11104_2.png) [@quiwy](https://forum.yunohost.org/u/quiwy)
#### Post date: [November 13, 2024, 4:08pm UTC](https://forum.yunohost.org/t/thunderbird-connection-error/31644/4 "2024-11-13T16:08:01Z")

</div>

After upgrading to Yunohost 12, I revisited this issue and tried something I thought I’d already done, but it seems I hadn’t.

Here is the fix I used:

In `/etc/dovecot/dovecot.conf`, I added `mail_max_userip_connections = 20` to the `protocol imap` block.

So now it looks like this:

```auto
protocol imap {
  imap_client_workarounds =
  mail_plugins = $mail_plugins imap_quota antispam
  mail_max_userip_connections = 20
}

```

This seems to be working for now.

If there’s a better solution, feel free to comment! 😄

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [December 13, 2024, 4:08pm UTC](https://forum.yunohost.org/t/thunderbird-connection-error/31644/5 "2024-12-13T16:08:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
