amavis behind haproxy

Vitali Quiering vitali at quiering.com
Sun Nov 4 18:01:20 CET 2018


Thank you very much, I am using the best of both worlds now, everything behind haproxy. Some server use pre-queue milter and some use content-filter smtp transport. Works like a charm.

Regards,
Vitali



Von meinem iPhone gesendet
> Am 09.10.2018 um 20:28 schrieb Tom Sommer <mail at tomsommer.dk>:
> 
> 
>> 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