Skip to main content

csf & modsec2: identify user login of webmail

Comments

5 comments

  • Infopro
    CSF should be alerting you by email when it blocks an IP. Your question is unclear.
    0
  • upsforum
    for example, if a user try login with myemail@domain.com on webmail login form and wrong ten times csf block their ip, is possible see that is user myemail that made the mistake?
    0
  • Infopro
    You should see the IP that's been blocked. And you know the email account that the IP attempted to login to. What else are you looking for?
    0
  • quizknows
    If I read this right, I think he's wondering if you can see what e-mail address a blocked IP was trying to log in to. First off, modsec isn't going to parse cPanel access logs, where webmail access is logged. If you want to see what e-mail address and IP was trying to log into, check the cPanel access log. Say the blocked ip is 123.123.123.123 then you would run this at a root shell: grep 123.123.123.123 /usr/local/cpanel/logs/access_log
    The information could also be logged in /var/log/maillog since I think the webmail apps try to use an imap type login, and failed imap/pop logins are usually in maillog. You could check with something like: grep 123.123.123.123 /var/log/maillog
    I hope this helps.
    0
  • upsforum
    thank you quizknows, I think that it is sufficient solution ;-)
    0

Please sign in to leave a comment.