We had this issue even with 5.0.11. I noticed that the version that Zimbra uses for NGINX is 0.5.30 and the latest stable version is 0.7.32. I wonder why Zimbra is so far behind. We are going to test in PD (pre-deployment) environment upgrading to 0.7.32 and see if this fixes the issue. Also DNS is properly setup. We do not NAT for our production environment either.
As far as errors in the log files there are the 502 errors in the nginx.access.log and then these in the nginx.log file:
2009/01/29 17:31:17 [warn] 20209#0: *114133 an upstream response is buffered to a temporary file /opt/zimbra/nginx-0.5.30-zimbra/proxy_temp/0/08/0000000080 while reading upstream, client: 192.168.36.200, server: zlm01.server.net, URL: "/service/zimlet/res/Zimlets-nodev_all.
js.zgz?language=en", upstream: "http://x.x.x.x:8080/service/zimlet/res/Zimlets-nodev_all.
js.zgz?language=en", host: "mail.securemailhost.net", referrer: "http://mail.securemailhost.net/zimbra/"
2009/01/29 17:31:18 [info] 20208#0: *114601 client x.x.x.x connected to 0.0.0.0:993
2009/01/29 17:31:18 [info] 20208#0: *114601 peer closed connection in SSL handshake while sending client greeting line, client: x.x.x.x, server: 0.0.0.0:993
2009/01/29 17:31:18 [info] 20208#0: *114602 client x.x.x.x connected to 0.0.0.0:110
2009/01/29 17:31:18 [info] 20209#0: *114416 client 10.88.0.17 closed keepalive connection (104: Connection reset by peer)
2009/01/29 17:31:18 [error] 20208#0: *114603 connect() failed (111: Connection refused) while reading response header from upstream, client: 24.101.117.84, server: zlm01.server.net, URL: "/service/soap", upstream: "http://x.x.x.x:8080/service/soap", host: "mail.server.net"
2009/01/29 17:31:20 [info] 20208#0: *114609 client x.x.x.x connected to 0.0.0.0:995
2009/01/29 17:31:20 [info] 20208#0: *114609 peer closed connection in SSL handshake while sending client greeting line, client: x.x.x.x, server: 0.0.0.0:995
2009/01/29 17:31:20 [error] 20209#0: *114461 connect() failed (111: Connection refused) while reading response header from upstream, client: 192.168.36.200, server: zlm01.securemailhost.net, URL: "/zimbra?loginOp=logout", upstream: "http://x.x.x.x:8080/zimbra?loginOp=logout", host: "mail.server.net", referrer: "http://mail.server.net/zimbra/"
God Bless,
Marty