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!
 

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!