Re: Load Balancing TCP directive mail {}

2020-06-08 Thread andersonsserra
Thomas, Thanks for the answer! I made the corrections and the nginx service worked. Thank you. Although it worked, I saw that the backend servers are receiving the IP request from the proxy, is there any way to pass the source IP of the proxy request preserving the source IP and port? take a look

Re: Load Balancing TCP directive mail {}

2020-06-07 Thread itpp2012
andersonsserra Wrote: --- > nginx: [emerg] "stream" directive is not allowed here in /etc/nginx/email/balanceador.conf:1 Posted at Nginx Forum: https://forum.nginx.org/read.php?2,288282,288291#msg-288291

Re: Load Balancing TCP directive mail {}

2020-06-06 Thread Thomas Ward
That's a pretty self-explanatory error actually: Jun 06 18:18:19 proxy-lb02.srvmail.ma.gov.br nginx[52777]: nginx: [emerg] "stream" directive is not allowed here in /etc/nginx/email/balanceador.conf:1 Your mail configuration file is imported inside a mail block. That won't work. Stream

Load Balancing TCP directive mail {}

2020-06-06 Thread andersonsserra
Hi folks, I'm trying to do a round-robin load balancing for outgoing connections from my MTA servers. At first I tried it as follows: [root@proxy-lb02 email]# pwd /etc/nginx/email [root@proxy-lb02 email]# cat balanceador.conf stream { upstream stream_backend_mail {