I dont understand.
Maybe I have some flaws in my logic.
I have 2 server. Mainserver with PowerMTA installed. And OutboundServer with HAProxy and PowerMTA installed.
Virtualhost in MainServer
<proxy mta-proxy-a>
# the proxy server listens on IP 10.1.2.3, port 5000 for incoming connections
server 10.1.2.3:5000
# the client IP tells the proxy what source IP to use when connecting to the destination host
client (IP of OutboundServer):0 (hostname of OutBoundServer)
</proxy>
<virtual-mta standard-vmta>
host-name mail.example.com
max-smtp-out 850
<domain *>
use-starttls yes
require-starttls no
</domain>
smtp-source-host (IP of MainServer) (hostname of MainServer)
use-proxy mta-proxy-a
</virtual-mta>
haproxy config file on OutBoundServer
frontend ft_smtp
bind (IP of OutBoundServer):2525
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 pmta 10.1.2.3:5000 send-proxy
PowerMTA on OutBoundServer is configured like a powermta without haproxy.
In my logic I should now connect to the MainServer through SMTP and the mail should be sent with the IP of OutBoundServer. But the mails arent going out. only in.
Where is my error?