IPtables
http://www.cyberciti.biz/faq/iptables-block-port
To block outgoing port # 25
/sbin/iptables -A OUTPUT -p tcp --dport 25 -j DROP /sbin/service iptables save