I recently configured sendmail and qpopper(pop3 server) on my Red Hat 7.2 machine. Both those services seem to work correctly. I only have trouble when I try to send email from that machine with the firewall up. Receiving mail with the firewall up works fine though. When the firewall is down though, both work correctly. It is an ipchains firewall.
I would like to temporarily allow all traffic through the affected ports. I have tried to do this using the following rules, but I have not succeeded. Like I said, sending email while the firewall is up is not working.
As far a I know, this should allow the traffic that I need to go through. Is there something I am missing that is not letting my attempts to send email from this box go through??
If these rules are correct, then there must be some other rule blocking my outgoing email traffic. If that is the case, I don't know where to start in order to find the rule that is blocking my outbound email. Any help would be greatly appreciated.(I'm pulling my hair out on this one!) Thanks.
ipchains -A output -s 0/0 -d 0/0 53 -p tcp -j ACCEPT
ipchains -A input -s 0/0 53 -d 0/0 -p tcp -j ACCEPT
ipchains -A input -s 0/0 53 -d 0/0 -p udp -j ACCEPT
ipchains -A output -s 0/0 -d 0/0 53 -p udp -j ACCEPT
ipchains -A output -s 0/0 110 -d 0/0 -p tcp -j ACCEPT
ipchains -A input -s 0/0 -d 0/0 110 -p tcp -j ACCEPT
ipchains -A output -s 0/0 25 -d 0/0 -p tcp -j ACCEPT
ipchains -A input -s 0/0 -d 0/0 25 -p tcp -j ACCEPT