PMG - Different outgoing IP for different trusted server


New Member
Nov 12, 2018
We have a configuration where we have one PMG server with 1 IP on it.

We connect 4 servers to this PMG server for outbound mail filtering.

We wish to add 3 more public IPs to PMG so that each server connected to PMG sends outbound emails through its own dedicated IP.

Currently it is 4:1 where all 4 send through same IP .
We wish to have 1:1 where all 4 will send through their own IPs.

How can we achieve this ?
This seems a bit tricky and involved...
* Are the 4 servers all responsible for a different domain?
* if yes you could take a look at putting yet another layer of smtpd servers after PMG's outbound smtpd instance:
* it is configured in /etc/postfix/ and listens to
* you could add some parameters to its invocation (sender_dependent_transport maps), and map each domain to a smtp-service configured in the, listening on another port, which sets smtp_bind_address to the desired outbound ip
(/etc/postfix/ gets rendered through PMG's template system (see the admin-guide:

see the following links for a few pointers:

As said, this looks quite complicated (and sounds quite painful to debug) and I would not consider this a supported setup - you could consider simply setting up 4 PMG instances instead.

hope this helps!

EDIT: added links to postfix-config suggestions


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!