Ticket #1485720 (closed Bugs: fixed)
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).
