Welcome! Log In Create A New Profile

Advanced

Re: nginx as pop3/imap proxy

Maxim Dounin
November 07, 2014 10:04AM
Hello!

On Fri, Nov 07, 2014 at 03:34:48PM +0100, Andrea wrote:

> Hello,
> I'm using with satisfaction nginx as pop3 and imap proxy of 4/5 mailservers.
>
> I have just one problem:
> when one server is down, nginx can't authenticate the user and the user
> mail client request the password as if it's wrong.
> Without nginx, if one server is down, the user just can't connect to it,
> but there's not an authentication problem.
>
> So, my question is:
> is it possible to configure nginx to manage in some different way this kind
> of situation? Best, but maybe not implementable, would be nginx to simulate
> a fake connection even if the server is down, so when it comes up again the
> user just see a delay with the received mails.

As of now nginx tries to be as clear as possible that the problem
is not with an authentication. In particular, for IMAP it uses
the BAD response rather than NO:

http://tools.ietf.org/html/rfc3501#section-7.1.3

I don't think that such a distinction is possible with POP3
though, and also has no idea if mail clients are smart enough to
understand the difference in case of IMAP.

The idea to simulate a fake connection looks very wrong for me,
but something like closing a connection without returning anything
may work well. But I think we need more information about client
behaviour to find out what can/should be done here.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx as pop3/imap proxy

devnull82 November 07, 2014 09:36AM

Re: nginx as pop3/imap proxy

Maxim Dounin November 07, 2014 10:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 191
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready