Proxy Protocol for IMAP and POP3

Alexander Naumann alexander.naumann at
Wed Jan 3 10:03:27 UTC 2018


you could use "set_real_ip_from 'IP from LB';"

Alexander Naumann

----- Ursprüngliche Mail ----- 
Von: "idfariz" <nginx-forum at> 
An: nginx at 
Gesendet: Mittwoch, 3. Januar 2018 05:58:35 
Betreff: Proxy Protocol for IMAP and POP3 

Hello all, 

Currently we do load balancing for NGINX server that included in Zimbra as 
Proxy services with HAPROXY. 

but as we see in nginx's log access file all incoming source IP was logged 
as HaProxy's IP, 

the question in how we configure nginx to show client's origin IP instead of 
HaProx's for IMAP and POP3 (mail) ? 

Note: there is solution using Proxy Protocol 
( but it's 
available for http and stream only. 

Posted at Nginx Forum:,277972,277972#msg-277972 

nginx mailing list 
nginx at

More information about the nginx mailing list