Hello guys,
I configured Postfix via Haproxy(Centos), everything works great, but I have one problem.
When my backend server needs to send its mails(not for request, but when it initializes connection) to an another mail server, it must use own gateway,
but I need to forward everything by Haproxy server. Is it possible to forward via HAproxy to the Internet? I need to haproxy works like gateway.
I tried with iptables(iptables -t nat -A POSTROUTING -d 192.168.4.0/28 -o enp0s3 -j SNAT --to-source 192.168.5.1), but it didnt work.
Like on the picture
Could you help me?
1 post - 1 participant