Roundcube Community Forum

 

Roundcube is not keeping connections

Started by freeflyer, October 28, 2024, 09:49:35 AM

Previous topic - Next topic

freeflyer

Hi,

This is my first post here, I don't know if this is the right place.
Here we go:

I've got a multi-domain mail server:
  • Debian 12.7
  • Dovecot
  • Postfix
  • Roundcube
  • MariaDB as user/alias/domain database and Roundcube support

When in roundcube, each time I want to read a message or change from one message to another it takes some overhead time. I checked the logs and I saw that there is a imap connection/disconnection at each change of message.

Here is the relevant part of the log:

2024-10-28T14:39:24.282231+01:00 esus roundcube: <6gi359cj> [C127] Connecting to localhost:143...
2024-10-28T14:39:24.289237+01:00 esus roundcube: <6gi359cj> [C127] S: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot (Debian) ready.
2024-10-28T14:39:24.289393+01:00 esus roundcube: <6gi359cj> [C127] C: A0001 AUTHENTICATE PLAIN ****** [33]
2024-10-28T14:39:25.485779+01:00 esus roundcube: <6gi359cj> [C127] S: A0001 OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY PREVIEW STATUS=SIZE SAVEDATE LITERAL+ NOTIFY SPECIAL-USE] Logged in
2024-10-28T14:39:25.485913+01:00 esus roundcube: <6gi359cj> [C127] C: A0002 ID ("name" "Roundcube" "version" "1.6.9" "php" "8.2.24" "os" "Linux" "command" "/

There is 1.2 second between the "AUTHENTICATE PLAIN" and the "OK".

This is a fresh install from a previously lost server, so I'm not sure if it's normal, but the last server was faster

Is there a way to keep the imap session opened ?

Session parameters are default

// extract of default.inc.php
$config['session_lifetime'] = 10;

Thanks for any help.

Nicolas

alec

Nope. This is how Roundcube works. The only way would be by using an imap proxy.