<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Thank you very much Tom.<div class=""><br class=""></div><div class="">If a postfix (<a href="http://mta01.example.com" class="">mta01.example.com</a>, the actual mailserver) sends a mail to another postfix (<a href="http://mta02.example.com" class="">mta02.example.com</a>) that sends it to amavis (<a href="http://av.example.com" class="">av.example.com</a>), how can you send the scanned mail back to <a href="http://mta01.example.com" class="">mta01.example.com</a>?</div><div class=""><br class=""></div><div class="">Where do you loadbalance?</div><div class=""><br class=""></div><div class="">I am talking about up to 80 postfix instances that will send mail to <a href="http://mta02.example.com" class="">mta02.example.com</a>.</div><div class=""><br class=""></div><div class="">Regards,</div><div class="">Vitali<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Am 19.09.2018 um 15:09 schrieb Tom Sommer <<a href="mailto:mail@tomsommer.dk" class="">mail@tomsommer.dk</a>>:</div><br class="Apple-interchange-newline"><div class=""><div class="">On 2018-09-19 14:15, Vitali Quiering wrote:<br class=""><br class=""><blockquote type="cite" class="">I already got the forward_method, socket_bind and inet_acl setup<br class="">correctly. The problem I’m facing now is the ip that amavis sees and<br class="">wants to send the result to. This is the haproxy ip address which of<br class="">course doesn’t work.<br class=""></blockquote><br class="">The problem is, IIRC, that haproxy doesn't send XFORWARD - it sends its own variant, supported by Postfix.<br class=""><br class="">So AFIAK you need Postfix in front the preserve the IP.<br class=""><br class="">You could in theory have postfix do the balancing between the multiple amavis servers (content filters), with a randomized lookup table, personally I just have a postfix in front of every amavis instance.<br class=""><br class="">--<br class="">Tom<br class=""></div></div></blockquote></div><br class=""></div></body></html>