Welcome! Log In Create A New Profile

Advanced

Re: Nginx mail proxy - ensure sender match authenticated user

Maxim Dounin
May 21, 2021 10:46AM
Hello!

On Thu, May 20, 2021 at 10:13:01PM -0400, mbrother wrote:

> Thank you for your answer. As you know, nginx does not send Auth command to
> backend server, so there's no way for the backend to know if the sender
> matches the authenticated account. I tried proxy_smtp_auth config but nginx
> send mail COMMAND to my server but it can not understand :(

By default, for SMTP nginx uses the XCLIENT command
(http://nginx.org/r/xclient). It allows nginx to pass all the
relevant information about the client, including the login, IP
address, and more.

Alternatively, starting with nginx 1.19.4 it can be configured
to proxy SMTP authentication (http://nginx.org/r/proxy_smtp_auth).
While limited compared to XCLIENT, this still passes the client
login to the backend server.

If neither of these work for you, you probably want to focus on
your SMTP server configuration instead. A good start would be to
configure it to work properly without nginx in front of it.

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

Nginx mail proxy - ensure sender match authenticated user

mbrother May 20, 2021 03:25AM

Re: Nginx mail proxy - ensure sender match authenticated user

Maxim Dounin May 20, 2021 09:30AM

Re: Nginx mail proxy - ensure sender match authenticated user

mbrother May 20, 2021 10:13PM

Re: Nginx mail proxy - ensure sender match authenticated user

Maxim Dounin May 21, 2021 10:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 64
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready