PowerMTA can use HAProxy as forward proxy to deliver mail using the IP address HAProxy is serving on.
This is not the typical use case of HAProxy because it’s not load balancing, it is connecting THROUGH haproxy to use the IP address that HAProxy is on. They wrote an article about this here:
I’ve googled and not found much. The one article I did find is like the opposite of what I want:
They say to use the following:
frontend ft_smtp
bind 12.34.56.78:25
mode tcp
timeout client 1m
log global
option tcplog
default_backend bk_smtp
backend bk_smtp
mode tcp
log global
option tcplog
timeout server 1m
timeout connect 7s
server postfix 10.10.10.101:2525 send-proxy
I am wanting to connect to HAProxy on port 2525, and have it act as a proxy to connecting to smtp servers, i.e. test@gmail.com.
I am not sure if I explained this well enough, if not please let me know. Any help would be much appreciated as I can not find much online.
1 post - 1 participant