1

Topic: Gateway timeout roundcube search

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (0.9.8 MYSQL edition):
- Linux/BSD distribution name and version: Ubuntu 18.04 LTS
- Store mail accounts in which backend (MySQL):
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? No.
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I have a problem with roundcube and big mailboxes:If I search in the mailbox, I get an error (gateway timeout). How can i solve this.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Gateway timeout roundcube search

You need a FTS (Full Text Search) plugin for Dovecot to index big mailbox:
https://wiki.dovecot.org/Plugins/FTS

- Solr should work fine, and Ubuntu has package "dovecot-solr" for this.
- There's a third-party plugin for Xapian too: https://github.com/grosjo/fts-xapian

3

Re: Gateway timeout roundcube search

I have installed and configured FTS with dovecot-solr. A console search runs perfectly in few seconds.

3 OK Search completed (112.905 + 0.002 + 0.124 secs)

But roundcube web interface says "Serverfehler! (Gateway Time-out)" with same search pattern in same mailbox.

4

Re: Gateway timeout roundcube search

RichieX wrote:

But roundcube web interface says "Serverfehler! (Gateway Time-out)" with same search pattern in same mailbox.

You need to check Dovecot and Roundcube log files to figure it out.

5

Re: Gateway timeout roundcube search

Now I have found the solution for this:

Ccreate a file named proxy_timeouts.conf /etc/nginx/conf-available and link this file to /etc/nginx/conf-enabled with this content:

proxy_connect_timeout 1200s;
proxy_send_timeout 1200s;
proxy_read_timeout 1200s;
fastcgi_send_timeout 1200s;
fastcgi_read_timeout 1200s;

6

Re: Gateway timeout roundcube search

Thanks for sharing. smile