Results 1 to 2 of 2
I have an exim mail server running with no problems at all, recently I added apache to run a site and made it accessible to specific IPs with iptables. But ...
- 05-16-2006 #1Just Joined!
- Join Date
- May 2006
- Posts
- 2
Iptables and Exim
I have an exim mail server running with no problems at all, recently I added apache to run a site and made it accessible to specific IPs with iptables. But exim can't seem to send any emails when the firewall is up. When exim does the MX lookup, it just ends up with a timeout. I've tried a few different rules, like:
-A OUTPUT -o eth0 -j ACCEPT
But I'm not sure what the rule should be. Suggestions?
Heres what I've got setup so far:
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:exim
ACCEPT all -- 12.34.56.78 anywhere
ACCEPT all -- 12.34.56.78 anywhere
ACCEPT all -- 12.34.56.78 anywhere
ACCEPT all -- 12.34.56.78 anywhere
ACCEPT all -- localnet/24 anywhere
DROP all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Thank you
- 05-23-2006 #2Just Joined!
- Join Date
- May 2006
- Posts
- 2
Got it to work.
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
fixed it I think.
and these default switches helped:
iptables -P INPUT DROP
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT


Reply With Quote
