RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > Release Support > Pending Issues

For more information about the ads and why they're here, please see the FAQ

Reply
  2 links from elsewhere to this Post. Click to view. #1  
Old 09-18-2009, 12:24 PM
MHz MHz is offline
Registered User
 
Join Date: Sep 2009
Posts: 3
Default SMTP and webmail on same server

Hi all,

I have a mailserver with fail2ban on it. Some days ago I installed apache and roundcube webmail. It works fine, but when there are f.e. 5 failed logins fail2ban tries to ban the external IP, but because the request is coming from the webserver that is on the same server as my SMTP server, it bans its own external IP/ is there any way that roundcube could send out the external client IP, so that the connecting cliënt gets banned? I just dont want to host my webmail elsewhere.

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 09-19-2009, 04:52 AM
rosali's Avatar
Super Moderator
 
Join Date: Dec 2007
Location: Germany
Posts: 1,681
Default

Download myroundcube @ myroundcube - Project Hosting on Google Code. Look at "dblog' plugin. It is not what you are looking for, but it shows you how to manipulate the logs. So it should be easy to create specific log entries for fail2ban.
__________________
Regards,
Rosali

__________________
MyRoundcube Project http://myroundcube.googlecode.com
MyRoundcube Online Demo http://mail4us.net
MyRoundcube Plugins Generic Installation Guide http://mail4us.net/myroundcube
Mailing List http://mail4us.net/?_action=plugin.nabble
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 09-19-2009, 02:16 PM
MHz MHz is offline
Registered User
 
Join Date: Sep 2009
Posts: 3
Default

Thanks for your help. I haven't been able to find that plugin. However, I came acros this one: RoundCube Fail2Ban Plugin – Matt Rude . Does this plugin do what I want: Block the external IP of the client that is connecting and not it's own external IP? Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 09-19-2009, 04:33 PM
mdr's Avatar
mdr mdr is offline
Registered User
 
Join Date: Aug 2008
Location: Saint Paul, MN, USA
Posts: 12
Send a message via Skype™ to mdr
Default

Correct, the RoundCube Fail2Ban Plugin will output the offenders IP address to your logs so Fail2ban will block the correct IP address and not your webservers. you may want to white list your RoundCube/Email server's IP so you don't get locked out.

-Matt Rude

Last edited by mdr; 09-19-2009 at 06:01 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 09-19-2009, 07:24 PM
MHz MHz is offline
Registered User
 
Join Date: Sep 2009
Posts: 3
Default

Thank you! This works like a charm!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 09-20-2009, 12:21 AM
mdr's Avatar
mdr mdr is offline
Registered User
 
Join Date: Aug 2008
Location: Saint Paul, MN, USA
Posts: 12
Send a message via Skype™ to mdr
Default

Wonderful, im glad it works well for you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


LinkBacks (?)
LinkBack to this Thread: http://www.roundcubeforum.net/5-release-support/17-pending-issues/5372-smtp-webmail-same-server.html
Posted By For Type Date
RoundCube Fail2Ban Plugin – Matt Rude This thread Refback 10-01-2009 02:42 PM
RoundCube Fail2Ban Plugin – Matt Rude This thread Refback 09-30-2009 05:46 PM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:04 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2006-2008 RoundCube Webmail Community