Module ngx_mail_realip_module

From Get docs
Nginx/docs/latest/mail/ngx mail realip module

Module ngx_mail_realip_module

The ngx_mail_realip_module module is used to change the client address and port to the ones sent in the PROXY protocol header (1.19.8). The PROXY protocol must be previously enabled by setting the proxy_protocol parameter in the listen directive.

Example Configuration

listen 110 proxy_protocol;

set_real_ip_from  2001:0db8::/32;


Syntax: set_real_ip_from address | CIDR | unix:;
Context: mail, server

Defines trusted addresses that are known to send correct replacement addresses. If the special value unix: is specified, all UNIX-domain sockets will be trusted.

© 2002-2021 Igor Sysoev
© 2011-2021 Nginx, Inc.
Licensed under the BSD License.