Proxy protocol support
kent at micro-source.net
Thu Oct 30 19:53:54 CET 2014
I don't know if amavis supports the PROXY protocol but I kinda doubt it. I've solved the problem by putting haproxy in between postfix and amavis like this
--> Postfix (ingress) --> haproxy --> amavisd --> Postfix (egress) -->
The ingress Postfix server does all the SPF and RBL checks. Then it sends the messages to haproxy which divides the load between several amavis servers to do the heavy lifting. You should add the IP address of the haproxy server to the trusted_networks list in Spamassassin. In my case, I'm running haproxy on the same machine as the ingress Postfix server. So I have 2 Postfix/haproxy servers and 6 amavisd servers followed by 2 Postfix egress servers. It been working great so far.
From: Tom Sommer [mailto:mail at tomsommer.dk]
Sent: Monday, October 27, 2014 8:42 AM
To: amavis-users at amavis.org
Subject: Proxy protocol support
Does amavis support the PROXY protocol?
I want to create an amavis cluster with a load-balancer in front of all the nodes, I was thinking haproxy.
I need the source IP in amavis to be the mailserver and not the load balancer (to support forward_method=*), the PROXY protocol seem to fix this?
More information about the amavis-users