Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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

  2. #2
    Just 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •