Roundcube Community Forum

Release Support => Pending Issues => Topic started by: Fred5550 on May 28, 2009, 03:36:33 AM

Title: How to lock Roundcube for only one domain
Post by: Fred5550 on May 28, 2009, 03:36:33 AM
Hi,

I installed Roundcube and all works fine. But I would like to block other domains to can connect, because with my config, all the customers of my ISP can connect to my webmail. How to lock access only for [email protected] ? (For connecting and sending)

Thanks a lot !
Title: How to lock Roundcube for only one domain
Post by: Julius Caesar on May 28, 2009, 03:45:44 AM
Check the ./config/main.inc.php and modify the following setting:

// 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'] = TRUE;

to
// 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;

Now no new users can access their mail using your RC environment
Title: How to lock Roundcube for only one domain
Post by: Fred5550 on May 28, 2009, 03:54:12 AM
I did it but I still can log in with another of my domains ... I would like to lock it for [email protected] and I tried now with [email protected] hosted on the same ISP and it also worked. How to lock it and to oblige the users to type [email protected] ? ... Thx a lot !
Title: How to lock Roundcube for only one domain
Post by: Julius Caesar on May 28, 2009, 04:14:03 AM
Once you managed to succesful login, this solution does not work, because the user has already been creted in the RC-database.

So my question: Have you used [email protected] to login before you've modified the settings in main.inc.php?
Title: How to lock Roundcube for only one domain
Post by: Fred5550 on May 28, 2009, 04:19:47 AM
Yes, a lot of times ...
Title: How to lock Roundcube for only one domain
Post by: Julius Caesar on May 28, 2009, 06:42:13 AM
Quote from: Fred5550;19269Yes, a lot of times ...

So you can't use that user as this moment.

To test you can do the following:

Title: How to lock Roundcube for only one domain
Post by: Julius Caesar on May 28, 2009, 06:51:34 AM
In short all the actions:

Title: How to lock Roundcube for only one domain
Post by: Fred5550 on May 28, 2009, 06:56:06 AM
It works ! Thanks a lot !!! :)