imap proxy limited to about 210 connections

2014-01-20 Thread bidwell
I have nginx proxying imap and pop between 3 different backend servers, but it seems to be limited to about 210 concurrent connections. Requests beyond this get a connection timed out. I tried adding more worker processes but that didn't do anything. I have multi_accept on and have raised the nu

Re: imap connection to gmail closes connection

2014-01-15 Thread bidwell
Is there a work around? A google setting maybe? Is anyone else using nginx to map to imap.gmail.com? How do they get it working? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,246483,246488#msg-246488 ___ nginx mailing list nginx@nginx.org

imap connection to gmail closes connection

2014-01-15 Thread bidwell
I am running nginx 1.1.19 on an Ubuntu 12.04.4 64but server. I have nginx configured to enter on port 143 and go out to 127.0.0.1:143 where it goes through stunnel to go to imap.gmail.com:993. If I talk directly to 127.0.0.1:143 (to stunnel) it works. If I talk to nginx, it authenticates, logs cor

Re: username mapping for imap/pop

2014-01-14 Thread bidwell
My nginx error.log shows the following: *5 upstream sent invalid response: "* CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH a1 OK t...@example.com Test User authenticated (Success)" while reading response from

Re: username mapping for imap/pop

2014-01-13 Thread bidwell
Thank you. That is what I thought and have implimented. Tracing the problem further, my imap connection successfully authenticates and then gets a "connection closed by foreign host" going through nginx. The pop connection works just fine, but imap fails. I have nginx configured to enter on por

username mapping for imap/pop

2014-01-12 Thread bidwell
I need to map from username to login name where I wish to map from just username to usern...@domain.org for gmail and windomain\username for an exchange server. Is there a way for me to build in hooks to change the username before connecting. I can to that in my mailauth.pm module but don't know