I have implemented a nginx with mail module, and proxy to backend Hmail server. I realized no matter how I disable the auth-methods PLAIN. The nginx is just ignoring it.
How can I force to using smtp_auth login instead? As Hmail server does not support AUTH_PLAIN mechanism.
auth_http localhost:8080/auth.pl;
server {
# not working as always AUTH_PLAIN
listen 25;
protocol smtp;
smtp_auth login;
# starttls on;
timeout 5s;
proxy on;
xclient off;
proxy_smtp_auth on;
}
In fact, i solved it in a other way, as i would like to use all features with my NGIX and my MAILCOW, i used this way
NGINX.conf
stream { include /etc/nginx/streams/*; }
/etc/nginx/streams/mailcow_proxy.conf
Conclusions
Instead of interferencing nginx to do the auth, you just pass anything directly to your Mailserver as it should and usually as you would if it would be connected directly.
You may also use the directly insertion into nginx.conf but i dislike this way.