Ticket #1485720 (closed Bugs: fixed)

Opened 19 months ago

Last modified 19 months ago

Support NGINX as IMAP backend

Reported by: thomas_mangin Owned by:
Priority: 5 Milestone: 0.2.1
Component: IMAP connection Version: 0.2-stable
Severity: major Keywords:
Cc:

Description

NGINX can be used as IMAP/POP load balancing proxy. It allows, for example, to present multiple machines, each looking after a handful of domain as a single entity.

On wrong LOGIN entry, NGINX will disconnection after reporting "* BAD internal server error"

$ telnet <backend Dovecot IP> 143
* OK Dovecot ready.
1 LOGIN user@… PASSWORD
1 NO Temporary authentication failure.
1 LOGOUT
* BYE Logging out
1 OK Logout completed.
Connection closed by foreign host.

compared to

$ telnet nginx 143
* OK IMAP4 ready
1 LOGIN user@… PASSWORD
* BAD internal server error
Connection closed by foreign host.

The following patch (svn diff to be correct) detect this behaviour and prevent RC from hanging on wrong login.

(btw, courrier works well with NGINX but dovecot need a one line patch).

Attachments

roundcube-imap-nginx.txt (0.9 KB) - added by thomas_mangin 19 months ago.
svn diff of the fix

Change History

Changed 19 months ago by thomas_mangin

svn diff of the fix

Changed 19 months ago by alec

  • status changed from new to closed
  • resolution set to fixed

Fixed in r2273

Changed 19 months ago by alec

  • milestone changed from later to 0.2.1
Note: See TracTickets for help on using tickets.