Table of Contents

Howto use NGINX to Create an SMTP/IMAP Proxy


stream { include /etc/nginx/streams/*; }
mkdir -p /etc/ngninx/streams
server { \\
listen [::]:25 ipv6only=off; \\
listen [::]:143 ipv6only=off; \\
listen [::]:587 ipv6only=off; \\
listen [::]:993 ipv6only=off; \\
proxy_pass 10.11.12.13:$server_port; \\
proxy_protocol on; \\
}

This will PROXY it directly to 10.11.12.13 where the Server_Port will be automatically selected. WITHOUT the dazzle of http auth