Author Topic: Disable Login to certain accounts  (Read 9805 times)

Offline DeusEx

  • Newbie
  • *
  • Posts: 2
Disable Login to certain accounts
« on: March 28, 2012, 09:56:43 AM »
Hello roundcube folks,

I need somehelp wit the latest stable roundcube release.
I want to disable the login of certain accounts (like banned@myhost.com) via roundcube for security reasons.
Is there any way to achieve that?

Thank you very much,

DeusEx

Offline ABerglund

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 673
Re: Disable Login to certain accounts
« Reply #1 on: March 28, 2012, 01:56:14 PM »
That would better dealt with on the IMAP server, not the webmail client.
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

Offline DeusEx

  • Newbie
  • *
  • Posts: 2
Re: Disable Login to certain accounts
« Reply #2 on: March 28, 2012, 01:59:39 PM »
Good point and I need to rephrase my question:
I only want to block certains accounts from using roundcube - not blocking the account completly!
So that they can still use Thunderbird or such to login, but not the webmailer.

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Re: Disable Login to certain accounts
« Reply #3 on: March 28, 2012, 02:21:36 PM »
./config/main.inc.php

Code: [Select]
// automatically create a new RoundCube user when log-in the first time.
// a new user will be created once the IMAP login succeeds.
// set to false if only registered users can use this service
$rcmail_config['auto_create_user'] = false;

... and delete those users you don't want to access Roundcube from database (users table).

This is the fastest and cleanest way. NOTE: If you want to grant new users access you them either to add them to the database manually or you have a second Roundcube setup where the access is only known by priviledged users or you use any other access protection for the second Roundcube installation.
Regards,
Rosali
__________________
MyRoundcube Project (commercial)