November 26, 2015 09:14AM
Maxim Dounin Wrote:
-------------------------------------------------------
> For your particular task, it may be easier to configure raw TCP
> proxy to a particular 3rd party SMTP server (e.g., using nginx
> stream proxy,
> http://nginx.org/en/docs/stream/ngx_stream_core_module.html)
> or a full-featured STMP server with a smarthost configured.

Simple example 2 interfaces balanced backend limited to a vlan routed gateway:

stream {
error_log logs/stream_error_smtp.log;

upstream backendsmtp {
server 192.168.28.21:25;
server 192.168.28.22:25;
server 192.168.28.23:25;
}

server {
listen 25;
proxy_connect_timeout 30s;
proxy_timeout 30s;
proxy_pass backendsmtp;
allow 192.168.29.1;
deny all;
}

}

---
nginx for Windows http://nginx-win.ecsds.eu/
Subject Author Posted

SMTP Forward Nginx Proxy

chobit November 25, 2015 05:27PM

Re: SMTP Forward Nginx Proxy

Maxim Dounin November 26, 2015 08:52AM

Re: SMTP Forward Nginx Proxy

itpp2012 November 26, 2015 09:14AM

Re: SMTP Forward Nginx Proxy

Igor Sysoev February 26, 2019 06:54AM

Re: SMTP Forward Nginx Proxy

Maxim Konovalov February 26, 2019 07:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 238
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready