[SOLVED] Multiple Relayhost Postfix

Chriswiss

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

I have a two-node cluster running and an external postfix server.

Currently my postfix server is configured to relay mails to the PMG master node, with relayhost = [gw.hostname.ch]:26

If I want postfix to also use the second node to relay mails (if the master is disconnected for example), what is the best use?

I was thinking of two solutions.

The first one:

--> relayhost = [hostname.ch]:26 so that Postfix can search for MX records on the domain.

--> Make a "smtp_fallback_relay" on Postfix

What do you think?
 
After several configuration tests, the best choice is to use the smtp_fallback_relay option.

CG
 
  • Like
Reactions: kiil
How did you save postfix config with smtp_fallback_relay option.
After every reboot the setting is missing from the config.
 

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!