IP Pool for domains

amit pandey

New Member
Jul 3, 2019
1
0
1
33
Hello,

Is there any way to define the IP pool for each domain in Proxmox Mail Gateway like I have 5 IPs and wanted to allocate the first IP 2 for domain xyz.com and 3 IPs for abc.com domain.

So that email send from domain xyz.com will use first 2 IP to send email i.e. 10.1.1.1 & 10.1.1.2 (for example)
and domain abc.com will send email form 192.168.1.2, 192.168.1.3 & 192.168.1.4 ( for exaple)
 
It is possible by quite heavily modifying the 'master.cf.in' and 'main.cf.in' template for the postfix configuration (see https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#_service_configuration_templates)

You probably would need to configure sender_dependent_default_transport_maps - see http://www.postfix.org/postconf.5.html#sender_dependent_default_transport_maps

but TBH I'd rather just setup 2 separate PMGs for the 2 domains.
Why would you want to split the outbound IPs in the first place?

Hope this helps!