Author Topic: Timeout on a pre-existing mail account  (Read 3394 times)

Offline xxedgexx

  • Newbie
  • *
  • Posts: 4
Timeout on a pre-existing mail account
« on: May 19, 2022, 03:43:39 AM »
I'm trying to use Roundcube for the first time on a pre-existing account with a huge mailbox.  I keep getting timeouts upon login.  What do I need to increase to get around this timeout for a large mailbox?

Roundcube 1.5.2 against a Dovecot IMAP server.

Mailbox is 33G.

I tried adding this to nginx:

    proxy_connect_timeout       600;
    proxy_send_timeout          600;
    proxy_read_timeout          600;
    send_timeout                600;
    fastcgi_read_timeout   600;

Added this to the defaults.inc.php config:

// IMAP connection timeout, in seconds. Default: 0 (use default_socket_timeout)
$config['imap_timeout'] = 600;

I'm assuming this is my problem but maybe it's something else.

Offline xxedgexx

  • Newbie
  • *
  • Posts: 4
Re: Timeout on a pre-existing mail account
« Reply #1 on: May 19, 2022, 04:00:02 AM »
I'm trying to use Roundcube for the first time on a pre-existing account with a huge mailbox.  I keep getting timeouts upon login.  What do I need to increase to get around this timeout for a large mailbox?

Roundcube 1.5.2 against a Dovecot IMAP server.

Mailbox is 33G.

I tried adding this to nginx:

    proxy_connect_timeout       600;
    proxy_send_timeout          600;
    proxy_read_timeout          600;
    send_timeout                600;
    fastcgi_read_timeout   600;

Added this to the defaults.inc.php config:

// IMAP connection timeout, in seconds. Default: 0 (use default_socket_timeout)
$config['imap_timeout'] = 600;

I'm assuming this is my problem but maybe it's something else.

I'm seeing this in the logs:

2022/05/19 07:59:06 [error] 849#0: *23 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.10.95, server: _, request: "POST /mail/?_task=login HTTP/2.0", upstream: "fastcgi://127.0.0.1:9999", host: "blah", referrer: "https://blah/mail/?_task=login"