Proxy protocol support

Kent Oyer kent at
Thu Oct 30 19:53:54 CET 2014

Hi Tom,

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.


-----Original Message-----
From: Tom Sommer [mailto:mail at] 
Sent: Monday, October 27, 2014 8:42 AM
To: amavis-users at
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?


Tom Sommer

More information about the amavis-users mailing list