Question regarding IMAP & SMTP Proxy

Hello

I’m new to Nginx. I’m facing a problem and perhaps nginx may be able to
help me :slight_smile:

Considering that Nginx will run on a server (let’s say with LAN IP
192.168.2.10), I would like to be able to use as server setting in my
mailer:

  • IMAP server: 192.168.2.10 / nginx listen port #1
  • SMTP server: 192.168.2.10 / nginx listen port #2

Final IMAP/SMTP servers to access are:

Will Nginx be able to “forward” my requests correctly or did I
misunderstood its capabilities ?

If Nginx is able to do this, could you help me to configure it please
because after having a look to the wiki, I did not found anything
related to the use I wish :slight_smile: ?

Thanks
Matt

On Wed, Dec 12, 2007 at 12:09:08PM +0100, Matthieu Sevestre wrote:

Will Nginx be able to “forward” my requests correctly or did I
misunderstood its capabilities ?

If Nginx is able to do this, could you help me to configure it please
because after having a look to the wiki, I did not found anything related
to the use I wish :slight_smile: ?

You probably may use nginx in this way, however, it will be complex
setup:
you need authorization server, that will route your sessions to gmail.

The main purpose of mail proxy is handling thousands of incoming
sessions:
http://blog.fastmail.fm/2007/01/04/webimappop-frontend-proxies-changed-to-nginx/

If you have tens or so sessions you do not need nginx.
Try to look something else.

Hello

Thanks for this reply… in fact I owuld only have 2/3 connections no
more.

simple thing for me would be SSH tunneling but unfortunately, it’s very
unstable on the connection type I use, that’s why I was searching in the
Proxies world.

Anyway if you say yourself that nginx would be difficult to configure
for this, I’ll seek for something else.

Thanks very much !

Matt

Igor S. a e’crit :

Matthieu Sevestre wrote:

Hello

Thanks for this reply… in fact I owuld only have 2/3 connections no
more.

simple thing for me would be SSH tunneling but unfortunately, it’s very
unstable on the connection type I use, that’s why I was searching in the
Proxies world.

Anyway if you say yourself that nginx would be difficult to configure
for this, I’ll seek for something else.

Thanks very much !

Matt

Igor S. a e’crit :

Hmm, I had hoped this might be the answer to my gmail troubles.

I’m basically having trouble connecting directly to gmail’s imap server
via my cellphone’s email client which I believe is due to a ssl
certificate problem.

So my big idea was to run an nginx proxy on my server that would allow
my connect via insecure imap and have nginx connect through to gmail’s
imap using ssl.

What I don’t understand about how nginx proxies the connection is, let’s
say I use php for the http_auth and I return a successful login and the
IP address of the backend server, does nginx then continue on and issue
an imap ‘login’ command to the backend server?

Scott