imap: invalid header in response while in http auth state

Maxim Dounin mdounin at mdounin.ru
Sun Mar 10 16:32:57 UTC 2013


Hello!

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

> 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?

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



More information about the nginx mailing list