Hi Friends,
Today i did a little plugin for security reasons on server,and I will
like contribute with this source for other users.
This plugin use 3 hooks to check, block and report excessive connections
attempts.
1. The first hook is on login_failed for keep a database of time and ips
source of connections.
2. The second hook is on startup to clear current attemps of logins, this
will check the logs for failed logins to make decision of block.
3. and the Last hook is on template_object_loginform, to show a message
for user of the current block condition.
Well:
- *Resuming*, if not use right user and password in 3 attempts, the user
will be blocked for 10 minutes.
thanks for all
--
___________________
Anderson J. de Souza
- Networking and Security -
[ - Professional Consulting - The best firewall - ]
http://anderjs.blogspot.com/ - anjoel.s(a)gmail.com
Phone: +55 (54) 9115.13.15 - Sip: 1-747-013-2032
-
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/rt/6dKymCRa/antiBruteForce.php
Only click these links if you trust the sender, as well as this message.
--- 8< --- detachments --- 8< ---
_______________________________________________
List info: http://lists.roundcube.net/dev/
I use roundcube with multiple sender IDs which are for different
purposes. For instance my sender IDs look like personal(a)example.com,
work(a)example.com, spam(a)example.com, newsletter(a)example.com
Unfortunately when answering an email each time I have to verify that
the appropriate sender ID is selected. For example I don't want to use
my default sender ID personal(a)example.com when answering an email to a
mailinglist but list(a)example.com. You can imagine that this is a not an
error-prone procedure.
Therefore I would like that Roundcube tries to select the sender ID
according to the recipient. This means when I answer an email which was
send to spam(a)example.com I don't want Roundcube to use my default sender
ID but spam(a)example.com.
Please let me know what you think about this idea or if you scheduled it
already as a future features.
Regards
Stefan
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi,
This is my first post :)
I'm managing one roundcube webmail connected to 2 differents imaps
servers, using array in $rcmail_config['default_host'].
The trouble is : serveur 1 and 2 listen on two differents non standard
port so using $rcmail_config['default_port'] = 143 is impossible.
$rcmail_config['default_host'] = array('ip_serveur_1'=>'name serveur 1',
'ip_serveur_2'=>'name serveur 2' ) ;
$rcmail_config['default_port'] = 143;
So I made a modification in program/include/rcmail.php
diff rcmail.php rcmail.php.ori
464,469c464,465
<
< if (is_array($config['default_port'])) {
< $imap_port = $imap_port ? $imap_port :
$config['default_port'][$host] ;
< } else {
< $imap_port = $imap_port ? $imap_port : $config['default_port'];
< }
---
>
> $imap_port = $imap_port ? $imap_port : $config['default_port'];
and now in rcmail_config['default_port'] I can use an array too
in config/main.inc.php
$rcmail_config['default_host'] = array('ip_serveur_1'=>'name serveur 1',
'ip_serveur_2'=>'name serveur 2' ) ;
//$rcmail_config['default_port'] = 143;
$rcmail_config['default_port'] = array('ip_serveur_1'=>'port1',
'ip_serveur_2'=>'port2' ) ;;
If this changes is ok and usefull, I guess it would be nice to integrate
the modification
Thanks,
Ludovic
--
ONERA
BP72 - 29 avenue de la Division Leclerc
FR-92322
CHATILLON CEDEX
Tel: +33 (0) 146 733 939
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi, I was looking at _fetch_headers() in rcube_imap.php, and I don't get
why $cache_index[$headers->id] != $headers->uid:
if ($this->caching_enabled && $cache_index[$headers->id] != $headers->uid) {
...
}
Why is it skipped when $cache_index[$headers->id] is equal to
$headers->uid?
Can someone point me in the right direction? Thanks.
--
Denny Lin
_______________________________________________
List info: http://lists.roundcube.net/dev/
I'm trying to let my plugin delete messages. I've read move_del.inc and
tried to recreate it in my plugin by using
$this->IMAP->delete_message($_GET['_uid'], $_GET['_mbox']); and different
varieties of it with no success. I figured I could do an ajax call with the
required postdata (_mbox, _uid etc) but I would really love having it work
on php level to expand my Roundcube knowledge.
If somebody could please point me in the right direction it'd be greatly
appreciated.
_______________________________________________
List info: http://lists.roundcube.net/dev/
Could everyone reply with which PHP version they currently use in
production? Off-list is ok too.
Thanks,
Till
_______________________________________________
List info: http://lists.roundcube.net/dev/
> // automatically create the above listed default folders on login
> $rcmail_config['create_default_folders'] = true;
this makes me believe that if the folders do not exist upon login,
they will be created.
but actually, they are only created if the user does not exist:
program/include/rcmail.php:627
> // user already registered -> update user's record
> if (is_object($user)) {
> // create default folders on first login
> if (!$user->data['last_login'] && $config['create_default_folders'])
> $this->imap->create_default_folders();
> $user->touch();
> }
> // create new system user
> else if ($config['auto_create_user']) {
> if ($created = rcube_user::create($username, $host)) {
> $user = $created;
> // create default folders on first login
> if ($config['create_default_folders'])
> $this->imap->create_default_folders();
...
this has been changed in r3232
so how do i get these default folders now, if i already have a rc
profile?
maybe we should create an option to auto-create the default folders
via "settings/special folders"?
thanks,
raoul
--
____________________________________________________________________
DI (FH) Raoul Bhatia M.Sc. email. r.bhatia(a)ipax.at
Technischer Leiter
IPAX - Aloy Bhatia Hava OG web. http://www.ipax.at
Barawitzkagasse 10/2/2/11 email. office(a)ipax.at
1190 Wien tel. +43 1 3670030
FN 277995t HG Wien fax. +43 1 3670030 15
____________________________________________________________________
_______________________________________________
List info: http://lists.roundcube.net/dev/
I'm unsure if it's a bug in roundcube or if I'm doing it wrong so I'm
posting on the list instead of making a ticket in the trac system.
Anyhow, I'm trying to add local directories of my users so that the size of
their other personal directories are added to the total used quota. The
problem is that the quota bar isn't affected by my changes. Here's some code
for reproduction:
public function quota($args) {
$args['used'] .= 1048576;
return($args);
}
The quota is completely unaffected by this, judging from the quota bar that
works in other cases.
Is this a bug or am I doing it wrong?
_______________________________________________
List info: http://lists.roundcube.net/dev/
I think this isnt said enough, but RC is really looking awesome lately. Some seemingly minor UI changes have really improved things. Ive been running recent versions in production (currently running 3813 :), and im only getting positive comments from people using it. We're also starting to see some really cool plugins, so thats helping a lot.
I think when you guys release 0.4, people are going to be very happy. I would personally even consider calling 0.4 1.0 instead, as it would take RC out of what looks to some like a beta stage. RC is far from a beta stage. It's stable, fast, very well designed, robust plugin architecture, etc. Releasing a 1.0 would give it the status it deserves.
Regards,
Cor
_______________________________________________
List info: http://lists.roundcube.net/dev/