ImapCoreModule

= IMAP/POP3 Proxy Usage Info =

nginx uses external HTTP-like server to learn which IMAP/POP backend it should connect to.

nginx passes authorization information in HTTP headers: GET /auth HTTP/1.0 Host: auth.server.hostname Auth-Method: plain Auth-User: user Auth-Pass: password Auth-Protocol: imap Auth-Login-Attempt: 1 Client-IP: 192.168.1.1

The good response is: HTTP/1.0 200 OK     # this line is actually ignored and may not exist at all Auth-Status: OK Auth-Server: 192.168.1.10 Auth-Port: 110 Auth-User: newname  # you may override the user name to login to a backend

The failed response is: HTTP/1.0 200 OK     # this line is actually ignored and may not exist at all Auth-Status: Invalid login or password Auth-Wait: 3        # nginx will wait 3 seconds before reading
 * # client's login/passwd again