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