Roundcube Community Forum

 

allow access to only @domain.com

Started by def, October 19, 2011, 06:03:46 AM

Previous topic - Next topic

def

Hello.
I'd like to allow access to only one domain to login.
I wrote it in $rcmail_config['username_domain'], but it doesn't deny access to other domains.

Thank you.

JohnDoh

if you dont have many users on your domain then you could log in with each of them once and then set auto_create_user to false in the main config file. that will stop any other users from being created in RC. Or you could write a plugin on the `authenticate`hook which checks the username comes from the right domain and if not rejects it.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...