I though I filtered out smtp on port 25 but when I run iptables -L to list active firewall rules, I get the following still in my result:
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
should't that be removed, I have put the following rule in comments in my shell script, saved and reloaded iptables
# iptables -A INPUT -p tcp -m tcp --dport 25 -j ACCEPT
# iptables -A OUTPUT -p tcp -m tcp --dport 25 -j ACCEPT
UPDATE: the script I have used is here, only difference is that I commented out the port 25 lines http://linode.com/wiki/index.php/CentOS_IPTables_sh
Just use Centos builtin iptables mechanisms they are better designed that using a script, it flushes rules, loads modules, checks syntax etc.