Welcome! Log In Create A New Profile

Advanced

Re: username mapping for imap/pop

January 13, 2014 12:52PM
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 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 correct username, target IP and port, gets the Capability list and registers a successful login to the remote (gmail) imap server and then closes the connection immediately. The following is a transcript of the telnet session:

telnet nginx:143
* OK IMAP4 ready
a1 LOGIN user@example.com password
* CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH
a1 OK user@example.com first_name Last_name authenticated (Success)
Connection closed by foreign host.

Any suggestions as to what to try next to diagnose this? (Thanks in advance)
Subject Author Posted

username mapping for imap/pop

bidwell January 12, 2014 05:27PM

Re: username mapping for imap/pop

Igor Sysoev January 13, 2014 03:00AM

Re: username mapping for imap/pop

bidwell January 13, 2014 12:52PM

Re: username mapping for imap/pop

bidwell January 14, 2014 01:01PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 261
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready