Welcome! Log In Create A New Profile

Advanced

Re: Port access

Maxim Dounin
March 27, 2009 07:15AM
Hello!

On Fri, Mar 27, 2009 at 02:45:33PM +0530, derwyn wrote:

> Hi,
> I've found on the site the code in php to authenticate the users for
> imap/pop.
> the php app 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

You may add arbitrary headers via auth_http_header directive.
E.g.:

mail {
auth_http ...

server {
listen 110;
protocol pop3;

auth_http_header X-Auth-Port 110;

...
}

server {
listen 995;
protocol pop3;

ssl on;

auth_http_header X-Auth-Port 995;

...
}
}

Maxim Dounin
Subject Author Posted

Port access

derwyn March 27, 2009 05:15AM

Re: Port access

Maxim Dounin March 27, 2009 07:15AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 181
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