Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, How can I prevent my postfix server from receiving hundreds of mails when each of with is the same? I know that it can be done by using iptables ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2008
    Posts
    2

    prevent postfix fro flood attack


    Hi,
    How can I prevent my postfix server from receiving hundreds of mails when each of with is the same? I know that it can be done by using iptables with something like this:
    Code:
    iptables -N syn-flood
    iptables -A INPUT -p tcp --syn -j syn-flood
    iptables -A syn-flood -m limit --limit 1/min --limit-burst 4 -j RETURN
    iptables -A syn-flood -m limit --limit 1/min --limit-burst 4 -j LOG --log-level debug --log-prefix "SYN-FLOOD: "
    iptables -A syn-flood -j DROP
    iptables -A INPUT -p icmp -m state --state ESTABLISHED,RELATED -j ACCEPT
    iptables -A OUTPUT -p icmp -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
    but it's only part of solution because it only limit number of messages to 5 per minute.
    The best solution would be that, when I could block particular email or IP address

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077

Posting Permissions

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