Welcome! Log In Create A New Profile

Advanced

[PATCH] Add proxy_protocol option to mail listener

August 05, 2017 08:46PM
Hi Kees, Maxim,

I'm very interested in proxy_protocol enabled nginx mail proxy as well.
Wondering if the feature might be more straightforward (initially?) if,
when enabled on the listen line, it simply set the appropriate
$proxy_protocol_* variables, similar to the http servers?

I was hoping that I could then include it as an http get param in the
url for my auth_http directive for the auth script to do a dns blacklist
lookup and/or logging (and possibly some other anti spambot efforts).

I'm working on it with your patch as a starting point, and I can get it
to compile cleanly. Nginx keeps working as expected when I don't set
proxy_protocol on the listen directive, and when I do set proxy_protocol
on the listen directive I see the correct ip and port picked up and
logged in the error.log, however, then nginx stops sending the smtp
greeting... My mail client connects to my loadbalancer, the lb connects
to nginx:587 sending the PROXY line, nginx parses and logs the PROXY
fields, then the client times out waiting for any return traffic from
nginx... I know it's something I'm doing :-)

I'm happy to keep poking away at it, but curious mostly, if you think
the approach is sound? (ie. use $proxy_protocol_addr, set by
proxy_protocol directive and pass in to auth_http script in auth url as
a get param?) and if an initial patch that starts by just setting
$proxy_protocol_* variables would be a useful first step in this type of
functionality?

Thanks! Wayde.


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Add proxy_protocol option to mail listener

waydenie 479 August 05, 2017 08:46PM

Re: [PATCH] Add proxy_protocol option to mail listener

Kees Bos 168 August 07, 2017 03:46AM

Re: [PATCH] Add proxy_protocol option to mail listener

waydenie 233 August 07, 2017 07:52AM

Re: [PATCH] Add proxy_protocol option to mail listener

Kees Bos 169 August 07, 2017 09:26AM

Re: [PATCH] Add proxy_protocol option to mail listener

waydenie 229 August 08, 2017 02:52AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

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