Welcome! Log In Create A New Profile

Advanced

Re: Real IP in header for SMTP Nginx Mail Proxy

Maxim Dounin
January 20, 2017 06:02AM
Hello!

On Fri, Jan 20, 2017 at 08:09:35AM +0100, Michael Brunner wrote:

>
> Hi
>
> I used the instruction below to build a mail proxy server with nginx:
>
> https://www.nginx.com/resources/admin-guide/mail-proxy/
>
> I configured it for IMAP, POP3 and SMTP.
>
> It's working quite well but I don't see the real IP of the sender in the mail header. When a user is sending a mail via SMTP, I see only the following in the mail header:
>
> X-Sender-Id: _forwarded-from|46.xxx.xx.xx
>
> For me it's important to see the real IP of the sender in the mail header, otherwise our outgoing spam filter will not like this solution.
>
> How can I add the real IP of the sender to the mail header?

You can pass the client IP address to the SMTP backend using the
"xclient" directive, see http://nginx.org/r/xclient.

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

Real IP in header for SMTP Nginx Mail Proxy

coolmike January 20, 2017 02:10AM

Re: Real IP in header for SMTP Nginx Mail Proxy

Maxim Dounin January 20, 2017 06:02AM

Re: Real IP in header for SMTP Nginx Mail Proxy

coolmike January 20, 2017 07:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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