Allow only localhost connections to the SMTP port (ban all outside) on Linux
Allow only localhost connections to the SMTP port (ban all outside) on Linux (Ubuntu etc). You could use: iptables -A INPUT -p tcp -s localhost –dport 25 -j ACCEPTAlthough the first version is better because self-addressed packets do not necessarily