Ubuntu 24.04
Webmin version - 2.202
Virtualmin version - 7.20.2
I deployed this server only with 1 net interface eth0 (let’s say 1.1.1.1)
this IP is shared between several domains
while ago I added second interface eth1 and IP (lets say 2.2.2.2)
I want eth0 and eth1 to serve different domain independently, so far I am using is for mail server and I want to have different IPs for different domains.
I added new IP in network interfaces from Webmin;
also added in shared IPS from Virtualmin.
And changed IP address for one particular domain (let’s say domain2.com), it sent email anyway with 1.1.1.1 (mail-tester is offering to add 1.1.1.1 also in SPF records, cause only 2.2.2.2 is in it).
After this I tried to bind domain2.com with 2.2.2.2 and in postfix main.cf
in sender_transport file :
instead binding directly domain with IP
i binded domains with smtpnames and thenin master.cf i configured smtp name with ip binding and helo name.