you will need to create a directory called fail2ban and place fail2ban.php in there, ignoring the root directory in the downloaded archive. You may also run '**git clone git://github.com/mattrude/rc-plugin-fail2ban.git fail2ban**' from the plugins directory.
## Setting Up
**fail2ban/jail.conf:**
[roundcube]
enabled = true
port = http,https
filter = roundcube
action = iptables-multiport[name=roundcube, port="http,https"]
logpath = /var/www/html/roundcube/logs/userlogins
Or oldschool used a configuration simmiler to:
[roundcube]
# 0.3 and up plugin-support
enabled = true
port = http,https
filter = roundcube
action = iptables-multiport[name=roundcube, port="http,https"]
sendmail-whois[name=RC-Webmail, dest=you@example.com, sender=fail2ban]
logpath = /srv/www/htdocs/webmail/logs/userlogins
**fail2ban/filter.d/roundcube.conf:**
[Definition]
failregex = FAILED login for .*. from <HOST>
ignoreregex =
## License
This plugin is licensed under the [GPLv3][11]. A copy of the license also comes with every copy download.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
## Authors
[Matt Rude][12] (m@mattrude.com)
[1]: http://mattrude.com/contact-me/
[2]: http://github.com/downloads/mattrude/rc-plugin-fail2ban/roundcube-fail2ban-plugin.1.1.tgz
[3]: http://github.com/downloads/mattrude/rc-plugin-fail2ban/roundcube-fail2ban-plugin.1.1.zip
[4]: http://github.com/mattrude/rc-plugin-fail2ban/tree/1.1
[5]: http://github.com/downloads/mattrude/rc-plugin-fail2ban/roundcube-fail2ban-plugin.1.0.tgz
[6]: http://github.com/downloads/mattrude/rc-plugin-fail2ban/roundcube-fail2ban-plugin.1.0.zip
[7]: http://github.com/mattrude/rc-plugin-fail2ban/tree/1.0
[8]: http://git-scm.com
[9]: http://github.com/mattrude/rc-plugin-fail2ban
[10]: http://roundcube.net/
[11]: http://www.gnu.org/licenses/gpl-3.0.txt
[12]: http://mattrude.com/