PROXY support in the ngx_mail_proxy_module

Ivanov, Konstantin konstantin at
Thu Oct 27 15:04:52 UTC 2016


We are using nginx behind an ELB with PROXY protocol enabled and the mail
module. After going though the code it became apparent that the mail module
we use in nginx to proxy to our upstream mail applications does not support
the PROXY command and it just returns a 500 from

Is there a reason why the mail module does not support the PROXY protocol?
It seems rather trivial to implement it in
nginx/blob/master/src/mail/ngx_mail.h#L153 and further up the chain. We could
probably use the stream module instead, but we use starttls and auth in the
mail module.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx-devel mailing list