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 08-18-2011, 03:32 PM
Elite Member
 
Posts: 275
Question [SOLVED] Securing a zimbra server, fail2ban

Hi everyone

We've been running a very low-traffic Zimbra test installation over our ADSL connection for over a year now with no problems. But I suddenly realised, I don't have fail2ban running on this Zimbra machine to filter any brute-force login attempts made to the Zimbra services.

What sort of security should we be implementing on an internet-facing Zimbra machine?
Has anyone got fail2ban running on a Zimbra installation?
Normally it's very easy to get up and running but with Zimbra the logging formats or locations are very different to that of standard packages that already have fail2ban jail configurations out there.

Does Zimbra have anything like this built-in?
Is there any other security software we should look at installing on our Zimbra machine? I was told that keeping it as "pure" as possible would be the best way forward.

Cheers, B
__________________
My Zimbra Bugs Wishlist: 16411, 24567, 35676, 36430, 37770, 41872, 43733, 44384, 46383, 47759
And a way to associate mailto: handlers with a Zimbra Prism webapp

Last edited by batfastad; 08-19-2011 at 05:07 AM..
Reply With Quote
  #2 (permalink)  
Old 08-18-2011, 06:50 PM
Outstanding Member
 
Posts: 717
Default

Zimbra has the auto-lock feature, which will accomplish this, but on a much broader spectrum. It will lock an account for X number of minutes/hours after Y number of failed password attempts. That way if it is getting brute-forced from multiple IP's, you're still covered. The account will be automatically unlocked after the specified period of time.

You can find these settings under the Advanced tab of the COS or the Account.
__________________
01 Networks, LLC / Cybernetik.net
Zimbra NE and OSS Cloud Hosting
Shared Web Hosting
Consulting Services
Reply With Quote
  #3 (permalink)  
Old 08-19-2011, 12:54 AM
Elite Member
 
Posts: 275
Default

Great!
And that feature works across all services? So AJAX UI logins, IMAP logins, POP logins etc?

Cheers, B
__________________
My Zimbra Bugs Wishlist: 16411, 24567, 35676, 36430, 37770, 41872, 43733, 44384, 46383, 47759
And a way to associate mailto: handlers with a Zimbra Prism webapp
Reply With Quote
  #4 (permalink)  
Old 08-19-2011, 02:24 AM
Zimbra Consultant & Moderator
 
Posts: 20,314
Default

Quote:
Originally Posted by batfastad View Post
Great!
And that feature works across all services? So AJAX UI logins, IMAP logins, POP logins etc?
No, that's a web ui feature. I'd also suggest you implement a strong password policy reduce the likelihood of an attacker getting into an account - see the Admin UI for the tool to set it. Any particular reason you don't have the server behind a firewall of NAT router?
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 08-19-2011, 03:33 AM
Elite Member
 
Posts: 275
Default

Ah ok. So people can still attempt brute-forcing over IMAP or POP services.

This machine is actually behind an IPCop firewall box. But the ports for SMTP, HTTPS, SMTP submit and IMAP are open to the internet.

Has anyone had any success installing fail2ban or similar on a Zimbra server?

Cheers, B
__________________
My Zimbra Bugs Wishlist: 16411, 24567, 35676, 36430, 37770, 41872, 43733, 44384, 46383, 47759
And a way to associate mailto: handlers with a Zimbra Prism webapp
Reply With Quote
  #6 (permalink)  
Old 08-19-2011, 03:54 AM
Zimbra Consultant & Moderator
 
Posts: 20,314
Default

Quote:
Originally Posted by batfastad View Post
Ah ok. So people can still attempt brute-forcing over IMAP or POP services.
... that would also include the Zimbra Web service but that's also covered by the strong password for the account.

Quote:
Originally Posted by batfastad View Post
This machine is actually behind an IPCop firewall box. But the ports for SMTP, HTTPS, SMTP submit and IMAP are open to the internet.
I didn't see you mention that, hence the question.

Quote:
Originally Posted by batfastad View Post
Has anyone had any success installing fail2ban or similar on a Zimbra server?
I believe there are a couple of threads in the forums on that very topic.
__________________
Regards


Bill
Reply With Quote
  #7 (permalink)  
Old 08-19-2011, 04:55 AM
Moderator
 
Posts: 2,207
Default

I used this one : Succesfull hacking attempts on Zimbra mailboxes (webmail)
Reply With Quote
  #8 (permalink)  
Old 08-19-2011, 05:07 AM
Elite Member
 
Posts: 275
Default

Solved! That's exactly what I wanted. Cheers
__________________
My Zimbra Bugs Wishlist: 16411, 24567, 35676, 36430, 37770, 41872, 43733, 44384, 46383, 47759
And a way to associate mailto: handlers with a Zimbra Prism webapp
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.