Welcome! Log In Create A New Profile

Advanced

Simple SMTP proxy without an auth (pass AUTH command to backend)

kay
September 29, 2020 11:24AM
I'd like to use nginx to serve TLS and/or StartTLS connections only, the rest must be "proxy passed" without a modification to the backend.

Unfortunately I noticed https://www.ruby-forum.com/t/nginx-does-not-pass-smtp-auth-command-to-server/184290 topic, where Maxim Dounin mentioned that it is impossible. That was 10 years ago, probably now the situation is changed? Is there an option, which I can use to pass the AUTH command?

P.S. Side question, I'd like to use a hostname in Auth-Server header:

location = /mail/auth {
add_header Auth-Status OK;
add_header Auth-Server hostname;
add_header Auth-Port 8025;
return 204;
}

but nginx doesn't allow to do this. Is there an option or a workaround for this?
Subject Author Posted

Simple SMTP proxy without an auth (pass AUTH command to backend)

kay September 29, 2020 11:24AM

Re: Simple SMTP proxy without an auth (pass AUTH command to backend)

Francis Daly September 29, 2020 06:34PM

Re: Simple SMTP proxy without an auth (pass AUTH command to backend)

kay September 30, 2020 11:05AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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