<div dir="ltr"><div><div><div>Hi All, <br><br></div><div><br></div><div><br></div>Here&#39;s the background of the issue: I implemented HAProxy as Load Balancer for Zimbra MTA &amp; Proxy (webmail, pop3, imap) services and it&#39;s running smoothly until we have brute force issue then when i want to block the source of brute force IP but it just shown HAProxy server&#39;s IP in the log files since the traffics are come from it. <br></div><div><br></div><div><br></div><div>After searching the solution is using HAProxy&#39;s Proxy Protocol that will add additional source information in package that will be forwarded to it&#39;s backend servers. For Postfix there is clear documentation in HaProxy&#39;s official blog (<a href="https://www.haproxy.com/blog/efficient-smtp-relay-infrastructure-with-postfix-and-load-balancers/">https://www.haproxy.com/blog/efficient-smtp-relay-infrastructure-with-postfix-and-load-balancers/</a>) and for the rest service (webmail, pop3, imap) which handled with Nginx the clue is only this documentation <a href="http://nginx.org/en/docs/stream/ngx_stream_proxy_module.html#proxy_protocol">http://nginx.org/en/docs/stream/ngx_stream_proxy_module.html#proxy_protocol</a> . <br></div><div><br></div><div><br></div><div>Unfortunately nginx&#39;s proxy_protocol configuration  is available from version 1.9.2 and Nginx version in Zimbra 8.7 is 1.7.1 .</div><div><br></div><div>The question is how to recompiling new version of Nginx (including it&#39;s zmlookup modules, etc)  that will be replaced the existing one ?<br></div></div></div>