Hi Andreas
On Thu, Aug 20, 2020 at 01:28:38PM +0200, Andreas Thienemann wrote:
> My plan was to setup a proxy on a backup machine somewhere else and just
> proxy 25/tcp to my primary MX. My initial plan was to use
> smtpd_upstream_proxy_protocol = haproxy and thus inform the smtpd of the
> real source IP of the connection to make limits etc. work again.
Use a different port? SMTP with proxy protocol is only spoken between
controlled systems, so selecing some other port for it is no problem.
Just add to master.cf:
| 2525 inet n y n - - smtpd
| -o smtpd_upstream_proxy_protocol=haproxy
And select the appropriate port on the forwarder.
Regards,
Bastian
--
Those who hate and fight must stop themselves -- otherwise it is not stopped.
-- Spock, "Day of the Dove", stardate unknown