DTNX Postmaster said the following, on 02-11-14, 17:21:
On 01 Nov 2014, at 20:41, Roman Naumenko <ro...@naumenko.ca> wrote:
I'm trying to setup postfix behind haproxy for hailover and loadbalancing
purpose. It works fine with
smtpd_upstream_proxy_protocol = haproxy
but internal systems like amavis can't deliver mail locally, because :25 is no
longer accepts standard smtp.
Is it possible to configure non-proxy smtpd on port 25 and proxy-smtpd on other
simultaneously?
Not simultaneously, unless you bind haproxy to the public IP address, and a
regular smtpd to localhost, and have amavis deliver on localhost. Or you could
have amavis deliver on an alternate port, and bind a regular smtpd there?
Mvg,
Joni
postfix host is in DMZ, only haproxy has public IP.
I ended up with postscreen for haproxy connections
postscreen_upstream_proxy_protocol = haproxy
and master.cf
10020 inet n - n - 1 postscreen
smtpd pass - - n - - smtpd
smtp inet n - n - - smtpd
--Roman