[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.