Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-10-2010, 11:50 AM
Active Member
 
Posts: 29
Default [SOLVED] Find IP of Failed Login attempts to webmail

It seems our system is being attacked by somebody/something trying to brute force a couple of our accounts. I'd like to find the IP of the person so I can block them, but I look at the IP in the audits.log file and it shows up as our mail servers external IP address. Here is a line

Code:
[btpool0-94] [ip=xxx.xxx.xxx.xxx;] security - cmd=Auth; account=bogus@domain.com; protocol=soap; error=authentication failed for bogus, invalid password;
Same basic thing is showing in the mailbox.log file. I'm not sure where else to look to see who is connecting. I'm hoping somebody can guide me to the proper log file. Thanks!
Reply With Quote
  #2 (permalink)  
Old 11-10-2010, 12:32 PM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Quote:
Originally Posted by alapierre View Post
It seems our system is being attacked by somebody/something trying to brute force a couple of our accounts. I'd like to find the IP of the person so I can block them, but I look at the IP in the audits.log file and it shows up as our mail servers external IP address. Here is a line

Code:
[btpool0-94] [ip=xxx.xxx.xxx.xxx;] security - cmd=Auth; account=bogus@domain.com; protocol=soap; error=authentication failed for bogus, invalid password;
Same basic thing is showing in the mailbox.log file. I'm not sure where else to look to see who is connecting. I'm hoping somebody can guide me to the proper log file. Thanks!
You could use something like fail2ban or OSSEC to block unwanted hacking attempts.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 11-10-2010, 12:50 PM
Active Member
 
Posts: 29
Default

It looks like those operate by blocking the IP <HOST> of the computer connecting, but the problem is in the logs the IP shows up as our mail servers external IP Address, so how would it know what to block?
Reply With Quote
  #4 (permalink)  
Old 11-10-2010, 12:58 PM
Active Member
 
Posts: 29
Default

Ok, just found out a bit more information. Those specific logs are generated whenever somebody sends an email through our server. I thought they were trying to login through the webmail, but it appears they're just trying to send mail through our server. It's really only annoying because after a certain number of attempts, that users account gets locked and I have to unlock it so they can use their mail again. Obviously I don't want to have to keep doing that, as eventually they may guess their password.
Reply With Quote
  #5 (permalink)  
Old 11-10-2010, 06:08 PM
Special Member
 
Posts: 118
Default

I tried fail2ban about a year ago, and while it seems to work well for a few days, the logs,rules, blocks, unblock lists get extremely large if you have a lot of traffic. It would eventually bog down and I'd have to manually shut it down, clean up, and start it up again. I'd love to hear from others who have success using it with between 50K to 100K incomings a day.
__________________
Work
7.0.1 UBUNTU8_64 UBUNTU8_64 NETWORK

Home
7.0.1 UBUNTU8_64 UBUNTU8_64 FOSS
Reply With Quote
  #6 (permalink)  
Old 11-11-2010, 12:21 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Quote:
Originally Posted by alapierre View Post
Ok, just found out a bit more information. Those specific logs are generated whenever somebody sends an email through our server. I thought they were trying to login through the webmail, but it appears they're just trying to send mail through our server. It's really only annoying because after a certain number of attempts, that users account gets locked and I have to unlock it so they can use their mail again. Obviously I don't want to have to keep doing that, as eventually they may guess their password.
In that case you should enforce secure passwords and you can set the "Time to lockout the account", details below from the on-line help.

Quote:
This is time in either days, hours, minutes, or seconds that the account is locked out after the user fails to log in. The account status is automatically changed to active after this time expires. When this is set to 0, the user is locked out until the correct password is entered or the administrator resets the password.
__________________
Regards


Bill

Last edited by phoenix; 11-12-2010 at 09:08 AM..
Reply With Quote
  #7 (permalink)  
Old 11-12-2010, 08:47 AM
Active Member
 
Posts: 29
Default

Sounds good, thanks for your help.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.