Forum: NGINX imap: invalid header in response while in http auth state

Posted by Grant (Guest)
on 2013-03-07 22:56
(Received via mailing list)
I'm using imapproxy and trying to switch to nginx.  courier is
listening on port 143.

mail {
        auth_http localhost:143;
        proxy on;
        server {
                listen 144;
                protocol imap;
        }
}

I get:

auth http server 127.0.0.1:143 sent invalid header in response while
in http auth state, client: 127.0.0.1, server: 0.0.0.0:144

Does anyone know what's wrong?

- Grant
Posted by Maxim Dounin (Guest)
on 2013-03-10 17:33
(Received via mailing list)
Hello!

On Thu, Mar 07, 2013 at 01:55:35PM -0800, Grant wrote:

> }
>
> I get:
>
> auth http server 127.0.0.1:143 sent invalid header in response while
> in http auth state, client: 127.0.0.1, server: 0.0.0.0:144
>
> Does anyone know what's wrong?

You are trying to use auth_http with imap port, which is wrong.
It is expected to be http service with headers used for
communication, see here:

http://nginx.org/en/docs/mail/ngx_mail_auth_http_module.html

--
Maxim Dounin
http://nginx.org/en/donation.html
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.