amavis behind haproxy
Tom Sommer
mail at tomsommer.dk
Tue Oct 9 20:28:54 CEST 2018
On 2018-09-19 14:15, Vitali Quiering wrote:
> 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 just read the changelog, have you tried with $haproxy_target_enabled?
From the release-notes:
- Supports receiving SMTP/LMTP connections through a HAProxy,
recognizing 'PROXY protocol Version 1' data on the first line read,
after a connection from HAProxy to amavisd has been established.
Connection data (IP addresses and ports) received via this protocol
end up replacing such data in the the Amavis::In::Connection object
($conn). Set configuration variable $haproxy_target_enabled (also
a member of policy banks) to true in order to enable this protocol.
---
Tom
More information about the amavis-users
mailing list