[SOLVED] Mail Gateway: HA Cluster custom templates per node

genetzhs

New Member
Nov 18, 2024
1
0
1
Hello,

I have a cluster with four nodes and I would like for one node to route all outgoing emails through a relay host. Because modified templates from /etc/pmg/templates/ are automatically synced from the master node to all cluster members, how can I make custom config per node without being synced and overwritten from master node

Thanks
 
The cluster sync will always copy the templates to all nodes - however you have `dns.hostname` and `dns.fqdn` as variables, which you can use inside the templates - so you could create an `if/else` construct to do the node-specific changes there.

I hope this helps!
 

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!