Re: nginx smtp proxy

2019-05-14 Thread Patrick
On 2019-05-14 07:14, Scott Clark wrote: > Is it possible to get the smtp proxy to make outbound connections on a > specific IP address? That doesn't appear be supported yet. A workaround is to SNAT the connections to the upstream mail servers. Normally, this isn't an issue since nginx is the fron

nginx smtp proxy

2019-05-14 Thread Scott Clark
Hi There, Is it possible to get the smtp proxy to make outbound connections on a specific IP address? Trying to use proxy_bind x.x.x.x but where ever I put it in the mail config I get: nginx: [emerg] "proxy_bind" directive is not allowed here mail { # Pass any error message from the remote

Re: How to pass connection's real IP through Nginx smtp proxy to Postfix/postscreen backend?

2018-06-21 Thread Frank Liu
Try proxy protocol. On Thu, Jun 21, 2018 at 12:47 PM, wrote: > I run Postfix 3.3.1 & Nginx 1.15.0 > > Both work great. > > I'm beginning to experiment with putting Postfix (and eventually other) > server behind Nginx (v 1.15.0) setup as a mail (SMTP) proxy. > > Without the proxy, Postfix logs sh

How to pass connection's real IP through Nginx smtp proxy to Postfix/postscreen backend?

2018-06-21 Thread cyang
I run Postfix 3.3.1 & Nginx 1.15.0 Both work great. I'm beginning to experiment with putting Postfix (and eventually other) server behind Nginx (v 1.15.0) setup as a mail (SMTP) proxy. Without the proxy, Postfix logs show an inbound connection to my real IP Jun 21 12:12:31 mailprox pos

outbound emails are not sent via nginx smtp proxy

2014-04-16 Thread cybermass
All emails ending at the destination note the sender as the actual backend and not nginx proxy. How can I force smtp outbound through nginx? I tried smtp_bind_address = proxy.ip.addr in main.cf for postfix. And tried adding an SNAT rule in iptables to route through the proxy with no luck. Any advic