+ Reply to Thread
Results 1 to 6 of 6

Thread: SMTP and webmail on same server

  1. #1
    MHz
    MHz is offline Registered User
    Join Date
    Sep 2009
    Posts
    3
    Downloads
    0
    Uploads
    0

    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!

  2. #2
    rosali's Avatar
    rosali is offline Super Moderator
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    2,392
    Downloads
    36
    Uploads
    0

    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 - Free Email Address http://mail4us.net
    MyRoundcube Plugins Generic Installation Guide http://mail4us.net/myroundcube/index.php
    Mailing List http://mail4us.net/?_action=plugin.nabble

  3. #3
    MHz
    MHz is offline Registered User
    Join Date
    Sep 2009
    Posts
    3
    Downloads
    0
    Uploads
    0

    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!

  4. #4
    mdr's Avatar
    mdr
    mdr is offline Registered User
    Join Date
    Aug 2008
    Location
    Saint Paul, MN, USA
    Posts
    12
    Downloads
    0
    Uploads
    0

    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 07:01 PM.

  5. #5
    MHz
    MHz is offline Registered User
    Join Date
    Sep 2009
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default

    Thank you! This works like a charm!

  6. #6
    mdr's Avatar
    mdr
    mdr is offline Registered User
    Join Date
    Aug 2008
    Location
    Saint Paul, MN, USA
    Posts
    12
    Downloads
    0
    Uploads
    0

    Default

    Wonderful, im glad it works well for you

+ Reply to Thread

LinkBacks (?)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts