PMG cluster with different relay servers

f4242

Renowned Member
Dec 19, 2016
114
5
83
Quebec, QC
Hello,

I'm planing a rebuild of our mail infrastructure. I would use two PMG servers in a cluster as frontal MX. Each MX will be in differents sites. Let's name the first instance, PMG-A and the second one PMG-B.

Each PMG instance would relay to a local Postfix instance (on same site). So PMG-A should relay to Postfix-A and PMG-B should relay to Postfix-B. Then the Postfix server will deliver the mail to a local Dovecot clusterized server

I just installed one PMG server so far, but there is something that tell me I can't do what I just described. Let me know if I'm wrong, but the transports settings tab will be duplicated across the PMG cluster. What I would need is to be able to set the transport relay for each server.

Is it something doable?

Thank you!
 
Last edited:
If this can help others... this is my workarround.

* On each PMG host, add a static fake smtp hostname in /etc/hosts. Assign the IP of the SMTP you want to use on this PMG host. Lets call it fake-smtp-etc-hosts.example.com.

* Create a new template file for main.cf.in in /etc/pmg/templates and add this line in the Postfix configuration:
smtp_host_lookup = native

* In PMG webadmin, configure your default relay to fake-smtp-etc-hosts.example.com.

Voilà! Each PMG host will relay mail to different SMTP server across the cluster.

I hope this feature will be added one day in PMG. I'm sure this can be useful for many organizations where MX are located in differents DC.
 
Last edited: