<div dir="ltr">Hi,<br><input name="virtru-metadata" type="hidden" value="{"email-policy":{"state":"closed","expirationUnit":"days","disableCopyPaste":false,"disablePrint":false,"disableForwarding":false,"enableNoauth":false,"persistentProtection":false,"expandedWatermarking":false,"expires":false,"isManaged":false},"attachments":{},"compose-id":"2","compose-window":{"secure":false}}"><div><br>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.:</div><div><br></div><div><a href="https://pastebin.com/JF4TVqBw">https://pastebin.com/JF4TVqBw</a> </div><div><br></div><div> Here is the config of nginx:<br></div><div><br></div><div>mail {<br>        server_name <a href="http://mail.domain.com">mail.domain.com</a>;<br><br>        auth_http localhost:80/auth.php;<br>        proxy_pass_error_message on;<br>        server {<br>                listen 25;<br>                protocol smtp;<br>                timeout 300s;<br>                proxy on;<br>                xclient off;<br>                smtp_auth none plain;<br>        #       auth_http_header HTTP_AUTH_USER Auth-User;<br>        #       auth_http_header HTTP_AUTH_PASS Auth-Pass;<br>                smtp_capabilities "AUTH PLAIN";<br><br>        }<br></div><div><br></div><div>Following is the content of auth.php that we're using :</div><div><br></div><div><a href="https://pastebin.com/q49EC67N">https://pastebin.com/q49EC67N</a> </div><div><br></div><div>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?<br></div></div>