Welcome! Log In Create A New Profile

Advanced

Nginx SMTP relay access denied!

December 20, 2019 06:30AM
Hi,

We've setup NGINX SMTP proxy in front of postfix. When i try to telnet to
nginx smtp on port 25 it shows the "relay access denied" message.:

https://pastebin.com/JF4TVqBw

Here is the config of nginx:

mail {
server_name mail.domain.com;

auth_http localhost:80/auth.php;
proxy_pass_error_message on;
server {
listen 25;
protocol smtp;
timeout 300s;
proxy on;
xclient off;
smtp_auth none plain;
# auth_http_header HTTP_AUTH_USER Auth-User;
# auth_http_header HTTP_AUTH_PASS Auth-Pass;
smtp_capabilities "AUTH PLAIN";

}

Following is the content of auth.php that we're using :

https://pastebin.com/q49EC67N

What we want is that, any user tries to connect to Nginx SMTP proxy to send
email should be authenticated to backend. Is that possible?
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx SMTP relay access denied!

shahzaib1232 December 20, 2019 06:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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