Welcome! Log In Create A New Profile

Advanced

Nginx for pops/imaps

derwyn
April 02, 2009 01:27AM
Hi,

I managed to set up nginx to use as a imap/pop proxy with ssl.

I've found on the site the code in php to authenticate the users for
imap/pop.
The php script on the server sees the user and password as
HTTP_AUTH_USER
HTTP_AUTH_PASS
HTTP_AUTH_PROTOCOL

Is it also possible to get the port that the user is connection to ie
110,143 or 993,995 with some HTTP_AUTH_ variable or any other variable.
Cause the HTTP_AUTH_PROTOCOL will shows up as pop/imap and not
pops/imaps as desired.

I can see it in the logs which port the user is connected to eg. 110 or
any other port and then redirect accordingly.

2009/03/27 17:08:03 [info] 16730#0: *1 proxied session done, client: 192.168.50.85, server: 0.0.0.0:110, login: "user1", upstream: 127.0.0.1:1100






Thanks & Regards,

Derwyn
Subject Author Posted

Nginx for pops/imaps

derwyn April 02, 2009 01:27AM

Re: Nginx for pops/imaps

Igor Sysoev April 02, 2009 01:47AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 103
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready