Roundcube Community Forum

Release Support => Pending Issues => Topic started by: lizard on January 13, 2009, 05:15:45 AM

Title: Block access for some accounts
Post by: lizard on January 13, 2009, 05:15:45 AM
Hello all!   Some users from time to time sending a lot of spam, is there any solutions to block some accounts to access?  Any thoughts are welcome!
Title: Block access for some accounts
Post by: aviscido on January 13, 2009, 05:37:48 AM
I don't know if I have understood what are you talking about... are they sending spam throught the roundcube webmail? Or are you receiving spam on your account?
Probably you have to set up some antispam filter in your email server, not in roundcube.
Title: Block access for some accounts
Post by: lizard on February 25, 2009, 07:59:00 AM
Well, i'll try to describe another way...    Roundcube installed on ISP mail server, and for some reasons I want to block access to web-interface for some describers  ( block by login)   Blocking by ip (e.g. by iptables)  is not effective. Is there any possibilities to do it by Roundcube settings? Thank you!
Title: Block access for some accounts
Post by: rosali on February 25, 2009, 08:18:46 AM
No, I'm not aware of any kind of settings to do so. You would have to hack the source code.
Title: Block access for some accounts
Post by: Julius Caesar on February 25, 2009, 08:21:15 AM
If all users have made a successful login, you can modify the main.inc.php in the directory /config.

Change the line

$rcmail_config['auto_create_user'] = TRUE;

to

$rcmail_config['auto_create_user'] = FALSE;

And remove the users you do want to block from the RoundCube database
Title: Block access for some accounts
Post by: Julius Caesar on February 25, 2009, 09:49:06 AM
Quote from: Julius Caesar;17289If all users have made a successful login, you can modify the main.inc.php in the directory /config.

Change the line

$rcmail_config['auto_create_user'] = TRUE;

to

$rcmail_config['auto_create_user'] = FALSE;

And remove the users you do want to block from the RoundCube database

In addition to this, you can use a sql-script to add new users to the database. ISPs often use a shell script to create new users.