Virtual network Interfaces

lc833dc

New Member
May 21, 2024
4
1
3
Dear,

we have some troubles with the configuration of virtual network interfaces on our proxmox mail gateway.

We have this:

- a proxmox mail gateway installed on a VM;
- on this VM we have the main IP of the VM itself;
- the carrier, over we took the VM, let us the ability to buy additionals IPs to attach on the same nic (enp1s0 has the main ips, the others ips could be configured as virtual device like enp1s0:1, enp1s0:2 and so on....);
- these ips have a reverse and a ptr record, for example:

1.2.3.4 -> myrelay.proxmoxserver.com -> 1.2.3.4
1.2.3.5 -> myrelay-1.proxmoxserver.com -> 1.2.3.5
2.3.4.5 -> myrelay-2.proxmoxserver.com -> 2.3.4.5

What we use proxmox for:

- we use proxmox mail gateway basically only as smarthost for others servers (no input traffic);

What we want to do:

- basically what we want to do is to have the ability to switch easily from the main ip to the secondary one, as outbound traffic. In case for example the main ip got black listed;

What problems we have in order to archive that:

- two main problems:

1) we can't configure the virtual ips from the interface itself (but this is not a real problem as long as we can do it via fs)
2) as far as I can see the postfix of proxmox send the outgoing email traffic only via the main IP of the server;

What is the best way to archive that? So to force proxmox to use only one specific interface for the outgoing email traffic?
Thank you