I would like to completely firewall my linux box's internet interface. I want to block all incoming packets and accept only outgoing packets from sendmail, as this is the only service that should need internet access. Does sendmail use port 25 for outgoing packets? Do I need any other ports open?
Also, when setting an iptables rule for OUTPUT packets, do I refer to the source port instead of the destination port?