SMTP Auth Failure - Brute Force Attack - Blocking
On my cPanel server we have recently found that we are receiving hundreds of attempts per hour to connect to our server via SMTP to send e-mails - although the SMTP authentications are successfully failing.
These are from many countries including Serbia, Russia, Taiwan, Vietnam, Libya and many more.
cPanel and the sites on the server send out e-mail, but any mail clients should be set to send out e-mails via their own ISP's (rather than via the server).
Is there a way to block access to any remote connections trying to send e-mail out using the server this way ?
I'm concerned about the number of attempts being received.
Here is a example of one of the attempts from the logs - It appears to be a brute force attack going by the number of attempts taking place.
Any comments/advise appreciated. Thanks Daniel
2015-02-24 22:00:23 SMTP connection from [201.86.105.222]:54803 (TCP/IP connection count = 1)
2015-02-24 22:00:26 dovecot_plain authenticator failed for (Cleiton-PC) [201.86.105.222]:54803: 535 Incorrect authentication data (set_id=dybattelle)
2015-02-24 22:00:33 dovecot_login authenticator failed for (Cleiton-PC) [201.86.105.222]:54803: 535 Incorrect authentication data (set_id=dybattelle)
2015-02-24 22:00:33 SMTP connection from (Cleiton-PC) [201.86.105.222]:54803 closed by QUIT
2015-02-24 22:00:33 SMTP connection from [201.86.105.222]:54831 (TCP/IP connection count = 1)
2015-02-24 22:00:36 cwd=/etc/csf 4 args: /usr/sbin/sendmail -f root -t
Any comments/advise appreciated. Thanks Daniel
-
Do you have CSF installed. Whilst this won't entirely eradicate the attempts, it will blacklist their IP and slow them down, making them go elsewhere. I have mine set for 3 failed SMPT login attempts and your IP is blacklisted. I have seen situations where they instantly return via a proxy, but after 2 or 3 proxyies, they get the message and move on. 0 -
]Do you have CSF installed. Whilst this won't entirely eradicate the attempts, it will blacklist their IP and slow them down, making them go elsewhere. I have mine set for 3 failed SMPT login attempts and your IP is blacklisted. I have seen situations where they instantly return via a proxy, but after 2 or 3 proxyies, they get the message and move on.
Thanks for your reply. I already have CSF installed and have it set to block after 3 failed attempts. I've also increased the size of the block list to 500. Unfortunately they are coming through so quickly that this gets overwritten - They are coming from literally hundreds and hundreds of different IP addresses.0 -
If you have: SMTP_BLOCK enabled in CSF, I believe you need to leave that one in: Home " Security Center " SMTP Restrictions Disabled. 0 -
]If you have: SMTP_BLOCK enabled in CSF, I believe you need to leave that one in: Home " Security Center " SMTP Restrictions Disabled.
Thanks for both replies. Any other ideas ??0 -
That link above to the cPanel Documentation concerning email abuse has quite a few more ideas. :) 0 -
Do you have CSF installer on your server? 0 -
]Do you have CSF installer on your server?
Yes, CSF is installed and the IP's are being blocked after two attempts, but there are just far too many different IP addresses attempting this :(0 -
I almost hate to say this as I don't want to make light of the issue you're facing, but, the system is doing what you want it to do. The attacks will pass and there will be more to follow, you can count on it. Keep the doors locked tight. 0 -
Is there no way to stop them even trying to login ? - Somehow disable the facility for sending emails via the server from an external address ? - ie, so emails can go out from the server, and individuals can use their ISP's SMTP server for outgoing e-mail instead ? 0 -
Is there no way to stop them even trying to login ?
I think that's my point. They are being stopped from logging in.0 -
]I think that's my point. They are being stopped from logging in.
I understand - but if I can somehow disable the SMTP function for this, then they wouldn't even get the prompt - so can't even attempt to login..0 -
How will your valid users login to check their email? 0 -
]How will your valid users login to check their email?
I'm only talking about SMTP on port 25 for outgoing email from the server, not for users picking up their e-mail via POP3. Thanks0 -
]I'm only talking about SMTP on port 25 for outgoing email from the server, not for users picking up their e-mail via POP3. Thanks
They are trying to send you mail on SMTP port 25. They don't try to login to POP3/IMAP. This is nothing special. In last two days I have 1000 mails/hour from CSF. You can disable receiving this mails in conf file (for a few days). -- Davor0 -
]They are trying to send you mail on SMTP port 25. They don't try to login to POP3/IMAP. This is nothing special. In last two days I have 1000 mails/hour from CSF. You can disable receiving this mails in conf file (for a few days). -- Davor
That's the thing - They are not trying to send mail to the server, but send e-mail via the server (ie, use the server for sending out spam e-mails).0 -
Hello :) Please ensure you also review this thread: Port 25 Usage Thank you. 0 -
]Hello :) Please ensure you also review this thread: Port 25 Usage Thank you.
Thanks - I understand this. I wasn't referring to blocking port 25, but trying to block smtp auth requests.0
Please sign in to leave a comment.
Comments
18 comments