The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Creating spammer IP report based on exim_rejectlog

Discussion in 'E-mail Discussions' started by patrique, Nov 11, 2007.

  1. patrique

    patrique Member

    Joined:
    Oct 18, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hello everyone,

    I'm trying to find a way that I can create some type of report that would read /var/log/exim_rejectlog for IPs that are currently hitting my server and show how many times each source IP is used as well as which emails are under the most attacks.

    I'm thinking of using that info and then creating a deny rule for that IP...

    Is such a thing possible?

    thanks.
     
  2. dynaweb

    dynaweb Well-Known Member

    Joined:
    May 14, 2003
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Oregon
    Merry Christmas

    Code:
    tail -90000 /var/log/exim_rejectlog | awk -F "[" '{ print $3 }' | awk -F "]" '{ print $1 }' | sort | uniq -c | sort -g
    I made this myself and it really helped me.
     
Loading...

Share This Page