[SOLVED] HA Relay host to HAProxy

Chriswiss

Well-Known Member
Mar 14, 2017
65
5
48
36
Hello,

I have two mail backend servers with Postfix behind the PMG gateways.

I would like to be able to distribute mail on these servers with high availability.

I initially used "smtp_fallback_relay" to the back-up server in the Postfix PMG configuration, but this causes problems with mail bounce.

I'm thinking of mounting a HAProxy behind PMG on port 25 for the default relay.

Has anyone ever tried this configuration?

What would be the minimum recommendations between PMG and the proxy?

Thanks
Chris
 
Do the 2 backend servers accept mail for the same domains?
If yes - why not use DNS-round robin (enter the same DNS-name for the 2 IPs) ? With mail this usually works quite well - and you don't add another single point of failure (HAProxy)

else please explain your setup a bit more
 
Yes, both servers accept mail for the same domains and clients.

I just did some tests with the proxy behind PMG and it works very well.
You just have to recover the original IP of the gateway on the postfix backend.

My mail infrastructure is composed as on the attached images. (It's a vague computer graphics :);) )
For IMAPS it's more or less the same thing.

This way I have high availability, both for sending and receiving (for backends and gateways).

The only breaking point is my HAProxy for sending emails.
For the reception with PMG I have a good redundancy.

Chris
 

Attachments

  • smtp.PNG
    smtp.PNG
    20.8 KB · Views: 30
  • smtp-submission.PNG
    smtp-submission.PNG
    23.8 KB · Views: 28
Should work as well (apart from the HAProxy) - but as said - usually DNS-round robin works quite well for Mail
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!