Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Prevent DOS attack for IMAP and POP3 Authenication  (Read 3797 times)

0 Members and 1 Guest are viewing this topic.

mohitht

  • Guest
Prevent DOS attack for IMAP and POP3 Authenication
« on: January 15, 2014, 06:28:37 pm »
Hi All,

If any IMAP and POP3 authentication fails constantly with the mail clients it may be the DOS attack.

We can check  any accounts that is locked due to excessive login failures in cPHulk protection if enabled.


WHM Home » Security Center » cPHulk Brute Force Protection

It can be also analysed by

WHM Home » Service Configuration » Mailserver Configuration

we can use the following command to check large number of authentication failures per ip address.

# awk ‘/auth failed/ {for (i=1;i<=NF;i=i+1) if ($i~/rip/) print $i}’ /var/log/maillog |sort|uniq -c|sort -n| tail
 


We can block large requests in the CSF firewall by

# csf -d <ipaddress>



Thanks  :)