amavis behind haproxy

Vitali Quiering vitali at quiering.com
Wed Sep 19 14:15:27 CEST 2018


Hello,

I am planning to setup a clustered amavis setup with loadbalancing haproxy. There are approx. 80 standalone mailservers (postfix, dovecot) that will use the new amavis cluster.

I thought about the setup like this:
Postfix receives the mail and sends it (content-filter) to the haproxy on port 10024 which passes the tcp connection to one of the amavis servers on port 10024. After scanning amavis sends it back to postfix on port 10025.

I already got the forward_method, socket_bind and inet_acl setup correctly. The problem I’m facing now is the ip that amavis sees and wants to send the result to. This is the haproxy ip address which of course doesn’t work.

Is this possible at all?
Do I need amavisd-milter? If yes, why? What’s different besides before or after queue?

Thank you very much

Regards,
Vitali


More information about the amavis-users mailing list