I want to allow the qmail to send mail out from the box and allow php scripts to use the MX functions to identify bad domains. The problem is that this means I need to have all ports open for outgoing . Is there a way to set up for outgoing mail and mx record checks to be done without opening all ports.