I have 3 IP addresses assigned to my Internet interface. Off course two of them are virtual. So let say I have 212.1.1.1 which is originaly asigned to firewall for IPSec/VPN, then 212.1.1.2 that is a new one publishing an WEB server using a DNAT rule and 212.1.1.3 which is where my MX record points to. The problem is that I activate the SMTP proxy instead publishing with DNAT rule so the port 25 looks open for the three IP addresses. Off course another SMTP server will enter only using the 212.1.1.3 since the DNS is pointing that as MX record... but a hacker could try to mess with the other two IP addresses.
How can I assign the SMTP proxy to the 212.1.1.3 only????
I thought making some DNAT rules to no place but looks quite dirty solution to me . Any idea?
Thanks for the info Jim. One other question. Using those same commands, can I change the port to something other than port 25? Or will that traffic not get handed to the SMTP Relay correctly if that is done?
I believe you could use a DNAT rule to translate the incoming port 8025 (for example) traffic to port 25. But why? Other mail servers won't be able to send you mail. If you're only receiving mail from other specific sources and want to go through the bother of reconfiguring them as well, I suppose it's possible.
Yea, I only want to receive mail from one specific IP. And now that I'm looking over the the fix you posted above in more detail, I see that I should be able to put the single IP I want to receive traffic from right into that same rule. That should work perfectly.
Yea, I only want to receive mail from one specific IP. And now that I'm looking over the the fix you posted above in more detail, I see that I should be able to put the single IP I want to receive traffic from right into that same rule. That should work perfectly.